mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-07-23 23:24:24 +02:00
Added support for gear ratio graphs
Added support for FIT files from Bryton Rider devices
This commit is contained in:
30
src/GUI/gearratiograph.h
Normal file
30
src/GUI/gearratiograph.h
Normal file
@ -0,0 +1,30 @@
|
||||
#ifndef GEARRATIOGRAPH_H
|
||||
#define GEARRATIOGRAPH_H
|
||||
|
||||
#include <QMap>
|
||||
#include "graphtab.h"
|
||||
|
||||
class GearRatioGraph : public GraphTab
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
GearRatioGraph(QWidget *parent = 0);
|
||||
|
||||
QString label() const {return tr("Gear ratio");}
|
||||
QList<GraphItem*> loadData(const Data &data);
|
||||
void clear();
|
||||
void showTracks(bool show);
|
||||
|
||||
private:
|
||||
qreal top() const;
|
||||
qreal min() const {return bounds().top();}
|
||||
qreal max() const {return bounds().bottom();}
|
||||
void setInfo();
|
||||
|
||||
QMap<qreal, qreal> _map;
|
||||
|
||||
bool _showTracks;
|
||||
};
|
||||
|
||||
#endif // GEARRATIOGRAPH_H
|
Reference in New Issue
Block a user