2016-07-28 00:23:22 +02:00
|
|
|
#ifndef TRACKITEM_H
|
|
|
|
#define TRACKITEM_H
|
|
|
|
|
|
|
|
#include <QDateTime>
|
2021-01-17 18:39:57 +01:00
|
|
|
#include "data/link.h"
|
2016-09-26 21:01:58 +02:00
|
|
|
#include "pathitem.h"
|
2016-07-28 00:23:22 +02:00
|
|
|
|
2017-03-18 01:30:31 +01:00
|
|
|
class Map;
|
2021-01-17 18:39:57 +01:00
|
|
|
class Track;
|
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
|
|
|
|
2021-08-04 08:57:42 +02:00
|
|
|
ToolTip info() const;
|
2021-02-06 15:23:02 +01:00
|
|
|
QDateTime date() const {return _date;}
|
2016-07-28 00:23:22 +02:00
|
|
|
|
2019-10-13 20:20:32 +02:00
|
|
|
private:
|
2016-10-28 14:33:36 +02:00
|
|
|
QString _name;
|
|
|
|
QString _desc;
|
2020-03-09 20:04:13 +01:00
|
|
|
QString _comment;
|
2019-10-14 20:07:05 +02:00
|
|
|
QVector<Link> _links;
|
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
|