Added Israleli grid projection
[GPXSee.git] / src / GUI / gearratiograph.h
blob6b79bd75ed89cfacb7228725175ccb3a72a3eb82
1 #ifndef GEARRATIOGRAPH_H
2 #define GEARRATIOGRAPH_H
4 #include <QMap>
5 #include "graphtab.h"
7 class GearRatioGraphItem;
9 class GearRatioGraph : public GraphTab
11 Q_OBJECT
13 public:
14 GearRatioGraph(QWidget *parent = 0);
15 ~GearRatioGraph();
17 QString label() const {return tr("Gear ratio");}
18 QList<GraphItem*> loadData(const Data &data, Map *map);
19 void clear();
20 void showTracks(bool show);
22 private:
23 qreal top() const;
24 qreal min() const {return bounds().top();}
25 qreal max() const {return bounds().bottom();}
26 void setInfo();
28 QMap<qreal, qreal> _map;
30 bool _showTracks;
31 QList<GearRatioGraphItem*> _tracks;
34 #endif // GEARRATIOGRAPH_H