digiKam
|
Public Slots | |
void | slotClustersNeedUpdating () override |
void | slotThumbnailAvailableForIndex (const QVariant &index, const QPixmap &pixmap) override |
void | slotTrackManagerChanged () override |
void | slotUngroupedModelChanged (const int index) |
Signals | |
void | signalBackendReadyChanged (const QString &backendName) |
void | signalClustersClicked (const QIntList &clusterIndices) |
void | signalClustersMoved (const QIntList &clusterIndices, const QPair< int, QModelIndex > &snapTarget) |
void | signalMarkersMoved (const QIntList &markerIndices) |
void | signalSelectionHasBeenMade (const Digikam::GeoCoordinates::Pair &coordinates) |
void | signalZoomChanged (const QString &newZoom) |
Public Member Functions | |
void | addActionsToConfigurationMenu (QMenu *const configurationMenu) override |
QString | backendHumanName () const override |
BackendMarble (const QExplicitlySharedDataPointer< GeoIfaceSharedData > &sharedData, QObject *const parent=nullptr) | |
QString | backendName () const override |
void | centerOn (const Marble::GeoDataLatLonBox &box, const bool useSaneZoomLevel) override |
bool | geoCoordinates (const QPoint &point, GeoCoordinates *const coordinates) const override |
GeoCoordinates | getCenter () const override |
QString | getMapTheme () const |
int | getMarkerModelLevel () override |
GeoCoordinates::PairList | getNormalizedBounds () override |
QString | getProjection () const |
QString | getZoom () const override |
bool | isReady () const override |
QSize | mapSize () const override |
QWidget * | mapWidget () override |
void | mapWidgetDocked (const bool state) override |
void | marbleCustomPaint (Marble::GeoPainter *painter) |
void | mouseModeChanged () override |
void | readSettingsFromGroup (const KConfigGroup *const group) override |
void | regionSelectionChanged () override |
void | releaseWidget (GeoIfaceInternalWidgetInfo *const info) override |
void | saveSettingsToGroup (KConfigGroup *const group) override |
bool | screenCoordinates (const GeoCoordinates &coordinates, QPoint *const point) override |
void | setActive (const bool state) override |
void | setCenter (const GeoCoordinates &coordinate) override |
void | setMapTheme (const QString &newMapTheme) |
void | setProjection (const QString &newProjection) |
void | setShowCompass (const bool state) |
void | setShowNavigation (const bool state) |
void | setShowOverviewMap (const bool state) |
void | setShowScaleBar (const bool state) |
void | setZoom (const QString &newZoom) override |
void | updateActionAvailability () override |
void | updateClusters () override |
void | updateMarkers () override |
void | zoomIn () override |
void | zoomOut () override |
~BackendMarble () override | |
Public Attributes | |
const QExplicitlySharedDataPointer< GeoIfaceSharedData > | s |
Protected Slots | |
void | slotFloatSettingsTriggered (QAction *action) |
void | slotMapThemeActionTriggered (QAction *action) |
void | slotMarbleZoomChanged () |
void | slotProjectionActionTriggered (QAction *action) |
void | slotScheduleUpdate () |
void | slotTracksChanged (const QList< TrackManager::TrackChanges > &trackChanges) |
Protected Member Functions | |
void | applyCacheToWidget () |
void | createActions () |
void | drawSearchRectangle (Marble::GeoPainter *const painter, const GeoCoordinates::Pair &searchRectangle, const bool isOldRectangle) |
bool | eventFilter (QObject *object, QEvent *event) override |
bool | findSnapPoint (const QPoint &actualPoint, QPoint *const snapPoint, GeoCoordinates *const snapCoordinates, QPair< int, QModelIndex > *const snapTargetIndex) |
void | GeoPainter_drawPixmapAtCoordinates (Marble::GeoPainter *const painter, const QPixmap &pixmap, const GeoCoordinates &coordinates, const QPoint &basePoint) |
Replacement for Marble::GeoPainter::drawPixmap which takes a pixel offset. More... | |
Static Protected Member Functions | |
static void | deleteInfoFunction (GeoIfaceInternalWidgetInfo *const info) |
|
explicit |
References createActions().
|
override |
|
overridevirtual |
Implements Digikam::MapBackend.
References GEOIFACE_ASSERT, and updateActionAvailability().
|
protected |
References setMapTheme(), setProjection(), setShowCompass(), setShowNavigation(), setShowOverviewMap(), and setShowScaleBar().
Referenced by mapWidget().
|
overridevirtual |
Implements Digikam::MapBackend.
|
overridevirtual |
Implements Digikam::MapBackend.
Referenced by mapWidget(), releaseWidget(), and setActive().
|
overridevirtual |
Implements Digikam::MapBackend.
|
protected |
References slotFloatSettingsTriggered(), slotMapThemeActionTriggered(), and slotProjectionActionTriggered().
Referenced by BackendMarble().
|
staticprotected |
|
protected |
References Digikam::GeoCoordinates::lat(), and Digikam::GeoCoordinates::lon().
Referenced by marbleCustomPaint().
|
overrideprotected |
References Digikam::GeoIfaceCluster::coordinates, findSnapPoint(), Digikam::AbstractMarkerTiler::FlagMovable, geoCoordinates(), Digikam::GeoCoordinates::lat(), Digikam::GeoCoordinates::lon(), Digikam::MouseModePan, Digikam::MouseModeRegionSelection, Digikam::GeoIfaceCluster::pixmapOffset, Digikam::GeoIfaceCluster::pixmapSize, Digikam::MapBackend::s, screenCoordinates(), Digikam::MapBackend::signalClustersClicked(), Digikam::MapBackend::signalClustersMoved(), and Digikam::MapBackend::signalSelectionHasBeenMade().
|
protected |
|
overridevirtual |
Implements Digikam::MapBackend.
Referenced by eventFilter(), and GeoPainter_drawPixmapAtCoordinates().
|
protected |
Replacement for Marble::GeoPainter::drawPixmap which takes a pixel offset.
painter | Marble::GeoPainter on which to draw the pixmap |
pixmap | Pixmap to be drawn |
coordinates | GeoCoordinates where the image is to be drawn |
offsetPoint | Point in the pixmap which should be at coordinates |
References geoCoordinates(), screenCoordinates(), and Digikam::GeoCoordinates::toMarbleCoordinates().
Referenced by marbleCustomPaint().
|
overridevirtual |
Implements Digikam::MapBackend.
QString Digikam::BackendMarble::getMapTheme | ( | ) | const |
Referenced by updateActionAvailability().
|
overridevirtual |
Implements Digikam::MapBackend.
References GEOIFACE_ASSERT, and isReady().
|
overridevirtual |
Implements Digikam::MapBackend.
References Digikam::GeoIfaceHelperNormalizeBounds(), and Digikam::GeoCoordinates::makePair().
QString Digikam::BackendMarble::getProjection | ( | ) | const |
|
overridevirtual |
Implements Digikam::MapBackend.
Referenced by slotMarbleZoomChanged().
|
overridevirtual |
Implements Digikam::MapBackend.
Referenced by getMarkerModelLevel().
|
overridevirtual |
Implements Digikam::MapBackend.
|
overridevirtual |
Implements Digikam::MapBackend.
References applyCacheToWidget(), Digikam::GeoIfaceInternalWidgetInfo::backendData, backendName(), Digikam::GeoIfaceGlobalObject::getInternalWidgetFromPool(), Digikam::GeoIfaceGlobalObject::instance(), Digikam::MapBackend::signalBackendReadyChanged(), slotMarbleZoomChanged(), and Digikam::GeoIfaceInternalWidgetInfo::widget.
|
overridevirtual |
void Digikam::BackendMarble::marbleCustomPaint | ( | Marble::GeoPainter * | painter | ) |
@TODO looks a bit too thick IMHO when you zoom out. Maybe adjust to zoom level?
References Digikam::TrackManager::Track::color, Digikam::GeoIfaceCluster::coordinates, drawSearchRectangle(), Digikam::GeoModelHelper::FlagVisible, GeoPainter_drawPixmapAtCoordinates(), Digikam::GeoIfaceGlobalObject::getMarkerPixmap(), Digikam::GeoIfaceGlobalObject::getStandardMarkerPixmap(), Digikam::GeoIfaceCluster::groupState, Digikam::TrackManager::Track::id, Digikam::GeoIfaceGlobalObject::instance(), Digikam::GeoModelHelper::itemCoordinates(), Digikam::GeoModelHelper::itemIcon(), Digikam::GeoIfaceCluster::markerCount, Digikam::GeoIfaceCluster::markerSelectedCount, Digikam::GeoModelHelper::model(), Digikam::GeoModelHelper::modelFlags(), Digikam::TrackManager::Track::points, Digikam::MapBackend::s, screenCoordinates(), Digikam::SelectedAll, Digikam::SelectedNone, Digikam::SelectedSome, and Digikam::GeoCoordinates::toMarbleCoordinates().
|
overridevirtual |
Implements Digikam::MapBackend.
References Digikam::MouseModeRegionSelection, and Digikam::MapBackend::s.
|
overridevirtual |
Implements Digikam::MapBackend.
References GEOIFACE_ASSERT, setMapTheme(), setProjection(), setShowCompass(), setShowNavigation(), setShowOverviewMap(), and setShowScaleBar().
|
overridevirtual |
Implements Digikam::MapBackend.
|
overridevirtual |
Implements Digikam::MapBackend.
References Digikam::GeoIfaceInternalWidgetInfo::backendData, backendName(), Digikam::GeoIfaceInternalWidgetInfo::currentOwner, Digikam::GeoIfaceInternalWidgetInfo::InternalWidgetReleased, Digikam::MapBackend::signalBackendReadyChanged(), slotMarbleZoomChanged(), Digikam::GeoIfaceInternalWidgetInfo::state, and Digikam::GeoIfaceInternalWidgetInfo::widget.
|
overridevirtual |
Implements Digikam::MapBackend.
References GEOIFACE_ASSERT.
|
overridevirtual |
Implements Digikam::MapBackend.
References Digikam::GeoCoordinates::hasCoordinates(), Digikam::GeoCoordinates::lat(), and Digikam::GeoCoordinates::lon().
Referenced by eventFilter(), findSnapPoint(), GeoPainter_drawPixmapAtCoordinates(), and marbleCustomPaint().
|
overridevirtual |
Implements Digikam::MapBackend.
References Digikam::GeoIfaceGlobalObject::addMyInternalWidgetToPool(), Digikam::GeoIfaceInternalWidgetInfo::backendData, backendName(), Digikam::GeoIfaceInternalWidgetInfo::backendName, Digikam::GeoIfaceInternalWidgetInfo::currentOwner, Digikam::GeoIfaceInternalWidgetInfo::deleteFunction, deleteInfoFunction(), Digikam::GeoIfaceGlobalObject::instance(), Digikam::GeoIfaceInternalWidgetInfo::InternalWidgetStillDocked, Digikam::GeoIfaceInternalWidgetInfo::InternalWidgetUndocked, Digikam::GeoIfaceGlobalObject::removeMyInternalWidgetFromPool(), Digikam::GeoIfaceInternalWidgetInfo::state, and Digikam::GeoIfaceInternalWidgetInfo::widget.
|
overridevirtual |
Implements Digikam::MapBackend.
References Digikam::GeoCoordinates::lat(), and Digikam::GeoCoordinates::lon().
void Digikam::BackendMarble::setMapTheme | ( | const QString & | newMapTheme | ) |
References setShowCompass(), setShowNavigation(), setShowOverviewMap(), setShowScaleBar(), and updateActionAvailability().
Referenced by applyCacheToWidget(), readSettingsFromGroup(), and slotMapThemeActionTriggered().
void Digikam::BackendMarble::setProjection | ( | const QString & | newProjection | ) |
References updateActionAvailability().
Referenced by applyCacheToWidget(), readSettingsFromGroup(), and slotProjectionActionTriggered().
void Digikam::BackendMarble::setShowCompass | ( | const bool | state | ) |
References updateActionAvailability().
Referenced by applyCacheToWidget(), readSettingsFromGroup(), setMapTheme(), and slotFloatSettingsTriggered().
void Digikam::BackendMarble::setShowNavigation | ( | const bool | state | ) |
References updateActionAvailability().
Referenced by applyCacheToWidget(), readSettingsFromGroup(), setMapTheme(), and slotFloatSettingsTriggered().
void Digikam::BackendMarble::setShowOverviewMap | ( | const bool | state | ) |
References updateActionAvailability().
Referenced by applyCacheToWidget(), readSettingsFromGroup(), setMapTheme(), and slotFloatSettingsTriggered().
void Digikam::BackendMarble::setShowScaleBar | ( | const bool | state | ) |
References updateActionAvailability().
Referenced by applyCacheToWidget(), readSettingsFromGroup(), setMapTheme(), and slotFloatSettingsTriggered().
|
overridevirtual |
Implements Digikam::MapBackend.
References GEOIFACE_ASSERT, and Digikam::MapBackend::s.
|
signalinherited |
|
signalinherited |
Referenced by eventFilter(), and Digikam::MapWidget::setBackend().
|
signalinherited |
Referenced by eventFilter(), and Digikam::MapWidget::setBackend().
|
signalinherited |
|
signalinherited |
Referenced by eventFilter(), and Digikam::MapWidget::setBackend().
|
signalinherited |
Referenced by Digikam::MapWidget::setBackend(), and slotMarbleZoomChanged().
|
overrideslot |
|
protectedslot |
References setShowCompass(), setShowNavigation(), setShowOverviewMap(), and setShowScaleBar().
Referenced by createActions().
|
protectedslot |
References setMapTheme().
Referenced by createActions().
|
protectedslot |
References getZoom(), Digikam::MapBackend::s, Digikam::MapBackend::signalZoomChanged(), and updateActionAvailability().
Referenced by mapWidget(), and releaseWidget().
|
protectedslot |
References setProjection().
Referenced by createActions().
|
protectedslot |
@TODO Put this onto the eventloop to collect update calls into one.
Referenced by slotTrackManagerChanged(), and slotTracksChanged().
|
overrideslot |
References Digikam::MapBackend::s.
|
overrideslot |
References Digikam::MapBackend::s, slotScheduleUpdate(), and slotTracksChanged().
|
protectedslot |
References Digikam::TrackManager::ChangeRemoved, Digikam::TrackManager::ChangeTrackPoints, and slotScheduleUpdate().
Referenced by slotTrackManagerChanged().
|
slot |
|
overridevirtual |
Implements Digikam::MapBackend.
References getMapTheme(), and Digikam::MapBackend::s.
Referenced by addActionsToConfigurationMenu(), setMapTheme(), setProjection(), setShowCompass(), setShowNavigation(), setShowOverviewMap(), setShowScaleBar(), and slotMarbleZoomChanged().
|
overridevirtual |
Implements Digikam::MapBackend.
|
overridevirtual |
Implements Digikam::MapBackend.
|
overridevirtual |
Implements Digikam::MapBackend.
|
overridevirtual |
Implements Digikam::MapBackend.
|
inherited |
Referenced by eventFilter(), findSnapPoint(), Digikam::BackendGoogleMaps::mapWidget(), marbleCustomPaint(), Digikam::BackendGoogleMaps::mouseModeChanged(), mouseModeChanged(), Digikam::BackendGoogleMaps::regionSelectionChanged(), Digikam::BackendGoogleMaps::setZoom(), setZoom(), Digikam::BackendGoogleMaps::slotClustersNeedUpdating(), slotMarbleZoomChanged(), Digikam::BackendGoogleMaps::slotThumbnailAvailableForIndex(), slotThumbnailAvailableForIndex(), slotTrackManagerChanged(), Digikam::BackendGoogleMaps::slotUngroupedModelChanged(), Digikam::BackendGoogleMaps::updateActionAvailability(), updateActionAvailability(), Digikam::BackendGoogleMaps::updateClusters(), and Digikam::BackendGoogleMaps::updateMarkers().