marble
CurrentLocationWidget.cpp
Go to the documentation of this file.
134 disconnect( d->m_currentLocationUi.positionTrackingComboBox, SIGNAL(currentIndexChanged(QString)),
156 d->updateActivePositionProvider( d->m_widget->model()->positionTracking()->positionProviderPlugin() );
196 void CurrentLocationWidgetPrivate::adjustPositionTrackingStatus( PositionProviderStatus status )
225 void CurrentLocationWidgetPrivate::updateActivePositionProvider( PositionProviderPlugin *plugin )
245 void CurrentLocationWidgetPrivate::receiveGpsCoordinates( const GeoDataCoordinates &position, qreal speed )
253 qreal length = m_widget->model()->positionTracking()->length( m_widget->model()->planetRadius() );
300 const QString altitudeString = QString( "%1 %2" ).arg( altitude, 0, 'f', 1, QChar(' ') ).arg( altitudeUnitString );
301 const QString distanceString = QString( "%1 %2" ).arg( length, 0, 'f', 1, QChar(' ') ).arg( distanceUnitString );
360 void CurrentLocationWidgetPrivate::updateRecenterComboBox( AutoNavigation::CenterMode centerMode )
373 QString fileName = QFileDialog::getSaveFileName(m_widget, QObject::tr("Save Track"), // krazy:exclude=qclasses
390 QString fileName = QFileDialog::getOpenFileName( m_widget, QObject::tr("Open Track"), // krazy:exclude=qclasses
QLayout * layout() const
QString toString(Qt::DateFormat format) const
static QString lonToString(qreal lon, GeoDataCoordinates::Notation notation, GeoDataCoordinates::Unit unit=Radian, int precision=-1, char format= 'f')
Definition: GeoDataCoordinates.cpp:933
QString & append(QChar ch)
void setTrackVisible(bool visible)
Definition: CurrentLocationWidget.cpp:440
Definition: position-tracking.qml:12
MarbleLocale::MeasurementSystem measurementSystem() const
Definition: MarbleLocale.cpp:45
QString toString(qlonglong i) const
This file contains the headers for MarbleModel.
QList< const PositionProviderPlugin * > positionProviderPlugins() const
Returns all available PositionProviderPlugins.
Definition: PluginManager.cpp:84
QString lastOpenPath() const
Definition: CurrentLocationWidget.cpp:430
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
QString tr(const char *sourceText, const char *disambiguation, int n)
AutoNavigation::CenterMode recenterMode() const
Definition: CurrentLocationWidget.cpp:415
void update()
QLocale system()
A widget class that displays a view of the earth.
Definition: MarbleWidget.h:104
The abstract class that provides position information.
Definition: PositionProviderPlugin.h:26
Definition: PositionTracking.h:31
qreal altitude() const
return the altitude of the Point in meters
Definition: GeoDataCoordinates.cpp:1197
void setAutoZoom(bool activate)
Slot for Auto Zooming while navigating.
Definition: CurrentLocationWidget.cpp:350
void setMarbleModel(const MarbleModel *)
Definition: PositionProviderPlugin.cpp:42
StandardButton question(QWidget *parent, const QString &title, const QString &text, QFlags< QMessageBox::StandardButton > buttons, StandardButton defaultButton)
bool isEmpty() const
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
void setLastSavePath(const QString &path)
Definition: CurrentLocationWidget.cpp:451
void setMargin(int margin)
PositionProviderStatus
Definition: PositionProviderPluginInterface.h:25
bool trackVisible() const
Definition: CurrentLocationWidget.cpp:425
void setLastOpenPath(const QString &path)
Definition: CurrentLocationWidget.cpp:446
bool autoZoom() const
Definition: CurrentLocationWidget.cpp:420
void setRecenterMode(int recenterMode)
Slot that decides whether recentering should be done.
Definition: CurrentLocationWidget.cpp:342
FlyToMode
Describes possible flight mode (interpolation between source and target camera positions) ...
Definition: MarbleGlobal.h:173
CurrentLocationWidget(QWidget *parent=0, Qt::WindowFlags f=0)
Definition: CurrentLocationWidget.cpp:81
static QString latToString(qreal lat, GeoDataCoordinates::Notation notation, GeoDataCoordinates::Unit unit=Radian, int precision=-1, char format= 'f')
Definition: GeoDataCoordinates.cpp:1080
QDateTime currentDateTime()
QString getSaveFileName(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedFilter, QFlags< QFileDialog::Option > options)
QString lastSavePath() const
Definition: CurrentLocationWidget.cpp:435
int length() const
This file contains the headers for MarbleWidget.
virtual QString guiString() const =0
Returns the string that should appear in the user interface.
virtual PositionProviderPlugin * newInstance() const =0
Create a new PositionProvider Plugin and return it.
typedef WindowFlags
void setPositionProviderPlugin(PositionProviderPlugin *plugin)
Change the position provider to use.
Definition: PositionTracking.cpp:184
QString getOpenFileName(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedFilter, QFlags< QFileDialog::Option > options)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
a class representing a point of interest on the map
Definition: GeoDataPlacemark.h:54
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
~CurrentLocationWidget()
Definition: CurrentLocationWidget.cpp:99
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.