1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00
GPXSee/src/GUI/routeitem.h
2018-02-11 20:39:39 +01:00

35 lines
601 B
C++

#ifndef ROUTEITEM_H
#define ROUTEITEM_H
#include "data/route.h"
#include "pathitem.h"
#include "units.h"
#include "format.h"
class Map;
class RouteItem : public PathItem
{
Q_OBJECT
public:
RouteItem(const Route &route, Map *map, QGraphicsItem *parent = 0);
void setMap(Map *map);
void setUnits(Units units);
void setCoordinatesFormat(CoordinatesFormat format);
void showWaypoints(bool show);
void showWaypointLabels(bool show);
private:
QString toolTip(Units units) const;
QString _name;
QString _desc;
Units _units;
CoordinatesFormat _coordinatesFormat;
};
#endif // ROUTEITEM_H