digiKam
Digikam::BackendMarble Class Reference
+ Inheritance diagram for Digikam::BackendMarble:

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< GeoIfaceSharedDatas
 

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)
 

Constructor & Destructor Documentation

◆ BackendMarble()

Digikam::BackendMarble::BackendMarble ( const QExplicitlySharedDataPointer< GeoIfaceSharedData > &  sharedData,
QObject *const  parent = nullptr 
)
explicit

References createActions().

◆ ~BackendMarble()

Digikam::BackendMarble::~BackendMarble ( )
override

Member Function Documentation

◆ addActionsToConfigurationMenu()

void Digikam::BackendMarble::addActionsToConfigurationMenu ( QMenu *const  configurationMenu)
overridevirtual

◆ applyCacheToWidget()

void Digikam::BackendMarble::applyCacheToWidget ( )
protected

◆ backendHumanName()

QString Digikam::BackendMarble::backendHumanName ( ) const
overridevirtual

Implements Digikam::MapBackend.

◆ backendName()

QString Digikam::BackendMarble::backendName ( ) const
overridevirtual

Implements Digikam::MapBackend.

Referenced by mapWidget(), releaseWidget(), and setActive().

◆ centerOn()

void Digikam::BackendMarble::centerOn ( const Marble::GeoDataLatLonBox &  box,
const bool  useSaneZoomLevel 
)
overridevirtual

Implements Digikam::MapBackend.

◆ createActions()

void Digikam::BackendMarble::createActions ( )
protected

◆ deleteInfoFunction()

void Digikam::BackendMarble::deleteInfoFunction ( GeoIfaceInternalWidgetInfo *const  info)
staticprotected

◆ drawSearchRectangle()

void Digikam::BackendMarble::drawSearchRectangle ( Marble::GeoPainter *const  painter,
const GeoCoordinates::Pair searchRectangle,
const bool  isOldRectangle 
)
protected

◆ eventFilter()

◆ findSnapPoint()

bool Digikam::BackendMarble::findSnapPoint ( const QPoint &  actualPoint,
QPoint *const  snapPoint,
GeoCoordinates *const  snapCoordinates,
QPair< int, QModelIndex > *const  snapTargetIndex 
)
protected

◆ geoCoordinates()

bool Digikam::BackendMarble::geoCoordinates ( const QPoint &  point,
GeoCoordinates *const  coordinates 
) const
overridevirtual

◆ GeoPainter_drawPixmapAtCoordinates()

void Digikam::BackendMarble::GeoPainter_drawPixmapAtCoordinates ( Marble::GeoPainter *const  painter,
const QPixmap &  pixmap,
const GeoCoordinates coordinates,
const QPoint &  offsetPoint 
)
protected

Replacement for Marble::GeoPainter::drawPixmap which takes a pixel offset.

Parameters
painterMarble::GeoPainter on which to draw the pixmap
pixmapPixmap to be drawn
coordinatesGeoCoordinates where the image is to be drawn
offsetPointPoint in the pixmap which should be at coordinates

References geoCoordinates(), screenCoordinates(), and Digikam::GeoCoordinates::toMarbleCoordinates().

Referenced by marbleCustomPaint().

◆ getCenter()

GeoCoordinates Digikam::BackendMarble::getCenter ( ) const
overridevirtual

Implements Digikam::MapBackend.

◆ getMapTheme()

QString Digikam::BackendMarble::getMapTheme ( ) const

◆ getMarkerModelLevel()

int Digikam::BackendMarble::getMarkerModelLevel ( )
overridevirtual

Implements Digikam::MapBackend.

References GEOIFACE_ASSERT, and isReady().

◆ getNormalizedBounds()

GeoCoordinates::PairList Digikam::BackendMarble::getNormalizedBounds ( )
overridevirtual

◆ getProjection()

QString Digikam::BackendMarble::getProjection ( ) const

◆ getZoom()

QString Digikam::BackendMarble::getZoom ( ) const
overridevirtual

Implements Digikam::MapBackend.

Referenced by slotMarbleZoomChanged().

◆ isReady()

bool Digikam::BackendMarble::isReady ( ) const
overridevirtual

Implements Digikam::MapBackend.

Referenced by getMarkerModelLevel().

◆ mapSize()

QSize Digikam::BackendMarble::mapSize ( ) const
overridevirtual

Implements Digikam::MapBackend.

◆ mapWidget()

◆ mapWidgetDocked()

◆ marbleCustomPaint()

◆ mouseModeChanged()

void Digikam::BackendMarble::mouseModeChanged ( )
overridevirtual

◆ readSettingsFromGroup()

void Digikam::BackendMarble::readSettingsFromGroup ( const KConfigGroup *const  group)
overridevirtual

◆ regionSelectionChanged()

void Digikam::BackendMarble::regionSelectionChanged ( )
overridevirtual

Implements Digikam::MapBackend.

◆ releaseWidget()

◆ saveSettingsToGroup()

void Digikam::BackendMarble::saveSettingsToGroup ( KConfigGroup *const  group)
overridevirtual

Implements Digikam::MapBackend.

References GEOIFACE_ASSERT.

◆ screenCoordinates()

bool Digikam::BackendMarble::screenCoordinates ( const GeoCoordinates coordinates,
QPoint *const  point 
)
overridevirtual

◆ setActive()

◆ setCenter()

void Digikam::BackendMarble::setCenter ( const GeoCoordinates coordinate)
overridevirtual

◆ setMapTheme()

void Digikam::BackendMarble::setMapTheme ( const QString &  newMapTheme)

◆ setProjection()

void Digikam::BackendMarble::setProjection ( const QString &  newProjection)

◆ setShowCompass()

void Digikam::BackendMarble::setShowCompass ( const bool  state)

◆ setShowNavigation()

void Digikam::BackendMarble::setShowNavigation ( const bool  state)

◆ setShowOverviewMap()

void Digikam::BackendMarble::setShowOverviewMap ( const bool  state)

◆ setShowScaleBar()

void Digikam::BackendMarble::setShowScaleBar ( const bool  state)

◆ setZoom()

void Digikam::BackendMarble::setZoom ( const QString &  newZoom)
overridevirtual

◆ signalBackendReadyChanged

void Digikam::MapBackend::signalBackendReadyChanged ( const QString &  backendName)
signalinherited

◆ signalClustersClicked

void Digikam::MapBackend::signalClustersClicked ( const QIntList clusterIndices)
signalinherited

◆ signalClustersMoved

void Digikam::MapBackend::signalClustersMoved ( const QIntList clusterIndices,
const QPair< int, QModelIndex > &  snapTarget 
)
signalinherited

◆ signalMarkersMoved

void Digikam::MapBackend::signalMarkersMoved ( const QIntList markerIndices)
signalinherited

◆ signalSelectionHasBeenMade

void Digikam::MapBackend::signalSelectionHasBeenMade ( const Digikam::GeoCoordinates::Pair coordinates)
signalinherited

◆ signalZoomChanged

void Digikam::MapBackend::signalZoomChanged ( const QString &  newZoom)
signalinherited

◆ slotClustersNeedUpdating

void Digikam::BackendMarble::slotClustersNeedUpdating ( )
overrideslot

◆ slotFloatSettingsTriggered

void Digikam::BackendMarble::slotFloatSettingsTriggered ( QAction *  action)
protectedslot

◆ slotMapThemeActionTriggered

void Digikam::BackendMarble::slotMapThemeActionTriggered ( QAction *  action)
protectedslot

References setMapTheme().

Referenced by createActions().

◆ slotMarbleZoomChanged

void Digikam::BackendMarble::slotMarbleZoomChanged ( )
protectedslot

◆ slotProjectionActionTriggered

void Digikam::BackendMarble::slotProjectionActionTriggered ( QAction *  action)
protectedslot

References setProjection().

Referenced by createActions().

◆ slotScheduleUpdate

void Digikam::BackendMarble::slotScheduleUpdate ( )
protectedslot

@TODO Put this onto the eventloop to collect update calls into one.

Referenced by slotTrackManagerChanged(), and slotTracksChanged().

◆ slotThumbnailAvailableForIndex

void Digikam::BackendMarble::slotThumbnailAvailableForIndex ( const QVariant &  index,
const QPixmap &  pixmap 
)
overrideslot

◆ slotTrackManagerChanged

void Digikam::BackendMarble::slotTrackManagerChanged ( )
overrideslot

◆ slotTracksChanged

void Digikam::BackendMarble::slotTracksChanged ( const QList< TrackManager::TrackChanges > &  trackChanges)
protectedslot

◆ slotUngroupedModelChanged

void Digikam::BackendMarble::slotUngroupedModelChanged ( const int  index)
slot

◆ updateActionAvailability()

void Digikam::BackendMarble::updateActionAvailability ( )
overridevirtual

◆ updateClusters()

void Digikam::BackendMarble::updateClusters ( )
overridevirtual

Implements Digikam::MapBackend.

◆ updateMarkers()

void Digikam::BackendMarble::updateMarkers ( )
overridevirtual

Implements Digikam::MapBackend.

◆ zoomIn()

void Digikam::BackendMarble::zoomIn ( )
overridevirtual

Implements Digikam::MapBackend.

◆ zoomOut()

void Digikam::BackendMarble::zoomOut ( )
overridevirtual

Implements Digikam::MapBackend.

Member Data Documentation

◆ s


The documentation for this class was generated from the following files: