2016-08-09 01:16:19 +02:00
|
|
|
#ifndef ROUTEITEM_H
|
|
|
|
#define ROUTEITEM_H
|
|
|
|
|
2017-11-26 18:54:03 +01:00
|
|
|
#include "data/route.h"
|
2016-09-19 00:56:10 +02:00
|
|
|
#include "pathitem.h"
|
2017-03-18 01:30:31 +01:00
|
|
|
#include "units.h"
|
2018-02-11 20:39:39 +01:00
|
|
|
#include "format.h"
|
2016-08-30 21:26:28 +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 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);
|
2016-08-09 01:16:19 +02:00
|
|
|
|
2017-03-18 01:30:31 +01:00
|
|
|
void setUnits(Units units);
|
2018-02-11 20:39:39 +01:00
|
|
|
void setCoordinatesFormat(CoordinatesFormat format);
|
2016-08-09 10:47:49 +02:00
|
|
|
void showWaypoints(bool show);
|
2016-08-09 23:08:49 +02:00
|
|
|
void showWaypointLabels(bool show);
|
2016-08-09 10:47:49 +02:00
|
|
|
|
2016-08-09 01:16:19 +02:00
|
|
|
private:
|
2017-09-24 19:54:13 +02:00
|
|
|
QString toolTip(Units units) const;
|
2016-10-28 14:33:36 +02:00
|
|
|
|
|
|
|
QString _name;
|
|
|
|
QString _desc;
|
2018-02-11 20:39:39 +01:00
|
|
|
Units _units;
|
|
|
|
CoordinatesFormat _coordinatesFormat;
|
2016-08-09 01:16:19 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ROUTEITEM_H
|