2016-06-24 00:55:44 +02:00
|
|
|
#ifndef GRAPHTAB_H
|
|
|
|
#define GRAPHTAB_H
|
|
|
|
|
2016-09-19 00:56:10 +02:00
|
|
|
#include <QList>
|
2016-06-24 00:55:44 +02:00
|
|
|
#include "graphview.h"
|
|
|
|
#include "units.h"
|
2017-02-12 19:57:55 +01:00
|
|
|
#include "timetype.h"
|
2016-06-24 00:55:44 +02:00
|
|
|
|
2016-10-23 11:09:20 +02:00
|
|
|
class Data;
|
2018-05-04 19:36:37 +02:00
|
|
|
class GraphItem;
|
2016-06-24 00:55:44 +02:00
|
|
|
|
|
|
|
class GraphTab : public GraphView
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
GraphTab(QWidget *parent = 0) : GraphView(parent)
|
|
|
|
{setFrameShape(QFrame::NoFrame);}
|
2018-03-08 00:57:09 +01:00
|
|
|
virtual ~GraphTab() {}
|
2016-06-24 00:55:44 +02:00
|
|
|
|
|
|
|
virtual QString label() const = 0;
|
2018-05-04 19:36:37 +02:00
|
|
|
virtual QList<GraphItem*> loadData(const Data &data) = 0;
|
2017-10-04 23:15:39 +02:00
|
|
|
virtual void clear() {GraphView::clear();}
|
2017-09-14 20:16:42 +02:00
|
|
|
virtual void setUnits(enum Units units) {GraphView::setUnits(units);}
|
2017-10-04 23:15:39 +02:00
|
|
|
virtual void setGraphType(GraphType type) {GraphView::setGraphType(type);}
|
2017-02-12 19:57:55 +01:00
|
|
|
virtual void setTimeType(enum TimeType type) {Q_UNUSED(type)}
|
|
|
|
virtual void showTracks(bool show) {Q_UNUSED(show)}
|
|
|
|
virtual void showRoutes(bool show) {Q_UNUSED(show)}
|
2016-06-24 00:55:44 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // GRAPHTAB_H
|