2
* Copyright (c) 2011 Damien Grauser
4
* This program is free software; you can redistribute it and/or modify it
5
* under the terms of the GNU General Public License as published by the Free
6
* Software Foundation; either version 2 of the License, or (at your option)
9
* This program is distributed in the hope that it will be useful, but WITHOUT
10
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14
* You should have received a copy of the GNU General Public License along
15
* with this program; if not, write to the Free Software Foundation, Inc., 51
16
* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19
#ifndef _GC_SmallPlot_h
20
#define _GC_SmallPlot_h 1
30
class SmallPlot : public QwtPlot
36
SmallPlot(QWidget *parent=0);
39
int smoothing() const { return smooth; }
40
void setData(RideItem *ride);
41
void setAxisTitle(int axis, QString label);
48
void showPower(int state);
49
void showHr(int state);
50
void setSmoothing(int value);
55
QwtPlotCurve *wattsCurve;
56
QwtPlotCurve *hrCurve;
59
QVector<double> hrArray;
60
QVector<double> wattsArray;
61
QVector<double> timeArray;
62
QVector<QwtPlotCurve*> timeCurves;
65
QVector<int> interArray;
70
#endif // _GC_SmallPlot_h