2016-08-09 01:16:19 +02:00
|
|
|
#ifndef ROUTEITEM_H
|
|
|
|
#define ROUTEITEM_H
|
|
|
|
|
2021-01-17 18:39:57 +01:00
|
|
|
#include "data/link.h"
|
2016-09-19 00:56:10 +02:00
|
|
|
#include "pathitem.h"
|
2016-08-30 21:26:28 +02:00
|
|
|
|
2017-03-18 01:30:31 +01:00
|
|
|
class Map;
|
2021-01-17 18:39:57 +01:00
|
|
|
class Route;
|
2019-05-24 18:37:15 +02:00
|
|
|
class WaypointItem;
|
2016-08-09 01:16:19 +02:00
|
|
|
|
2016-09-19 00:56:10 +02:00
|
|
|
class RouteItem : public PathItem
|
2016-08-09 01:16:19 +02:00
|
|
|
{
|
2016-09-19 00:56:10 +02:00
|
|
|
Q_OBJECT
|
|
|
|
|
2016-08-09 01:16:19 +02:00
|
|
|
public:
|
2017-03-18 01:30:31 +01:00
|
|
|
RouteItem(const Route &route, Map *map, QGraphicsItem *parent = 0);
|
2016-08-09 01:16:19 +02:00
|
|
|
|
2017-03-18 01:30:31 +01:00
|
|
|
void setMap(Map *map);
|
2021-05-14 22:57:35 +02:00
|
|
|
void setDigitalZoom(int zoom);
|
2016-08-09 01:16:19 +02:00
|
|
|
|
2016-08-09 10:47:49 +02:00
|
|
|
void showWaypoints(bool show);
|
2016-08-09 23:08:49 +02:00
|
|
|
void showWaypointLabels(bool show);
|
2021-10-10 08:38:38 +02:00
|
|
|
void showWaypointIcons(bool show);
|
2016-08-09 10:47:49 +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 QDateTime();}
|
2016-10-28 14:33:36 +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;
|
2019-05-24 18:37:15 +02:00
|
|
|
|
|
|
|
QVector<WaypointItem*> _waypoints;
|
2016-08-09 01:16:19 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ROUTEITEM_H
|