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