marble
ControlView.cpp
Go to the documentation of this file.
95 m_cloudSyncManager->routeSyncManager()->setRoutingManager( m_marbleWidget->model()->routingManager() );
99 connect( bookmarkSyncManager, SIGNAL(mergeConflict(MergeItem*)), this, SLOT(showConflictDialog(MergeItem*)) );
100 connect( bookmarkSyncManager, SIGNAL(syncComplete()), m_conflictDialog, SLOT(stopAutoResolve()) );
101 connect( m_conflictDialog, SIGNAL(resolveConflict(MergeItem*)), bookmarkSyncManager, SLOT(resolveConflict(MergeItem*)) );
327 document.addResource( QTextDocument::ImageResource, QUrl( "marble://legend.png" ), QVariant(image) );
395 GeoDataCoordinates coordinates = index.data( RoutingModel::CoordinateRole ).value<GeoDataCoordinates>();
434 text += "<p>" + tr( "The Marble development team wishes you a pleasant and safe journey." ) + "</p>";
436 text += ' ' + tr( "Road construction, weather and other unforeseen variables can result in this suggested route not to be the most expedient or safest route to your destination." );
479 void ControlView::synchronizeWithExternalMapEditor( const QString &application, const QString &argument )
515 mDebug() << "No local server found. Launching " << application << " with argument " << applicationArgument;
517 QString text = tr( "Unable to start the external editor. Check that %1 is installed or choose a different external editor in the settings dialog." );
583 searchWidget->setToolTip( tr( "Search for cities, addresses, points of interest and more (%1)" ).arg( searchSequence.toString() ) );
646 connect(m_togglePanelVisibilityAction, SIGNAL(triggered()), this, SLOT(togglePanelVisibility()));
QLayout * layout() const
void showMapWizard()
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
void setText(const QString &text)
void printMapScreenShot(QPointer< QPrintDialog > dialog)
Definition: ControlView.cpp:171
void setBookmarkManager(BookmarkManager *manager)
Definition: BookmarkSyncManager.cpp:261
void drawContents(QPainter *p, const QRectF &rect)
QSize size() const
void showUploadDialog()
QSize size() const
palette
int width() const
int width() const
bool end()
Definition: ConflictDialog.h:22
void setSeparator(bool b)
void launchExternalMapEditor()
Start the configured external map editor (or update it if it is already running)
Definition: ControlView.cpp:442
void setRenderHint(RenderHint hint, bool on)
static QString path(const QString &relativePath)
Definition: MarbleDirs.cpp:59
void setTabPosition(QFlags< Qt::DockWidgetArea > areas, QTabWidget::TabPosition tabPosition)
MapThemeManager * mapThemeManager()
Definition: ControlView.cpp:114
void setRouteControlsEnabled(bool enabled)
Definition: PrintOptionsWidget.cpp:82
This file contains the headers for MarbleModel.
void setPrintDrivingInstructions(bool print)
Definition: PrintOptionsWidget.cpp:67
bool startDetached(const QString &program, const QStringList &arguments, const QString &workingDirectory, qint64 *pid)
bool isVisible() const
bool printLegend() const
Definition: PrintOptionsWidget.cpp:42
const T & at(int i) const
void mapThemeDeleted()
bool contains(const QString &str, Qt::CaseSensitivity cs) const
A widget consisting of input fields for places / routing destinations, a list view showing routing in...
Definition: RoutingWidget.h:35
T value() const
const GeoDataLatLonAltBox & viewLatLonAltBox() const
Definition: ViewportParams.cpp:305
Definition: TourWidget.h:142
int height() const
Definition: MapViewWidget.h:32
void scale(int width, int height, Qt::AspectRatioMode mode)
void setAllowedAreas(QFlags< Qt::DockWidgetArea > areas)
void togglePanelVisibility()
Toggles all of the docking panels on or off.
Definition: ControlView.cpp:714
int rowCount(const QModelIndex &parent=QModelIndex()) const
Overload of QAbstractListModel.
Definition: RoutingModel.cpp:158
void setRoutingManager(RoutingManager *routingManager)
Definition: RouteSyncManager.cpp:83
const Planet * planet() const
Returns the planet object for the current map.
Definition: MarbleModel.cpp:644
CloudSyncManager * cloudSyncManager()
Definition: ControlView.cpp:676
QString tr(const char *sourceText, const char *disambiguation, int n)
void update()
void setMarbleWidget(MarbleWidget *widget)
Definition: TourWidget.cpp:367
int size() const
A widget class that displays a view of the earth.
Definition: MarbleWidget.h:104
RoutingModel * routingModel()
Provides access to the routing model which contains a list of routing instructions describing steps t...
Definition: RoutingManager.cpp:261
int width() const
qreal altitude() const
return the altitude of the Point in meters
Definition: GeoDataCoordinates.cpp:1197
This file contains the headers for ViewParameters.
void resize(int w, int h)
Definition: LegendWidget.h:27
static QString applicationVersion()
Returns the version of the Marble applications (which differs from the Marble library version)...
Definition: ControlView.cpp:109
void drawRect(const QRectF &rectangle)
qreal north(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the northern boundary of the bounding box.
Definition: GeoDataLatLonBox.cpp:93
qreal east(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the eastern boundary of the bounding box.
Definition: GeoDataLatLonBox.cpp:135
BookmarkSyncManager bookmarkSyncManager
Definition: CloudSyncManager.h:36
This file contains the headers for MarbleMap.
void addGeoDataFile(const QString &filename)
Handle file loading into the treeModel.
Definition: MarbleModel.cpp:725
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
QString number(int n, int base)
qreal centerLongitude() const
Return the longitude of the center point.
Definition: MarbleWidget.cpp:680
bool printDrivingInstructions() const
Definition: PrintOptionsWidget.cpp:62
void setLayout(QLayout *layout)
void setWorkOffline(bool workOffline)
Definition: MarbleModel.cpp:843
bool printRouteSummary() const
Definition: PrintOptionsWidget.cpp:52
int exec(QFlags< QEventLoop::ProcessEventsFlag > flags)
void addResource(int type, const QUrl &name, const QVariant &resource)
void setPen(const QColor &color)
void setFocus()
QString externalMapEditor() const
Returns the editor used to launch a map editor application.
Definition: ControlView.cpp:681
void paintPrintPreview(QPrinter *printer)
Definition: ControlView.cpp:286
void drawRoundedRect(const QRectF &rect, qreal xRadius, qreal yRadius, Qt::SizeMode mode)
bool mapCoversViewport() const
Definition: ViewportParams.cpp:398
void drawPixmap(const QRectF &target, const QPixmap &pixmap, const QRectF &source)
RouteSyncManager routeSyncManager
Definition: CloudSyncManager.h:37
void setObjectName(const QString &name)
void raise()
QString absoluteFilePath() const
bool isEmpty() const
void tabifyDockWidget(QDockWidget *first, QDockWidget *second)
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
void zoomOut(FlyToMode mode=Automatic)
Zoom out by the amount zoomStep.
Definition: MarbleWidget.cpp:538
void handleTourLinkClicked(const QString &path)
Definition: ControlView.cpp:745
void setMergeItem(MergeItem *item)
Definition: ConflictDialog.cpp:32
T & first()
void setShowBackground(bool visible)
Definition: MarbleWidget.cpp:952
void setPrintDrivingInstructionsAdvice(bool print)
Definition: PrintOptionsWidget.cpp:92
void hide()
bool printBackground() const
Definition: PrintOptionsWidget.cpp:32
void setBackgroundControlsEnabled(bool enabled)
Definition: PrintOptionsWidget.cpp:72
void setMargin(int margin)
void setLegendControlsEnabled(bool enabled)
Definition: PrintOptionsWidget.cpp:77
void setSizePolicy(QSizePolicy)
virtual qint64 bytesAvailable() const
Definition: MergeItem.h:23
void zoomIn(FlyToMode mode=Automatic)
Zoom in by the amount zoomStep.
Definition: MarbleWidget.cpp:533
bool exists() const
bool isNull() const
void centerOn(const qreal lon, const qreal lat, bool animated=false)
Center the view on a geographical point.
Definition: MarbleWidget.cpp:549
int height() const
void setShortcut(const QKeySequence &shortcut)
This file contains the headers for ViewportParams.
void stop()
const QSize imageSize(28, 28)
void setWidget(QWidget *widget)
Definition: FileViewWidget.h:33
void setRouteSyncManager(RouteSyncManager *manager)
Definition: RoutingWidget.cpp:639
qreal west(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the western boundary of the bounding box.
Definition: GeoDataLatLonBox.cpp:156
void setStatusTip(const QString &statusTip)
void adjustSize()
The class that handles map themes that are locally available .
Definition: MapThemeManager.h:48
int width() const
void openGeoUri(const QString &geoUriString)
Opens the passed Geo URI.
Definition: ControlView.cpp:232
QAction * toggleViewAction() const
void setMarbleWidget(MarbleWidget *widget, MapThemeManager *mapThemeManager)
Set a MarbleWidget associated to this widget.
Definition: MapViewWidget.cpp:401
QString toString(SequenceFormat format) const
void setExternalMapEditor(const QString &editor)
Change the editor to launch via.
Definition: ControlView.cpp:524
QVariant data(int role) const
GeoDataCoordinates coordinates() const
Returns the coordinates parsed.
Definition: GeoUriParser.cpp:42
void setWindowTitle(const QString &)
qreal south(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the southern boundary of the bounding box.
Definition: GeoDataLatLonBox.cpp:114
int height() const
BookmarkManager * bookmarkManager()
return instance of BookmarkManager
Definition: MarbleModel.cpp:213
void addDockWidget(Qt::DockWidgetArea area, QDockWidget *dockwidget)
void setWorkOffline(bool workOffline)
Definition: ControlView.cpp:668
void setHtml(const QString &html)
QRect pageRect() const
This file contains the headers for MarbleWidget.
void start(int msec)
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 addGeoDataFile(QString filename)
Definition: ControlView.cpp:686
bool printDrivingInstructionsAdvice() const
Definition: PrintOptionsWidget.cpp:87
Planet planet() const
Returns the Planet on which the coordinates are valid.
Definition: GeoUriParser.cpp:47
void show()
QNetworkReply * get(const QNetworkRequest &request)
void print(QPrinter *printer) const
void setToolTip(const QString &)
QStringList mapThemeIds() const
Returns a list of all locally available map theme IDs.
Definition: MapThemeManager.cpp:138
void clearVolatileTileCache()
Definition: MarbleWidget.cpp:981
bool openUrl(const QUrl &url)
CurrentLocationWidget * currentLocationWidget()
Definition: ControlView.cpp:663
void setMarbleWidget(MarbleWidget *widget)
Definition: SearchWidget.cpp:117
Definition: SearchWidget.h:24
bool isActive() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
bool begin(QPaintDevice *device)
Definition: CloudSyncManager.h:24
QRect rect() const
QChar * data()
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
QWidget * widget() const
A class that defines a 3D bounding box for geographic data.
Definition: GeoDataLatLonAltBox.h:49
void setMarbleWidget(MarbleWidget *widget)
Set a MarbleWidget associated to this widget.
Definition: CurrentLocationWidget.cpp:104
void moveRight(FlyToMode mode=Automatic)
Move right by the moveStep.
Definition: MarbleWidget.cpp:601
QList< QAction * > setupDockWidgets(QMainWindow *mainWindow)
Definition: ControlView.cpp:529
void setMarbleModel(MarbleModel *model)
Set a MarbleModel associated to this widget.
Definition: LegendWidget.cpp:51
void setSingleShot(bool singleShot)
void setMarbleWidget(MarbleWidget *widget)
Definition: FileViewWidget.cpp:78
void setPrintRouteSummary(bool print)
Definition: PrintOptionsWidget.cpp:57
qreal centerLatitude() const
Return the latitude of the center point.
Definition: MarbleWidget.cpp:675
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:38 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:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.