1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-07 07:13:21 +02:00
GPXSee/src/routeitem.h

32 lines
493 B
C
Raw Normal View History

2016-08-09 01:16:19 +02:00
#ifndef ROUTEITEM_H
#define ROUTEITEM_H
2016-09-19 00:56:10 +02:00
#include "pathitem.h"
2016-08-09 01:16:19 +02:00
#include "route.h"
#include "units.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 setScale(qreal scale);
void setMap(Map *map);
2016-08-09 01:16:19 +02:00
void setUnits(Units units);
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);
QString _name;
QString _desc;
2016-08-09 01:16:19 +02:00
};
#endif // ROUTEITEM_H