mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-07-08 00:04:27 +02:00
Project structure refactoring
This commit is contained in:
31
src/GUI/temperaturegraph.h
Normal file
31
src/GUI/temperaturegraph.h
Normal file
@ -0,0 +1,31 @@
|
||||
#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(Units units);
|
||||
void setInfo();
|
||||
|
||||
QList<QPointF> _avg;
|
||||
|
||||
bool _showTracks;
|
||||
};
|
||||
|
||||
#endif // TEMPERATUREGRAPH_H
|
Reference in New Issue
Block a user