#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");} void loadData(const Data &data, const QList &paths); void clear(); void setUnits(enum Units units); void setTimeType(enum TimeType type); void showTracks(bool show); private: qreal avg() const; qreal max() const {return bounds().bottom();} void setYUnits(); void setInfo(); QList _avg; QList _avgM; enum Units _units; enum TimeType _timeType; bool _showTracks; }; #endif // SPEEDGRAPH_H