Use the canonical file name also for the "already open" check
[GPXSee.git] / src / GUI / powergraph.h
blob89476685671e9c8808c31d903c77d8dc4feaf9bd
1 #ifndef POWERGRAPH_H
2 #define POWERGRAPH_H
4 #include "graphtab.h"
6 class PowerGraphItem;
8 class PowerGraph : public GraphTab
10 Q_OBJECT
12 public:
13 PowerGraph(QWidget *parent = 0);
14 ~PowerGraph();
16 QString label() const {return tr("Power");}
17 QList<GraphItem*> loadData(const Data &data);
18 void clear();
19 void showTracks(bool show);
21 private:
22 qreal avg() const;
23 qreal max() const {return bounds().bottom();}
24 void setInfo();
26 QVector<QPointF> _avg;
28 bool _showTracks;
29 QList<PowerGraphItem*> _tracks;
32 #endif // POWERGRAPH_H