mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-01-31 09:05:14 +01:00
38 lines
636 B
C++
38 lines
636 B
C++
#ifndef ROUTEITEM_H
|
|
#define ROUTEITEM_H
|
|
|
|
#include "data/link.h"
|
|
#include "pathitem.h"
|
|
|
|
class Map;
|
|
class Route;
|
|
class WaypointItem;
|
|
|
|
class RouteItem : public PathItem
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
RouteItem(const Route &route, Map *map, QGraphicsItem *parent = 0);
|
|
|
|
void setMap(Map *map);
|
|
void setDigitalZoom(int zoom);
|
|
|
|
void showWaypoints(bool show);
|
|
void showWaypointLabels(bool show);
|
|
void showWaypointIcons(bool show);
|
|
|
|
ToolTip info() const;
|
|
QDateTime date() const {return QDateTime();}
|
|
|
|
private:
|
|
QString _name;
|
|
QString _desc;
|
|
QString _comment;
|
|
QVector<Link> _links;
|
|
|
|
QVector<WaypointItem*> _waypoints;
|
|
};
|
|
|
|
#endif // ROUTEITEM_H
|