Marble
RoutingManager.cpp
101 static void importPlacemark( RouteSegment &outline, QVector<RouteSegment> &segments, const GeoDataPlacemark *placemark );
238 m_alternativeRoutesModel.addRoute( new GeoDataDocument(*route), AlternativeRoutesModel::Instant );
403 void RoutingManagerPrivate::importPlacemark( RouteSegment &outline, QVector<RouteSegment> &segments, const GeoDataPlacemark *placemark )
465 RoutingProfile RoutingManager::defaultProfile( RoutingProfile::TransportType transportType ) const
513 QString text = QLatin1String("<p>") + tr("Caution: Driving instructions may be incomplete or wrong.") +
514 QLatin1Char(' ') + tr("Road construction, weather and other unforeseen variables can result in the suggested route not to be the most expedient or safest route to your destination.") +
516 QLatin1String("<p>") + tr("The Marble development team wishes you a pleasant and safe journey.") + QLatin1String("</p>");
517 QPointer<QMessageBox> messageBox = new QMessageBox(QMessageBox::Information, tr("Guidance Mode"), text, QMessageBox::Ok);
559 if ( m_routeRequest.size() == 2 && m_routeRequest.visited( 0 ) && !m_routeRequest.visited( 1 ) ) {
560 m_routeRequest.setPosition( 0, m_positionTracking->currentLocation(), QObject::tr( "Current Location" ) );
562 } else if ( m_routeRequest.size() != 0 && !m_routeRequest.visited( m_routeRequest.size()-1 ) ) {
563 m_routeRequest.insert( 0, m_positionTracking->currentLocation(), QObject::tr( "Current Location" ) );
T & first()
bool isEmpty() const const
QString lastSavePath() const
Return last directory the user saved a route to.
Definition: RoutingManager.cpp:606
void setRouteColorStandard(const QColor &color)
Set color for standard route rendering.
Definition: RoutingManager.cpp:611
QColor routeColorHighlighted() const
Get color for highlighted route rendering.
Definition: RoutingManager.cpp:626
WriteOnly
QColor routeColorStandard() const
Get color for standard route rendering.
Definition: RoutingManager.cpp:616
T value() const const
bool contains(const QString &str, Qt::CaseSensitivity cs) const const
The abstract class that provides position information.
Definition: PositionProviderPlugin.h:20
void append(const T &value)
void setShowGuidanceModeStartupWarning(bool show)
Set whether a warning message should be shown to the user before starting guidance mode.
Definition: RoutingManager.cpp:581
Information
void stateChanged(RoutingManager::State newState)
Directions and waypoints for the given route are being downloaded or have been retrieved – newState t...
void push_back(const T &value)
QColor routeColorAlternative() const
Get color for alternative route rendering.
Definition: RoutingManager.cpp:636
bool showGuidanceModeStartupWarning() const
Returns true (default) if a warning is shown to the user when starting guidance mode.
Definition: RoutingManager.cpp:586
void setGuidanceModeEnabled(bool enabled)
Toggle turn by turn navigation mode.
Definition: RoutingManager.cpp:501
void setChecked(bool)
void setRouteColorHighlighted(const QColor &color)
Set color for highlighted route rendering.
Definition: RoutingManager.cpp:621
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
RoutingProfilesModel * profilesModel()
Provides access to the model which contains all possible routing profiles.
Definition: RoutingManager.cpp:277
QString lastOpenPath() const
Return last directory the user opened a route from.
Definition: RoutingManager.cpp:596
void setLastSavePath(const QString &path)
Set last directory the user saved a route to.
Definition: RoutingManager.cpp:601
void setRouteColorAlternative(const QColor &color)
Set color for alternative route rendering.
Definition: RoutingManager.cpp:631
int size() const const
KOSM_EXPORT double distance(const std::vector< const OSM::Node * > &path, Coordinate coord)
AlternativeRoutesModel * alternativeRoutesModel()
Provides access to the model which contains a list of alternative routes.
Definition: RoutingManager.cpp:445
RoutingModel * routingModel()
Provides access to the routing model which contains a list of routing instructions describing steps t...
Definition: RoutingManager.cpp:282
bool blockSignals(bool block)
void saveRoute(const QString &filename) const
Saves the current route to the file with the given filename.
Definition: RoutingManager.cpp:455
ActionRole
A container for Features, Styles and in the future Schemas.
Definition: GeoDataDocument.h:48
void setAlpha(int alpha)
int toInt(bool *ok) const const
void setLastOpenPath(const QString &path)
Set last directory the user opened a route from.
Definition: RoutingManager.cpp:591
Binds a QML item to a specific geodetic location in screen coordinates.
Definition: AbstractDataPlugin.cpp:22
void loadRoute(const QString &filename)
Opens the given filename (kml format) and loads the route contained in it.
Definition: RoutingManager.cpp:460
A plugin for Marble to execute a routing task.
Definition: RoutingRunnerPlugin.h:28
void writeSettings() const
Saves the current route request and the current route to disk.
Definition: RoutingManager.cpp:450
KIOFILEWIDGETS_EXPORT QString dir(const QString &fileClass)
void readSettings()
Restores a previously saved route request and route from disk, if any.
Definition: RoutingManager.cpp:496
RoutingManager(MarbleModel *marbleModel, QObject *parent=nullptr)
Constructor.
Definition: RoutingManager.cpp:258
int size() const const
QString tr(const char *sourceText, const char *disambiguation, int n)
RoutingProfile defaultProfile(RoutingProfile::TransportType transportType) const
Generates a routing profile with default settings for the given transport type.
Definition: RoutingManager.cpp:465
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:86
QString toString() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Sep 29 2023 03:52:22 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Sep 29 2023 03:52:22 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.