1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-15 19:34:24 +02:00
Files
GPXSee/src/temperaturegraph.h
Martin Tůma 99e32b1a15 Made the moving time switch affect all related values
More standardized time type switching (menu)
2017-02-12 19:57:55 +01:00

33 lines
629 B
C++

#ifndef TEMPERATUREGRAPH_H
#define TEMPERATUREGRAPH_H
#include "graphtab.h"
class TemperatureGraph : public GraphTab
{
Q_OBJECT
public:
TemperatureGraph(QWidget *parent = 0);
QString label() const {return tr("Temperature");}
void loadData(const Data &data, const QList<PathItem *> &paths);
void clear();
void setUnits(enum Units units);
void showTracks(bool show);
private:
qreal avg() const;
qreal min() const {return bounds().top();}
qreal max() const {return bounds().bottom();}
void setYUnits();
void setInfo();
QList<QPointF> _avg;
enum Units _units;
bool _showTracks;
};
#endif // TEMPERATUREGRAPH_H