1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 13:41:16 +01:00
GPXSee/src/GUI/routeitem.h

35 lines
601 B
C
Raw Normal View History

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"
#include "units.h"
#include "format.h"
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:
RouteItem(const Route &route, Map *map, QGraphicsItem *parent = 0);
2016-08-09 01:16:19 +02:00
void setMap(Map *map);
2016-08-09 01:16:19 +02:00
void setUnits(Units units);
void setCoordinatesFormat(CoordinatesFormat format);
2016-08-09 10:47:49 +02:00
void showWaypoints(bool show);
void showWaypointLabels(bool show);
2016-08-09 10:47:49 +02:00
2016-08-09 01:16:19 +02:00
private:
QString toolTip(Units units) const;
QString _name;
QString _desc;
Units _units;
CoordinatesFormat _coordinatesFormat;
2016-08-09 01:16:19 +02:00
};
#endif // ROUTEITEM_H