#ifndef SPEEDGRAPH_H #define SPEEDGRAPH_H #include #include "graphtab.h" class SpeedGraph : public GraphTab { Q_OBJECT public: SpeedGraph(QWidget *parent = 0); QString label() const {return tr("Speed");} QList loadData(const Data &data); void clear(); void setUnits(Units units); void setTimeType(TimeType type); void showTracks(bool show); private: qreal avg() const; qreal max() const {return bounds().bottom();} void setYUnits(); void setInfo(); QList _avg; QList _mavg; Units _units; TimeType _timeType; bool _showTracks; }; #endif // SPEEDGRAPH_H