Human-friendly links
[GPXSee.git] / src / speedgraph.h
blob6fd12eefbb756e354db1fa97e72333642269a308
1 #ifndef SPEEDGRAPH_H
2 #define SPEEDGRAPH_H
4 #include <QList>
5 #include "graphtab.h"
7 class SpeedGraph : public GraphTab
9 Q_OBJECT
11 public:
12 SpeedGraph(QWidget *parent = 0);
14 QString label() const {return tr("Speed");}
15 void loadData(const Data &data, const QList<PathItem *> &paths);
16 void clear();
17 void setUnits(enum Units units);
18 void setTimeType(enum TimeType type);
19 void showTracks(bool show);
21 private:
22 qreal avg() const;
23 qreal max() const {return bounds().bottom();}
24 void setYUnits();
25 void setInfo();
27 QList<QPointF> _avg;
28 QList<QPointF> _avgM;
30 enum Units _units;
31 enum TimeType _timeType;
32 bool _showTracks;
35 #endif // SPEEDGRAPH_H