Marble
CurrentLocationWidget.cpp
81 connect(d->m_currentLocationUi.recenterComboBox, &QComboBox::currentIndexChanged, this, &CurrentLocationWidget::setRecenterMode);
83 connect(d->m_currentLocationUi.autoZoomCheckBox, &QAbstractButton::clicked, this, &CurrentLocationWidget::setAutoZoom);
127 disconnect(d->m_currentLocationUi.positionTrackingComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(changePositionProvider(int)));
128 disconnect(d->m_currentLocationUi.locationLabel, SIGNAL(linkActivated(QString)), this, SLOT(centerOnCurrentLocation()));
134 disconnect(d->m_widget->model(), SIGNAL(trackedPlacemarkChanged(const GeoDataPlacemark *)), this, SLOT(trackPlacemark()));
145 d->updateActivePositionProvider(d->m_widget->model()->positionTracking()->positionProviderPlugin());
146 connect(d->m_currentLocationUi.positionTrackingComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(changePositionProvider(int)));
147 connect(d->m_currentLocationUi.locationLabel, SIGNAL(linkActivated(QString)), this, SLOT(centerOnCurrentLocation()));
153 connect(d->m_adjustNavigation, SIGNAL(recenterModeChanged(AutoNavigation::CenterMode)), this, SLOT(updateRecenterComboBox(AutoNavigation::CenterMode)));
154 connect(d->m_adjustNavigation, SIGNAL(autoZoomToggled(bool)), this, SLOT(updateAutoZoomCheckBox(bool)));
155 connect(d->m_adjustNavigation, SIGNAL(zoomIn(FlyToMode)), d->m_widget, SLOT(zoomIn(FlyToMode)));
156 connect(d->m_adjustNavigation, SIGNAL(zoomOut(FlyToMode)), d->m_widget, SLOT(zoomOut(FlyToMode)));
157 connect(d->m_adjustNavigation, SIGNAL(centerOn(GeoDataCoordinates, bool)), d->m_widget, SLOT(centerOn(GeoDataCoordinates, bool)));
159 connect(d->m_widget, SIGNAL(visibleLatLonAltBoxChanged(GeoDataLatLonAltBox)), d->m_adjustNavigation, SLOT(inhibitAutoAdjustments()));
160 connect(d->m_widget->model()->routingManager(), SIGNAL(guidanceModeEnabledChanged(bool)), this, SLOT(updateGuidanceMode()));
162 connect(d->m_currentLocationUi.showTrackCheckBox, SIGNAL(clicked(bool)), d->m_widget->model()->positionTracking(), SLOT(setTrackVisible(bool)));
163 connect(d->m_currentLocationUi.showTrackCheckBox, SIGNAL(clicked(bool)), d->m_widget, SLOT(update()));
167 connect(d->m_currentLocationUi.saveTrackButton, SIGNAL(clicked(bool)), this, SLOT(saveTrack()));
168 connect(d->m_currentLocationUi.openTrackButton, SIGNAL(clicked(bool)), this, SLOT(openTrack()));
169 connect(d->m_currentLocationUi.clearTrackButton, SIGNAL(clicked(bool)), this, SLOT(clearTrack()));
170 connect(d->m_widget->model(), SIGNAL(trackedPlacemarkChanged(const GeoDataPlacemark *)), this, SLOT(trackPlacemark()));
226 m_adjustNavigation->setRecenter(enabled ? AutoNavigation::RecenterOnBorder : AutoNavigation::DontRecenter);
229void CurrentLocationWidgetPrivate::receiveGpsCoordinates(const GeoDataCoordinates &position, qreal speed)
237 qreal length = m_widget->model()->positionTracking()->length(m_widget->model()->planetRadius());
285 const QString altitudeString = QStringLiteral("%1 %2").arg(altitude, 0, 'f', 1, QLatin1Char(' ')).arg(altitudeUnitString);
286 const QString distanceString = QStringLiteral("%1 %2").arg(length, 0, 'f', 1, QLatin1Char(' ')).arg(distanceUnitString);
368 suggested.append(QLatin1Char('/') + QDateTime::currentDateTime().toString(QStringLiteral("yyyy-MM-dd_hhmmss")) + QLatin1StringView(".kml")),
This file contains the headers for MarbleModel.
This file contains the headers for MarbleWidget.
static QString latToString(qreal lat, GeoDataCoordinates::Notation notation, GeoDataCoordinates::Unit unit=Radian, int precision=-1, char format='f')
Definition GeoDataCoordinates.cpp:563
qreal altitude() const
return the altitude of the Point in meters
Definition GeoDataCoordinates.cpp:688
static QString lonToString(qreal lon, GeoDataCoordinates::Notation notation, GeoDataCoordinates::Unit unit=Radian, int precision=-1, char format='f')
Definition GeoDataCoordinates.cpp:407
A class that defines a 3D bounding box for geographic data.
Definition GeoDataLatLonAltBox.h:40
a class representing a point of interest on the map
Definition GeoDataPlacemark.h:47
void addGeoDataFile(const QString &filename)
Handle file loading into the treeModel.
Definition MarbleModel.cpp:698
void centerOn(const qreal lon, const qreal lat, bool animated=false)
Center the view on a geographical point.
Definition MarbleWidget.cpp:558
QList< const PositionProviderPlugin * > positionProviderPlugins() const
Returns all available PositionProviderPlugins.
Definition PluginManager.cpp:95
The abstract class that provides position information.
Definition PositionProviderPlugin.h:20
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.
Q_SCRIPTABLE CaptureState status()
char * toString(const EngineQuery &query)
QString path(const QString &relativePath)
QAction * zoomIn(const QObject *recvr, const char *slot, QObject *parent)
QAction * zoomOut(const QObject *recvr, const char *slot, QObject *parent)
Binds a QML item to a specific geodetic location in screen coordinates.
Definition AbstractDataPlugin.cpp:23
FlyToMode
Describes possible flight mode (interpolation between source and target camera positions)
Definition MarbleGlobal.h:161
void clicked(bool checked)
void currentIndexChanged(int index)
QDateTime currentDateTime()
QString getOpenFileName(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedFilter, Options options)
QString getSaveFileName(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedFilter, Options options)
QLocale system()
QString toString(QDate date, FormatType format) const const
StandardButton question(QWidget *parent, const QString &title, const QString &text, StandardButtons buttons, StandardButton defaultButton)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
bool disconnect(const QMetaObject::Connection &connection)
QObject * sender() const const
QString tr(const char *sourceText, const char *disambiguation, int n)
QString & append(QChar ch)
QString arg(Args &&... args) const const
bool endsWith(QChar c, Qt::CaseSensitivity cs) const const
bool isEmpty() const const
CaseInsensitive
Checked
typedef WindowFlags
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
void setupUi(QWidget *widget)
void update()
visible
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 12:02:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 12:02:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.