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

Public Types

enum  TilerFlag { FlagNull = 0 , FlagMovable = 1 }
 

Signals

void signalThumbnailAvailableForIndex (const QVariant &index, const QPixmap &pixmap)
 
void signalTilesOrSelectionChanged ()
 

Public Member Functions

void addMarkerIndexToGrid (const QPersistentModelIndex &markerIndex)
 
QVariant bestRepresentativeIndexFromList (const QList< QVariant > &indices, const int sortKey) override
 
GeoGroupState getGlobalGroupState () override
 
TilegetTile (const TileIndex &tileIndex, const bool stopIfEmpty) override
 
GeoGroupState getTileGroupState (const TileIndex &tileIndex) override
 
int getTileMarkerCount (const TileIndex &tileIndex) override
 
QVariant getTileRepresentativeMarker (const TileIndex &tileIndex, const int sortKey) override
 these should be implemented for thumbnail handling More...
 
int getTileSelectedCount (const TileIndex &tileIndex) override
 
bool indicesEqual (const QIntList &a, const QIntList &b, const int upToLevel) const
 
bool indicesEqual (const QVariant &a, const QVariant &b) const override
 
bool isDirty () const
 
 ItemMarkerTiler (GeoModelHelper *const modelHelper, QObject *const parent=nullptr)
 
void onIndicesClicked (const ClickInfo &clickInfo) override
 these can be implemented if you want to react to actions in geolocation interface More...
 
void onIndicesMoved (const TileIndex::List &tileIndicesList, const GeoCoordinates &targetCoordinates, const QPersistentModelIndex &targetSnapIndex) override
 
QPixmap pixmapFromRepresentativeIndex (const QVariant &index, const QSize &size) override
 
void prepareTiles (const GeoCoordinates &upperLeft, const GeoCoordinates &lowerRight, int level) override
 
void regenerateTiles () override
 
void removeMarkerIndexFromGrid (const QModelIndex &markerIndex, const bool ignoreSelection=false)
 Remove a marker from the grid. More...
 
void resetRootTile ()
 
TilerootTile ()
 
void setActive (const bool state) override
 
void setDirty (const bool state=true)
 
void setMarkerGeoModelHelper (GeoModelHelper *const modelHelper)
 
TiletileNew () override
 
TilerFlags tilerFlags () const override
 these have to be implemented More...
 
 ~ItemMarkerTiler () override
 

Member Enumeration Documentation

◆ TilerFlag

Enumerator
FlagNull 
FlagMovable 

Constructor & Destructor Documentation

◆ ItemMarkerTiler()

Digikam::ItemMarkerTiler::ItemMarkerTiler ( GeoModelHelper *const  modelHelper,
QObject *const  parent = nullptr 
)
explicit

◆ ~ItemMarkerTiler()

Digikam::ItemMarkerTiler::~ItemMarkerTiler ( )
override

Member Function Documentation

◆ addMarkerIndexToGrid()

◆ bestRepresentativeIndexFromList()

QVariant Digikam::ItemMarkerTiler::bestRepresentativeIndexFromList ( const QList< QVariant > &  indices,
const int  sortKey 
)
overridevirtual

◆ getGlobalGroupState()

GeoGroupState Digikam::ItemMarkerTiler::getGlobalGroupState ( )
overridevirtual

◆ getTile()

◆ getTileGroupState()

◆ getTileMarkerCount()

int Digikam::ItemMarkerTiler::getTileMarkerCount ( const TileIndex tileIndex)
overridevirtual

◆ getTileRepresentativeMarker()

QVariant Digikam::ItemMarkerTiler::getTileRepresentativeMarker ( const TileIndex tileIndex,
const int  sortKey 
)
overridevirtual

these should be implemented for thumbnail handling

Implements Digikam::AbstractMarkerTiler.

◆ getTileSelectedCount()

int Digikam::ItemMarkerTiler::getTileSelectedCount ( const TileIndex tileIndex)
overridevirtual

◆ indicesEqual() [1/2]

bool Digikam::AbstractMarkerTiler::indicesEqual ( const QIntList a,
const QIntList b,
const int  upToLevel 
) const
inherited

◆ indicesEqual() [2/2]

bool Digikam::ItemMarkerTiler::indicesEqual ( const QVariant &  a,
const QVariant &  b 
) const
overridevirtual

◆ isDirty()

◆ onIndicesClicked()

◆ onIndicesMoved()

void Digikam::ItemMarkerTiler::onIndicesMoved ( const TileIndex::List tileIndicesList,
const GeoCoordinates targetCoordinates,
const QPersistentModelIndex &  targetSnapIndex 
)
overridevirtual

Reimplemented from Digikam::AbstractMarkerTiler.

◆ pixmapFromRepresentativeIndex()

QPixmap Digikam::ItemMarkerTiler::pixmapFromRepresentativeIndex ( const QVariant &  index,
const QSize &  size 
)
overridevirtual

◆ prepareTiles()

void Digikam::ItemMarkerTiler::prepareTiles ( const GeoCoordinates upperLeft,
const GeoCoordinates lowerRight,
int  level 
)
overridevirtual

◆ regenerateTiles()

◆ removeMarkerIndexFromGrid()

void Digikam::ItemMarkerTiler::removeMarkerIndexFromGrid ( const QModelIndex &  markerIndex,
const bool  ignoreSelection = false 
)

Remove a marker from the grid.

Parameters
ignoreSelectionDo not remove the marker from the count of selected items. This is only used by slotSourceModelRowsAboutToBeRemoved internally, because the selection model sends us an extra signal about the deselection.

References Digikam::TileIndex::fromCoordinates(), GEOIFACE_ASSERT, getTile(), Digikam::AbstractMarkerTiler::isDirty(), Digikam::TileIndex::MaxLevel, and Digikam::TileIndex::mid().

◆ resetRootTile()

void Digikam::AbstractMarkerTiler::resetRootTile ( )
inherited

◆ rootTile()

◆ setActive()

void Digikam::ItemMarkerTiler::setActive ( const bool  state)
overridevirtual

◆ setDirty()

void Digikam::AbstractMarkerTiler::setDirty ( const bool  state = true)
inherited

◆ setMarkerGeoModelHelper()

◆ signalThumbnailAvailableForIndex

void Digikam::AbstractMarkerTiler::signalThumbnailAvailableForIndex ( const QVariant &  index,
const QPixmap &  pixmap 
)
signalinherited

◆ signalTilesOrSelectionChanged

◆ tileNew()

AbstractMarkerTiler::Tile * Digikam::ItemMarkerTiler::tileNew ( )
overridevirtual

◆ tilerFlags()

AbstractMarkerTiler::TilerFlags Digikam::ItemMarkerTiler::tilerFlags ( ) const
overridevirtual

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