Use the canonical file name also for the "already open" check
[GPXSee.git] / src / GUI / routeitem.h
blobdad0d840dcc42c7c3f805552e257b2c9bfb2fb5c
1 #ifndef ROUTEITEM_H
2 #define ROUTEITEM_H
4 #include "data/link.h"
5 #include "pathitem.h"
7 class Map;
8 class Route;
9 class WaypointItem;
11 class RouteItem : public PathItem
13 Q_OBJECT
15 public:
16 RouteItem(const Route &route, Map *map, QGraphicsItem *parent = 0);
18 void setMap(Map *map);
19 void setDigitalZoom(int zoom);
21 void showWaypoints(bool show);
22 void showWaypointLabels(bool show);
23 void showWaypointIcons(bool show);
25 ToolTip info() const;
26 QDateTime date() const {return QDateTime();}
28 private:
29 QString _name;
30 QString _desc;
31 QString _comment;
32 QVector<Link> _links;
33 QVector<WaypointItem*> _waypoints;
36 #endif // ROUTEITEM_H