marble
RoutingManager.cpp
Go to the documentation of this file.
95 RoutingManagerPrivate::RoutingManagerPrivate( MarbleModel *model, RoutingManager* manager, QObject *parent ) :
240 RoutingManager::RoutingManager( MarbleModel *marbleModel, QObject *parent ) : QObject( parent ),
283 if ( d->m_routeRequest.at( i ).longitude() != 0.0 && d->m_routeRequest.at( i ).latitude() != 0.0 ) {
342 RoutingProfile RoutingManager::defaultProfile( RoutingProfile::TransportType transportType ) const
388 text += ' ' + 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." );
390 text += "<p>" + tr( "The Marble development team wishes you a pleasant and safe journey." ) + "</p>";
391 QPointer<QMessageBox> messageBox = new QMessageBox( QMessageBox::Information, tr( "Guidance Mode - Marble" ), text, QMessageBox::Ok );
425 d->m_adjustNavigation->setRecenter( enabled ? AutoNavigation::RecenterOnBorder : AutoNavigation::DontRecenter );
438 if ( m_routeRequest.size() == 2 && m_routeRequest.visited( 0 ) && !m_routeRequest.visited( 1 ) ) {
439 m_routeRequest.setPosition( 0, m_marbleModel->positionTracking()->currentLocation(), QObject::tr( "Current Location" ) );
441 } else if ( m_routeRequest.size() != 0 && !m_routeRequest.visited( m_routeRequest.size()-1 ) ) {
442 m_routeRequest.insert( 0, m_marbleModel->positionTracking()->currentLocation(), QObject::tr( "Current Location" ) );
PositionProviderPlugin positionProviderPlugin
Definition: PositionTracking.h:35
void routeRetrieved(GeoDataDocument *route)
A container for Features, Styles and in the future Schemas.
Definition: GeoDataDocument.h:65
Definition: position-tracking.qml:12
void append(const T &value)
virtual QHash< QString, QVariant > templateSettings(RoutingProfilesModel::ProfileTemplate profileTemplate) const
Settings for the given routing profile template.
Definition: RoutingRunnerPlugin.cpp:91
This file contains the headers for MarbleModel.
QList< const PositionProviderPlugin * > positionProviderPlugins() const
Returns all available PositionProviderPlugins.
Definition: PluginManager.cpp:84
void setRouteColorAlternative(QColor color)
Set color for alternative route rendering.
Definition: RoutingManager.cpp:510
QColor routeColorAlternative() const
Get color for alternative route rendering.
Definition: RoutingManager.cpp:515
Definition: RoutingProfile.h:24
void saveRoute(const QString &filename) const
Saves the current route to the file with the given filename.
Definition: RoutingManager.cpp:332
QString tr(const char *sourceText, const char *disambiguation, int n)
QList< RoutingRunnerPlugin * > routingRunnerPlugins() const
Returns all routing runner plugins.
Definition: PluginManager.cpp:123
int size() const
The abstract class that provides position information.
Definition: PositionProviderPlugin.h:26
Definition: PositionTracking.h:31
Definition: GeoDataParser.h:36
RoutingModel * routingModel()
Provides access to the routing model which contains a list of routing instructions describing steps t...
Definition: RoutingManager.cpp:261
void setRouteColorStandard(QColor color)
Set color for standard route rendering.
Definition: RoutingManager.cpp:490
QColor routeColorStandard() const
Get color for standard route rendering.
Definition: RoutingManager.cpp:495
void stateChanged(RoutingManager::State newState)
Directions and waypoints for the given route are being downloaded or have been retrieved – newState ...
RoutingProfile defaultProfile(RoutingProfile::TransportType transportType) const
Generates a routing profile with default settings for the given transport type.
Definition: RoutingManager.cpp:342
void setGuidanceModeEnabled(bool enabled)
Toggle turn by turn navigation mode.
Definition: RoutingManager.cpp:379
bool isNull() const
void setTransportType(TransportType transportType)
Definition: RoutingProfile.cpp:43
void loadRoute(const QString &filename)
Opens the given filename (kml format) and loads the route contained in it.
Definition: RoutingManager.cpp:337
void setRouteColorHighlighted(QColor color)
Set color for highlighted route rendering.
Definition: RoutingManager.cpp:500
RoutingProfilesModel * profilesModel()
Provides access to the model which contains all possible routing profiles.
Definition: RoutingManager.cpp:256
void setLastSavePath(const QString &path)
Set last directory the user saved a route to.
Definition: RoutingManager.cpp:480
QString lastSavePath() const
Return last directory the user saved a route to.
Definition: RoutingManager.cpp:485
void setShowGuidanceModeStartupWarning(bool show)
Set whether a warning message should be shown to the user before starting guidance mode...
Definition: RoutingManager.cpp:460
T & first()
void readSettings()
Restores a previously saved route request and route from disk, if any.
Definition: RoutingManager.cpp:374
virtual QString nameId() const =0
Returns the unique name of the plugin.
virtual bool supportsTemplate(RoutingProfilesModel::ProfileTemplate profileTemplate) const
True if the plugin supports the given routing profile template.
Definition: RoutingRunnerPlugin.cpp:86
const char * kmlTag_nameSpaceOgc22
Definition: KmlElementDictionary.cpp:34
bool blockSignals(bool block)
const AutoNavigation * adjustNavigation() const
returns the instance of AutoNavigation This is a temporary location for AutoNavigation.
Definition: RoutingManager.cpp:322
Definition: RoutingModel.h:34
const QHash< QString, QHash< QString, QVariant > > & pluginSettings() const
Definition: RoutingProfile.cpp:33
void setLastOpenPath(const QString &path)
Set last directory the user opened a route from.
Definition: RoutingManager.cpp:470
void setChecked(bool)
bool guidanceModeEnabled() const
Definition: RoutingManager.cpp:520
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
A plugin for Marble to execute a routing task.
Definition: RoutingRunnerPlugin.h:33
void setAutoNavigation(AutoNavigation *adjustNavigation)
Definition: RoutingManager.cpp:317
void writeSettings() const
Saves the current route request and the current route to disk.
Definition: RoutingManager.cpp:327
This file contains the headers for MarbleWidget.
void setPositionProviderPlugin(PositionProviderPlugin *plugin)
Change the position provider to use.
Definition: PositionTracking.cpp:184
RoutingManager(MarbleModel *marbleModel, QObject *parent=0)
Constructor.
Definition: RoutingManager.cpp:240
QColor routeColorHighlighted() const
Get color for highlighted route rendering.
Definition: RoutingManager.cpp:505
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
int size() const
QString lastOpenPath() const
Return last directory the user opened a route from.
Definition: RoutingManager.cpp:475
bool showGuidanceModeStartupWarning() const
Returns true (default) if a warning is shown to the user when starting guidance mode.
Definition: RoutingManager.cpp:465
AlternativeRoutesModel * alternativeRoutesModel()
Provides access to the model which contains a list of alternative routes.
Definition: RoutingManager.cpp:312
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.