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

37 lines
600 B
C
Raw Normal View History

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"
class Map;
2021-01-17 18:39:57 +01:00
class Route;
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:
RouteItem(const Route &route, Map *map, QGraphicsItem *parent = 0);
2016-08-09 01:16:19 +02:00
void setMap(Map *map);
void setDigitalZoom(int zoom);
2016-08-09 01:16:19 +02:00
2016-08-09 10:47:49 +02:00
void showWaypoints(bool show);
void showWaypointLabels(bool show);
2016-08-09 10:47:49 +02:00
QString info() const;
QDateTime date() const {return QDateTime();}
private:
QString _name;
QString _desc;
QString _comment;
2019-10-14 20:07:05 +02:00
QVector<Link> _links;
QVector<WaypointItem*> _waypoints;
2016-08-09 01:16:19 +02:00
};
#endif // ROUTEITEM_H