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"
|
2016-08-30 21:26:28 +02:00
|
|
|
|
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, QGraphicsItem *parent = 0);
|
|
|
|
|
2016-08-30 21:26:28 +02:00
|
|
|
void setUnits(enum Units units);
|
2016-09-26 21:01:58 +02:00
|
|
|
void setScale(qreal scale);
|
2016-08-09 01:16:19 +02:00
|
|
|
|
2016-08-09 10:47:49 +02:00
|
|
|
void showWaypoints(bool show);
|
2016-08-09 23:08:49 +02:00
|
|
|
void showWaypointLabels(bool show);
|
2016-08-09 10:47:49 +02:00
|
|
|
|
2016-08-09 01:16:19 +02:00
|
|
|
private:
|
2016-08-30 21:26:28 +02:00
|
|
|
QString toolTip();
|
2016-10-28 14:33:36 +02:00
|
|
|
|
|
|
|
QString _name;
|
|
|
|
QString _desc;
|
2016-08-09 01:16:19 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ROUTEITEM_H
|