#ifndef SPEEDGRAPH_H #define SPEEDGRAPH_H #include #include "graphtab.h" class GPX; class SpeedGraph : public GraphTab { Q_OBJECT public: SpeedGraph(QWidget *parent = 0); QString label() const {return tr("Speed");} void loadGPX(const GPX &gpx); void clear(); void setUnits(enum Units units); private: qreal avg() const; qreal max() const {return bounds().bottom();} void setXUnits(); void setYUnits(); void addInfo(); QList _avg; enum Units _units; }; #endif // SPEEDGRAPH_H