marble
QtMainWindow.cpp
Go to the documentation of this file.
100 MainWindow::MainWindow(const QString& marbleDataPath, const QVariantMap& cmdLineSettings, QWidget *parent) :
221 m_clock = QLocale().toString( m_controlView->marbleModel()->clockDateTime().addSecs( m_controlView->marbleModel()->clockTimezone() ), QLocale::ShortFormat );
239 // delay file loading to initObject(), such that restoring view from previous session in readSettings()
264 m_downloadAction = new QAction( QIcon(":/icons/get-hot-new-stuff.png"), tr("&Download Maps..."), this);
267 m_exportMapAction = new QAction( QIcon(":/icons/document-save-as.png"), tr("&Export Map..."), this);
274 m_downloadRegionAction->setStatusTip( tr( "Download a map region in different zoom levels for offline usage" ) );
282 m_printPreviewAction = new QAction( QIcon(":/icons/document-print-preview.png"), tr("Print Previe&w ..."), this);
300 connect( m_osmEditAction, SIGNAL(triggered()), m_controlView, SLOT(launchExternalMapEditor()) );
316 m_configDialogAction = new QAction( QIcon(":/icons/settings-configure.png"),tr("&Configure Marble"), this);
320 m_copyCoordinatesAction = new QAction( QIcon(":/icons/copy-coordinates.png"), tr("C&opy Coordinates"), this);
324 m_fullScreenAction = new QAction( QIcon(":/icons/view-fullscreen.png"), tr("&Full Screen Mode"), this);
346 m_workOfflineAction = new QAction( QIcon(":/icons/user-offline.png"), tr("Work Off&line"), this);
350 m_controlTimeAction = new QAction( QIcon(":/icons/clock.png"), tr( "&Time Control..." ), this );
363 m_handbookAction = new QAction( QIcon(":/icons/help-contents.png"), tr("Marble Virtual Globe &Handbook"), this);
368 m_whatsThisAction = new QAction( QIcon(":/icons/help-whatsthis.png"), tr("What's &This"), this);
373 m_aboutMarbleAction = new QAction( QIcon(":/icons/marble.png"), tr("&About Marble Virtual Globe"), this);
382 m_addBookmarkAction = new QAction( QIcon(":/icons/bookmark-new.png"), tr("&Add Bookmark"),this);
394 connect( m_toggleBookmarkDisplayAction, SIGNAL(triggered(bool)), this, SLOT(showBookmarks(bool)) );
396 m_manageBookmarksAction = new QAction( QIcon( ":/icons/bookmarks-organize.png" ), tr( "&Manage Bookmarks" ), this);
401 m_mapWizardAction = new QAction( QIcon( ":/icons/create-new-map.png" ), tr("&Create a New Map..."), this );
402 m_mapWizardAction->setStatusTip( tr( "A wizard guides you through the creation of your own map theme." ) );
476 connect( m_viewSizeActsGroup, SIGNAL(triggered(QAction*)), this, SLOT(changeViewSize(QAction*)) );
597 void MainWindow::createBookmarksListMenu( QMenu *bookmarksListMenu, const GeoDataContainer *container )
627 m_toggleBookmarkDisplayAction->setChecked( m_controlView->marbleModel()->bookmarkManager()->document()->isVisible() );
635 createFolderList( m_bookmarkMenu, m_controlView->marbleModel()->bookmarkManager()->document() );
638 void MainWindow::createFolderList( QMenu *bookmarksListMenu, const GeoDataContainer *container )
647 QMenu *subMenu = bookmarksListMenu->addMenu( QIcon( ":/icons/folder-bookmark.png" ), folder->name() );
668 mDebug() << " looking at bookmark having longitude : "<< temp.longitude(GeoDataCoordinates::Degree)
691 widget->model()->setHome( widget->centerLongitude(), widget->centerLatitude(), widget->zoom() );
697 QPointer<EditBookmarkDialog> dialog = new EditBookmarkDialog( widget->model()->bookmarkManager(), widget );
777 QPointer<MapThemeDownloadDialog> dialog( new MapThemeDownloadDialog( m_controlView->marbleWidget() ) );
784 QString fileName = QFileDialog::getSaveFileName(this, tr("Export Map"), // krazy:exclude=qclasses
827 QString positionString = GeoDataCoordinates( lon, lat, 0.0, GeoDataCoordinates::Degree ).toString();
909 /* m_timeControlDialog is a modeless dialog so that user may adjust time and interact with main application simultaneously.*/
934 dlg.setApplicationTitle( tr( "Marble Virtual Globe %1" ).arg( ControlView::applicationVersion() ) );
971 m_clock = QLocale().toString( m_controlView->marbleModel()->clockDateTime().addSecs( m_controlView->marbleModel()->clockTimezone() ), QLocale::ShortFormat );
1004 const QStringList fileExtensions = plugin->fileExtensions().replaceInStrings( QRegExp( "^" ), "*." );
1005 const QString filter = QString( "%1 (%2)" ).arg( plugin->fileFormatDescription() ).arg( fileExtensions.join( " " ) );
1011 const QString allFileTypes = QString( "%1 (%2)" ).arg( tr( "All Supported Files" ) ).arg( allFileExtensions.join( " " ) );
1017 QStringList fileNames = QFileDialog::getOpenFileNames( this, tr( "Open File" ), m_lastFileOpenPath, filter );
1066 QString templateDateTimeString = QString( "%1 %2" ).arg( DATETIME_STRING , QLocale().toString( QDateTime::fromString ( "01:01:1000", "dd:mm:yyyy"), QLocale::ShortFormat ) );
1093 connect( downloadManager, SIGNAL(progressChanged( int, int )), SLOT(handleProgress( int, int )) );
1104 m_downloadProgressBar->setMaximum( qMax<int>( m_downloadProgressBar->maximum(), active + queued ) );
1152 m_controlView->marbleWidget()->setShowAtmosphere(settings.value("showAtmosphere", true ).toBool());
1162 const QVariantMap::ConstIterator mapThemeIdIt = overrideSettings.find(QLatin1String("mapTheme"));
1182 const QVariantMap::ConstIterator distanceIt = overrideSettings.find(QLatin1String("distance"));
1223 m_controlView->marbleWidget()->setShowSunShading( settings.value( "showSun", false ).toBool() );
1224 m_controlView->marbleWidget()->setShowCityLights( settings.value( "showCitylights", false ).toBool() );
1225 m_controlView->marbleWidget()->setLockToSubSolarPoint( settings.value( "lockToSubSolarPoint", false ).toBool() );
1226 m_controlView->marbleWidget()->setSubSolarPointIconVisible( settings.value( "subSolarPointIconVisible", false ).toBool() );
1248 bool const startupWarning = settings.value( "showGuidanceModeStartupWarning", QVariant( true ) ).toBool();
1250 routingManager->setLastOpenPath( settings.value( "lastRouteOpenPath", QDir::homePath() ).toString() );
1251 routingManager->setLastSavePath( settings.value( "lastRouteSavePath", QDir::homePath() ).toString() );
1254 tempColor = QColor( settings.value( "routeColorStandard", Oxygen::skyBlue4.name() ).toString() );
1258 tempColor = QColor( settings.value( "routeColorHighlighted", Oxygen::skyBlue1.name() ).toString() );
1262 tempColor = QColor( settings.value( "routeColorAlternative", Oxygen::aluminumGray4.name() ).toString() );
1295 if ( profileIndex >= 0 && profileIndex < m_controlView->marbleModel()->routingManager()->profilesModel()->rowCount() ) {
1296 RoutingProfile profile = m_controlView->marbleModel()->routingManager()->profilesModel()->profiles().at( profileIndex );
1305 QString positionProvider = settings.value( "activePositionTrackingPlugin", QString() ).toString();
1326 trackingWidget->setLastOpenPath( settings.value( "lastTrackOpenPath", QDir::homePath() ).toString() );
1327 trackingWidget->setLastSavePath( settings.value( "lastTrackSavePath", QDir::homePath() ).toString() );
1344 cloudSyncManager->routeSyncManager()->setRouteSyncEnabled( settings.value( "syncRoutes", true ).toBool() );
1345 cloudSyncManager->bookmarkSyncManager()->setBookmarkSyncEnabled( settings.value( "syncBookmarks", true ).toBool() );
1398 settings.setValue( "lockToSubSolarPoint", m_controlView->marbleWidget()->isLockedToSubSolarPoint() );
1399 settings.setValue( "subSolarPointIconVisible", m_controlView->marbleWidget()->isSubSolarPointIconVisible() );
1431 RoutingProfile const profile = m_controlView->marbleWidget()->model()->routingManager()->routeRequest()->routingProfile();
1465 settings.setValue( "showGuidanceModeStartupWarning", routingManager->showGuidanceModeStartupWarning() );
1497 m_controlView->marbleWidget()->setMapQualityForViewContext( m_configDialog->stillQuality(), Marble::Still );
1498 m_controlView->marbleWidget()->setMapQualityForViewContext( m_configDialog->animationQuality(), Marble::Animation );
1501 MarbleGlobal::getInstance()->locale()->setMeasurementSystem( m_configDialog->measurementSystem() );
1507 m_controlView->marbleWidget()->inputHandler()->setInertialEarthRotationEnabled( m_configDialog->inertialEarthRotation() );
1513 m_controlView->marbleModel()->setPersistentTileCacheLimit( m_configDialog->persistentTileCacheLimit() * 1024 );
1514 m_controlView->marbleWidget()->setVolatileTileCacheLimit( m_configDialog->volatileTileCacheLimit() * 1024 );
1517 m_controlView->marbleWidget()->setProxy( m_configDialog->proxyUrl(), m_configDialog->proxyPort(), m_configDialog->user(), m_configDialog->password() );
1526 cloudSyncManager->bookmarkSyncManager()->setBookmarkSyncEnabled( m_configDialog->syncBookmarks() );
1534 m_downloadRegionDialog = new DownloadRegionDialog( m_controlView->marbleWidget(), m_controlView );
QString defaultMapThemeId() const
Returns a default map theme: earth/srtm/srtm.dgml if installed, any other theme id if earth/srtm/srtm...
Definition: ControlView.cpp:149
Definition: TimeControlWidget.h:31
void printMapScreenShot(QPointer< QPrintDialog > dialog)
Definition: ControlView.cpp:171
PositionProviderPlugin positionProviderPlugin
Definition: PositionTracking.h:35
void clear()
void addToolBar(Qt::ToolBarArea area, QToolBar *toolbar)
bool isSubSolarPointIconVisible
Definition: MarbleWidget.h:128
QByteArray toByteArray() const
const GeoDataLookAt * lookAt() const
Returns GeoDataLookAt object if lookAt is setup earlier otherwise It will convert GeoDataCoordinates ...
Definition: GeoDataPlacemark.cpp:162
bool close()
void setMaximum(int maximum)
void setHeight(int height)
void setPersistentTileCacheLimit(quint64 kiloBytes)
Set the limit of the persistent (on hard disc) tile cache.
Definition: MarbleModel.cpp:607
void setTrackVisible(bool visible)
Definition: CurrentLocationWidget.cpp:440
bool animateTargetVoyage() const
Definition: QtMarbleConfigDialog.cpp:559
Definition: position-tracking.qml:12
QString distanceString() const
Return the current distance string.
Definition: MarbleWidget.cpp:1081
void closeEvent(QCloseEvent *event)
Definition: MobileMainWindow.cpp:285
QList< RoutingProfile > profiles() const
Definition: RoutingProfilesModel.cpp:60
void addBookmark(GeoDataContainer *folder, const GeoDataPlacemark &bookmark)
add bookmark in a folder
Definition: BookmarkManager.cpp:132
void setSeparator(bool b)
void setFixedWidth(int w)
void setShowCityLights(bool visible)
Set whether city lights instead of night shadow are visible.
Definition: MarbleWidget.cpp:830
void setOwncloudCredentials(const QString &server, const QString &user, const QString &password)
Change owncloud server URL, username and password at once without emitting change signals like setOwn...
Definition: CloudSyncManager.cpp:111
QString toString(qlonglong i) const
QStringList childKeys() const
qreal longitude(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
retrieves the longitude of the GeoDataLookAt object use the unit parameter to switch between Radian a...
Definition: GeoDataLookAt.cpp:104
QString name() const
void addAction(QAction *action)
bool isEmpty() const
void showMessage(const QString &message, int timeout)
void addActions(QList< QAction * > actions)
void endGroup()
QDateTime toDateTime() const
void setChecked(bool)
This file contains the headers for MarbleModel.
QList< const PositionProviderPlugin * > positionProviderPlugins() const
Returns all available PositionProviderPlugins.
Definition: PluginManager.cpp:84
QVariant data() const
QStatusBar * statusBar() const
void setSpecifiedLatLonAltBox(GeoDataLatLonAltBox const &)
Definition: DownloadRegionDialog.cpp:342
void setIcon(const QIcon &icon)
void setVisible(bool)
const T & at(int i) const
void setAnimationsEnabled(bool enabled)
Set whether travels to a point should get animated.
Definition: MarbleWidget.cpp:1041
QString owncloudServer() const
Definition: QtMarbleConfigDialog.cpp:699
virtual void setVisible(bool visible)
bool isVisible() const
Return whether this feature is visible or not.
Definition: GeoDataFeature.cpp:656
void setRouteColorAlternative(QColor color)
Set color for alternative route rendering.
Definition: RoutingManager.cpp:510
Definition: SunControlWidget.h:31
void setProjection(int projection)
Set the Projection used for the map.
Definition: MarbleWidget.cpp:591
const GeoDataLatLonAltBox & viewLatLonAltBox() const
Definition: ViewportParams.cpp:305
A base class that can hold GeoDataFeatures.
Definition: GeoDataContainer.h:47
void setDefaultAngleUnit(AngleUnit angleUnit)
Definition: MarbleWidget.cpp:1051
GeoDataCoordinates coordinate(const QDateTime &dateTime=QDateTime(), bool *iconAtCoordinates=0) const
Return the coordinates of the placemark at time dateTime as a GeoDataCoordinates. ...
Definition: GeoDataPlacemark.cpp:172
void setAlpha(int alpha)
QColor routeColorAlternative() const
Get color for alternative route rendering.
Definition: RoutingManager.cpp:515
QAction * addAction(QAction *action)
void setBookmarkSyncEnabled(bool enabled)
Setter for enabling/disabling bookmark synchronization.
Definition: BookmarkSyncManager.cpp:249
void setInertialEarthRotationEnabled(bool enabled)
Definition: MarbleInputHandler.cpp:116
T & first()
void setVolatileTileCacheLimit(quint64 kiloBytes)
Set the limit of the volatile (in RAM) tile cache.
Definition: MarbleWidget.cpp:987
QString join(const QString &separator) const
const PluginManager * pluginManager() const
Definition: MarbleModel.cpp:634
QString lastOpenPath() const
Definition: CurrentLocationWidget.cpp:430
value
Definition: RoutingProfile.h:24
void adjustSize()
CloudSyncManager * cloudSyncManager()
Definition: ControlView.cpp:676
QString homePath()
void setProfiles(const QList< RoutingProfile > &profiles)
Definition: RoutingProfilesModel.cpp:53
QString tr(const char *sourceText, const char *disambiguation, int n)
AutoNavigation::CenterMode recenterMode() const
Definition: CurrentLocationWidget.cpp:415
qreal range() const
Retrieve the distance (in meters) between the camera and the object looked at.
Definition: GeoDataLookAt.cpp:120
void update()
QString owncloudPassword() const
Definition: QtMarbleConfigDialog.cpp:709
MainWindow(const QString &marbleDataPath=QString(), QWidget *parent=0)
Definition: KdeMainWindow.cpp:40
This file contains the header for MapWizard.
int onStartup() const
Definition: QtMarbleConfigDialog.cpp:547
void setShowBookmarks(bool visible)
Definition: BookmarkManager.cpp:169
A widget class that displays a view of the earth.
Definition: MarbleWidget.h:104
void setSubSolarPointIconVisible(bool visible)
Set whether the sun icon is shown in the sub solar point.
Definition: MarbleWidget.cpp:845
The abstract class that provides position information.
Definition: PositionProviderPlugin.h:26
Definition: PositionTracking.h:31
int indexOf(const T &value, int from) const
void setVisibleLatLonAltBox(GeoDataLatLonAltBox const &)
Definition: DownloadRegionDialog.cpp:347
void flyTo(const GeoDataLookAt &lookAt, FlyToMode mode=Automatic)
Change the camera position to the given position.
Definition: MarbleWidget.cpp:1166
void setValue(const QString &key, const QVariant &value)
void resize(int w, int h)
void setWindowState(QFlags< Qt::WindowState > windowState)
static QString applicationVersion()
Returns the version of the Marble applications (which differs from the Marble library version)...
Definition: ControlView.cpp:109
QVector< TileCoordsPyramid > region() const
Definition: DownloadRegionDialog.cpp:311
void setMinimumSize(const QSize &)
void setRouteSyncEnabled(bool enabled)
Setter for enabling/disabling route synchronization.
Definition: RouteSyncManager.cpp:93
void setRouteColorStandard(QColor color)
Set color for standard route rendering.
Definition: RoutingManager.cpp:490
const char * name() const
QRect boundingRect(QChar ch) const
QColor routeColorStandard() const
Get color for standard route rendering.
Definition: RoutingManager.cpp:495
RoutingProfile routingProfile() const
Definition: RouteRequest.cpp:321
BookmarkSyncManager bookmarkSyncManager
Definition: CloudSyncManager.h:36
void addGeoDataFile(const QString &filename)
Handle file loading into the treeModel.
Definition: MarbleModel.cpp:725
QString number(int n, int base)
int count(const T &value) const
void downloadRegion(QVector< TileCoordsPyramid > const &)
Definition: MarbleWidget.cpp:1176
void processEvents(QFlags< QEventLoop::ProcessEventsFlag > flags)
void append(const T &value)
int persistentTileCacheLimit() const
Definition: QtMarbleConfigDialog.cpp:576
bool save(const QString &fileName, const char *format, int quality) const
qreal centerLongitude() const
Return the longitude of the center point.
Definition: MarbleWidget.cpp:680
void setPixmap(const QPixmap &pixmap, Mode mode)
void setAutoZoom(bool activate)
Slot for Auto Zooming while navigating.
Definition: CurrentLocationWidget.cpp:350
int toInt(bool *ok) const
bool isNull() const
QClipboard * clipboard()
void setMarbleModel(const MarbleModel *)
Definition: PositionProviderPlugin.cpp:42
Qt::WindowStates windowState() const
void setRange(qreal range)
Change the distance (in meters) between the camera and the object looked at.
Definition: GeoDataLookAt.cpp:114
void removeWidget(QWidget *widget)
bool isLockedToSubSolarPoint
Definition: MarbleWidget.h:127
void setUpdatesEnabled(bool enable)
Definition: DataMigration.h:20
QString externalMapEditor() const
Returns the editor used to launch a map editor application.
Definition: ControlView.cpp:681
void home(qreal &lon, qreal &lat, int &zoom) const
get the home point
Definition: MarbleModel.cpp:446
bool isEmpty() const
RouteSyncManager routeSyncManager
Definition: CloudSyncManager.h:37
bool contains(const QString &key) const
void setRouteColorHighlighted(QColor color)
Set color for highlighted route rendering.
Definition: RoutingManager.cpp:500
void setObjectName(const QString &name)
RoutingProfilesModel * profilesModel()
Provides access to the model which contains all possible routing profiles.
Definition: RoutingManager.cpp:256
void setLockToSubSolarPoint(bool visible)
Set the globe locked to the sub solar point.
Definition: MarbleWidget.cpp:837
void raise()
QVector< GeoDataFolder * > folderList() const
A convenience function that returns all folders in this container.
Definition: GeoDataContainer.cpp:197
bool isEmpty() const
void setLastSavePath(const QString &path)
Set last directory the user saved a route to.
Definition: RoutingManager.cpp:480
PositionTracking * positionTracking() const
Definition: MarbleModel.cpp:512
QStringList childGroups() const
void setRoutingProfile(const RoutingProfile &profile)
Definition: RouteRequest.cpp:315
bool inertialEarthRotation() const
Definition: QtMarbleConfigDialog.cpp:565
void move(int x, int y)
Definition: MapWizard.h:33
QList< const ParseRunnerPlugin * > parsingRunnerPlugins() const
Returns all parse runner plugins.
Definition: PluginManager.cpp:136
void removeToolBar(QToolBar *toolbar)
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
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
qreal latitude(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
retrieves the latitude of the GeoDataLookAt object use the unit parameter to switch between Radian an...
Definition: GeoDataLookAt.cpp:93
void setLastSavePath(const QString &path)
Definition: CurrentLocationWidget.cpp:451
QStringList & replaceInStrings(const QString &before, const QString &after, Qt::CaseSensitivity cs)
void deleteLater()
T & first()
void setText(const QString &)
void hide()
MarbleLocale::MeasurementSystem measurementSystem() const
Definition: QtMarbleConfigDialog.cpp:504
void setAllowedTileLevelRange(int const minimumTileLevel, int const maximumTileLevel)
Definition: DownloadRegionDialog.cpp:261
void readSettings()
Restores a previously saved route request and route from disk, if any.
Definition: RoutingManager.cpp:374
void setClockDateTime(const QDateTime &datetime)
Definition: MarbleModel.cpp:685
Definition: GeoDataFolder.h:50
virtual QStringList fileExtensions() const =0
Returns the file extensions associated with the file format.
void goHome(FlyToMode mode=Automatic)
Center the view on the default start point with the default zoom.
Definition: MarbleWidget.cpp:749
Definition: MarbleAboutDialog.h:30
int alpha() const
virtual QString nameId() const =0
Returns the unique name of the plugin.
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
QList< Key > keys() const
QSize toSize() const
virtual QString fileFormatDescription() const =0
Returns a short description of the supported file format.
void loadDefaultProfiles()
Definition: RoutingProfilesModel.cpp:126
void setData(const QVariant &userData)
bool trackVisible() const
Definition: CurrentLocationWidget.cpp:425
void setLastOpenPath(const QString &path)
Definition: CurrentLocationWidget.cpp:446
Delegates data retrieval and model updates to the appropriate routing provider.
Definition: RoutingManager.h:37
bool autoZoom() const
Definition: CurrentLocationWidget.cpp:420
void remove(const QString &key)
void centerOn(const qreal lon, const qreal lat, bool animated=false)
Center the view on a geographical point.
Definition: MarbleWidget.cpp:549
void setShowSunShading(bool visible)
Set whether the night shadow is visible.
Definition: MarbleWidget.cpp:823
void setFixedSize(const QSize &s)
void setContextMenuPolicy(Qt::ContextMenuPolicy policy)
void setShortcut(const QKeySequence &shortcut)
void setRecenterMode(int recenterMode)
Slot that decides whether recentering should be done.
Definition: CurrentLocationWidget.cpp:342
QDateTime fromString(const QString &string, Qt::DateFormat format)
This file contains the headers for ViewportParams.
QByteArray saveState(int version) const
void setCheckable(bool)
bool invokeMethod(QObject *obj, const char *member, Qt::ConnectionType type, QGenericReturnArgument ret, QGenericArgument val0, QGenericArgument val1, QGenericArgument val2, QGenericArgument val3, QGenericArgument val4, QGenericArgument val5, QGenericArgument val6, QGenericArgument val7, QGenericArgument val8, QGenericArgument val9)
void setSizeGripEnabled(bool)
A plugin for Marble to execute a parsing task.
Definition: ParseRunnerPlugin.h:27
void setMaximumSize(const QSize &)
Definition: GeoDataLookAt.h:23
const QHash< QString, QHash< QString, QVariant > > & pluginSettings() const
Definition: RoutingProfile.cpp:33
void setSyncEnabled(bool enabled)
Setter for enabling/disabling synchronization.
Definition: CloudSyncManager.cpp:103
void setHome(qreal lon, qreal lat, int zoom=1050)
Set the home point.
Definition: MarbleModel.cpp:452
void setLastOpenPath(const QString &path)
Set last directory the user opened a route from.
Definition: RoutingManager.cpp:470
bool syncRoutes() const
Definition: QtMarbleConfigDialog.cpp:694
void setMapQualityForViewContext(MapQuality quality, ViewContext viewContext)
Set the map quality for the specified view context.
Definition: MarbleWidget.cpp:1009
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
QVariant value(const QString &key, const QVariant &defaultValue) const
QList< QAction * > actions() const
void addPermanentWidget(QWidget *widget, int stretch)
void setStatusTip(const QString &statusTip)
QString externalMapEditor() const
Definition: QtMarbleConfigDialog.cpp:554
int width() const
void openGeoUri(const QString &geoUriString)
Opens the passed Geo URI.
Definition: ControlView.cpp:232
QFontMetrics fontMetrics() const
void setExternalMapEditor(const QString &editor)
Change the editor to launch via.
Definition: ControlView.cpp:524
QStringList toStringList() const
char * toString(const T &value)
void activateWindow()
void enterWhatsThisMode()
T takeFirst()
bool isEmpty() const
T & last()
QString toString() const
return a string representation of the coordinate this is a convenience function which uses the defaul...
Definition: GeoDataCoordinates.cpp:921
void removeAction(QAction *action)
bool restoreState(const QByteArray &state, int version)
QString owncloudUsername() const
Definition: QtMarbleConfigDialog.cpp:704
void setShowAtmosphere(bool visible)
Set whether the atmospheric glow is visible.
Definition: MarbleWidget.cpp:861
void showFullScreen()
BookmarkManager * bookmarkManager()
return instance of BookmarkManager
Definition: MarbleModel.cpp:213
QString getSaveFileName(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedFilter, QFlags< QFileDialog::Option > options)
QAction * addSeparator()
QString lastSavePath() const
Definition: CurrentLocationWidget.cpp:435
void writeSettings() const
Saves the current route request and the current route to disk.
Definition: RoutingManager.cpp:327
bool toBool() const
Projection
This enum is used to choose the projection shown in the view.
Definition: MarbleGlobal.h:44
void setWorkOffline(bool workOffline)
Definition: ControlView.cpp:668
QPoint toPoint() const
void sort()
virtual PositionProviderPlugin * newInstance() const =0
Create a new PositionProvider Plugin and return it.
StandardButton warning(QWidget *parent, const QString &title, const QString &text, QFlags< QMessageBox::StandardButton > buttons, StandardButton defaultButton)
void setDistance(qreal distance)
Set the distance of the observer to the globe in km.
Definition: MarbleWidget.cpp:1076
void prepend(const T &value)
double toDouble(bool *ok) const
void setShowClouds(bool visible)
Set whether the cloud cover is visible.
Definition: MarbleWidget.cpp:816
void setText(const QString &text, Mode mode)
void setPositionProviderPlugin(PositionProviderPlugin *plugin)
Change the position provider to use.
Definition: PositionTracking.cpp:184
HttpDownloadManager * downloadManager()
Return the downloadmanager to load missing tiles.
Definition: MarbleModel.cpp:466
void setDefaultFont(const QFont &font)
Definition: MarbleWidget.cpp:1061
void show()
QFuture< void > filter(Sequence &sequence, FilterFunction filterFunction)
int find(QChar c, int i, bool cs) const
MarbleWidget * marbleWidget() const
Definition: KdeMainWindow.cpp:153
bool syncEnabled() const
Definition: QtMarbleConfigDialog.cpp:679
void setMeasurementSystem(MarbleLocale::MeasurementSystem measurementSystem)
Definition: MarbleLocale.cpp:40
const_iterator constEnd() const
void reset()
const_iterator constBegin() const
void setIndent(int)
QDateTime addSecs(int s) const
bool openUrl(const QUrl &url)
GeoDataCoordinates coordinates() const
retrieve the lat/lon/alt triple as a GeoDataCoordinates object
Definition: GeoDataLookAt.cpp:109
Type type() const
CurrentLocationWidget * currentLocationWidget()
Definition: ControlView.cpp:663
QString absolutePath() const
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)
MarbleWidgetInputHandler * inputHandler() const
Returns the current input handler.
Definition: MarbleWidget.cpp:320
int size() const
Definition: ControlView.h:46
Definition: CloudSyncManager.h:24
bool syncBookmarks() const
Definition: QtMarbleConfigDialog.cpp:689
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
void addGeoDataFile(const QString &path)
Definition: MobileMainWindow.cpp:197
Marble::AngleUnit angleUnit() const
Definition: QtMarbleConfigDialog.cpp:514
QString toString() const
QString lastOpenPath() const
Return last directory the user opened a route from.
Definition: RoutingManager.cpp:475
int volatileTileCacheLimit() const
Definition: QtMarbleConfigDialog.cpp:570
a class representing a point of interest on the map
Definition: GeoDataPlacemark.h:54
Marble::MapQuality animationQuality() const
Definition: QtMarbleConfigDialog.cpp:525
QList< AbstractFloatItem * > floatItems() const
Returns a list of all FloatItems on the widget.
Definition: MarbleWidget.cpp:1146
margin
bool showGuidanceModeStartupWarning() const
Returns true (default) if a warning is shown to the user when starting guidance mode.
Definition: RoutingManager.cpp:465
QList< RenderPlugin * > renderPlugins() const
Returns a list of all RenderPlugins on the widget, this includes float items.
Definition: MarbleWidget.cpp:1107
void setEnabled(bool)
int insertPermanentWidget(int index, QWidget *widget, int stretch)
void beginGroup(const QString &prefix)
Marble::MapQuality stillQuality() const
Definition: QtMarbleConfigDialog.cpp:519
QStringList getOpenFileNames(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedFilter, QFlags< QFileDialog::Option > options)
void setCoordinates(const GeoDataCoordinates &coordinates)
set the GeoDataCoordinates object
Definition: GeoDataLookAt.cpp:66
This class manages scheduled downloads.
Definition: HttpDownloadManager.h:44
qreal centerLatitude() const
Return the latitude of the center point.
Definition: MarbleWidget.cpp:675
QVector< GeoDataPlacemark * > placemarkList() const
A convenience function that returns all placemarks in this container.
Definition: GeoDataContainer.cpp:214
void setSelectionMethod(SelectionMethod const )
Definition: DownloadRegionDialog.cpp:274
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.