1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-07 07:13:21 +02:00
GPXSee/src/GUI/temperaturegraph.h

36 lines
694 B
C
Raw Normal View History

#ifndef TEMPERATUREGRAPH_H
#define TEMPERATUREGRAPH_H
2016-06-24 00:55:44 +02:00
#include "graphtab.h"
class TemperatureGraphItem;
2016-06-24 00:55:44 +02:00
class TemperatureGraph : public GraphTab
{
Q_OBJECT
public:
TemperatureGraph(QWidget *parent = 0);
~TemperatureGraph();
2016-06-24 00:55:44 +02:00
QString label() const {return tr("Temperature");}
QList<GraphItem*> loadData(const Data &data);
void clear();
void setUnits(enum Units units);
void showTracks(bool show);
2016-06-24 00:55:44 +02:00
private:
qreal avg() const;
qreal min() const {return bounds().top();}
qreal max() const {return bounds().bottom();}
2017-10-04 23:15:39 +02:00
void setYUnits(Units units);
2016-08-09 01:16:19 +02:00
void setInfo();
2019-03-15 19:43:17 +01:00
QVector<QPointF> _avg;
2016-08-19 19:48:44 +02:00
bool _showTracks;
QList<TemperatureGraphItem *> _tracks;
};
#endif // TEMPERATUREGRAPH_H