Marble
6 #ifndef MARBLE_ROUTINGMANAGER_H
7 #define MARBLE_ROUTINGMANAGER_H
9 #include "marble_export.h"
10 #include "RoutingProfile.h"
15 class RoutingManagerPrivate;
19 class GeoDataDocument;
20 class AlternativeRoutesModel;
21 class RoutingProfilesModel;
30 Q_PROPERTY(
State state READ state NOTIFY stateChanged )
31 Q_PROPERTY(
bool guidanceModeEnabled READ guidanceModeEnabled WRITE setGuidanceModeEnabled NOTIFY guidanceModeEnabledChanged )
48 RoutingProfilesModel *profilesModel();
56 RoutingModel *routingModel();
58 const RoutingModel *routingModel()
const;
64 AlternativeRoutesModel* alternativeRoutesModel();
80 void writeSettings()
const;
91 void saveRoute(
const QString &filename )
const;
96 void loadRoute(
const QString &filename );
101 RoutingProfile defaultProfile( RoutingProfile::TransportType transportType )
const;
107 void setShowGuidanceModeStartupWarning(
bool show );
113 bool showGuidanceModeStartupWarning()
const;
118 void setLastOpenPath(
const QString &path );
128 void setLastSavePath(
const QString &path );
138 void setRouteColorStandard(
const QColor& color );
143 QColor routeColorStandard()
const;
148 void setRouteColorHighlighted(
const QColor& color );
153 QColor routeColorHighlighted()
const;
158 void setRouteColorAlternative(
const QColor& color );
163 QColor routeColorAlternative()
const;
165 bool guidanceModeEnabled()
const;
172 void retrieveRoute();
178 void setGuidanceModeEnabled(
bool enabled );
185 void stateChanged( RoutingManager::State newState );
189 void guidanceModeEnabledChanged(
bool enabled );
194 Q_PRIVATE_SLOT( d,
void routingFinished() )
198 Q_PRIVATE_SLOT( d,
void recalculateRoute(
bool deviated ) )
201 friend class RoutingManagerPrivate;
202 RoutingManagerPrivate *
const d;
Delegates data retrieval and model updates to the appropriate routing provider.
A container for Features, Styles and in the future Schemas.
Binds a QML item to a specific geodetic location in screen coordinates.
Points to be included in a route.
The data model (not based on QAbstractModel) for a MarbleWidget.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Sep 22 2023 03:53:13 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.