2016-07-28 00:23:22 +02:00
|
|
|
#ifndef TRACKITEM_H
|
|
|
|
#define TRACKITEM_H
|
|
|
|
|
|
|
|
#include <QDateTime>
|
2016-09-19 00:56:10 +02:00
|
|
|
#include <QPen>
|
2016-07-28 00:23:22 +02:00
|
|
|
#include "track.h"
|
2016-09-26 21:01:58 +02:00
|
|
|
#include "pathitem.h"
|
2017-03-18 01:30:31 +01:00
|
|
|
#include "units.h"
|
2016-07-28 00:23:22 +02:00
|
|
|
|
2017-03-18 01:30:31 +01:00
|
|
|
class Map;
|
2016-08-09 01:16:19 +02:00
|
|
|
|
2016-09-19 00:56:10 +02:00
|
|
|
class TrackItem : public PathItem
|
2016-07-28 00:23:22 +02:00
|
|
|
{
|
2016-09-19 00:56:10 +02:00
|
|
|
Q_OBJECT
|
|
|
|
|
2016-07-28 00:23:22 +02:00
|
|
|
public:
|
2017-03-18 01:30:31 +01:00
|
|
|
TrackItem(const Track &track, Map *map, QGraphicsItem *parent = 0);
|
2016-07-28 00:23:22 +02:00
|
|
|
|
2017-03-18 01:30:31 +01:00
|
|
|
void setUnits(Units units);
|
2016-08-09 01:16:19 +02:00
|
|
|
|
2016-07-28 00:23:22 +02:00
|
|
|
private:
|
2017-09-24 19:54:13 +02:00
|
|
|
QString toolTip(Units units) const;
|
2016-07-28 00:23:22 +02:00
|
|
|
|
2016-10-28 14:33:36 +02:00
|
|
|
QString _name;
|
|
|
|
QString _desc;
|
2016-07-28 00:23:22 +02:00
|
|
|
QDateTime _date;
|
|
|
|
qreal _time;
|
2017-01-31 09:37:01 +01:00
|
|
|
qreal _movingTime;
|
2016-07-28 00:23:22 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // TRACKITEM_H
|