digiKam
|
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 |
Tile * | getTile (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 () |
Tile * | rootTile () |
void | setActive (const bool state) override |
void | setDirty (const bool state=true) |
void | setMarkerGeoModelHelper (GeoModelHelper *const modelHelper) |
Tile * | tileNew () override |
TilerFlags | tilerFlags () const override |
these have to be implemented More... | |
~ItemMarkerTiler () override | |
|
inherited |
|
explicit |
References Digikam::AbstractMarkerTiler::resetRootTile(), and setMarkerGeoModelHelper().
|
override |
void Digikam::ItemMarkerTiler::addMarkerIndexToGrid | ( | const QPersistentModelIndex & | markerIndex | ) |
References Digikam::TileIndex::fromCoordinates(), GEOIFACE_ASSERT, Digikam::AbstractMarkerTiler::isDirty(), Digikam::TileIndex::level(), Digikam::TileIndex::linearIndex(), Digikam::TileIndex::MaxLevel, regenerateTiles(), Digikam::AbstractMarkerTiler::rootTile(), and tileNew().
Referenced by regenerateTiles().
|
overridevirtual |
Implements Digikam::AbstractMarkerTiler.
|
overridevirtual |
Implements Digikam::AbstractMarkerTiler.
References Digikam::SelectedMask, and Digikam::SelectedNone.
|
overridevirtual |
Implements Digikam::AbstractMarkerTiler.
References Digikam::TileIndex::fromCoordinates(), GEOIFACE_ASSERT, Digikam::TileIndex::indexCount(), Digikam::AbstractMarkerTiler::isDirty(), Digikam::TileIndex::level(), Digikam::TileIndex::linearIndex(), Digikam::TileIndex::MaxLevel, regenerateTiles(), Digikam::AbstractMarkerTiler::rootTile(), tileNew(), and Digikam::TileIndex::toIntList().
Referenced by getTileGroupState(), getTileMarkerCount(), getTileSelectedCount(), and removeMarkerIndexFromGrid().
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
these should be implemented for thumbnail handling
Implements Digikam::AbstractMarkerTiler.
|
overridevirtual |
|
inherited |
|
overridevirtual |
Implements Digikam::AbstractMarkerTiler.
|
inherited |
|
overridevirtual |
these can be implemented if you want to react to actions in geolocation interface
Reimplemented from Digikam::AbstractMarkerTiler.
References Digikam::AbstractMarkerTiler::ClickInfo::currentMouseMode, Digikam::AbstractMarkerTiler::ClickInfo::groupSelectionState, Digikam::MouseModeFilter, Digikam::MouseModeSelectThumbnail, Digikam::AbstractMarkerTiler::ClickInfo::representativeIndex, Digikam::SelectedAll, Digikam::SelectedMask, and Digikam::AbstractMarkerTiler::ClickInfo::tileIndicesList.
|
overridevirtual |
Reimplemented from Digikam::AbstractMarkerTiler.
|
overridevirtual |
Implements Digikam::AbstractMarkerTiler.
|
overridevirtual |
Implements Digikam::AbstractMarkerTiler.
|
overridevirtual |
Implements Digikam::AbstractMarkerTiler.
References addMarkerIndexToGrid(), Digikam::AbstractMarkerTiler::resetRootTile(), and Digikam::AbstractMarkerTiler::setDirty().
Referenced by addMarkerIndexToGrid(), getTile(), getTileGroupState(), getTileMarkerCount(), and getTileSelectedCount().
void Digikam::ItemMarkerTiler::removeMarkerIndexFromGrid | ( | const QModelIndex & | markerIndex, |
const bool | ignoreSelection = false |
||
) |
Remove a marker from the grid.
ignoreSelection | Do 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().
|
inherited |
References Digikam::AbstractMarkerTiler::tileNew().
Referenced by Digikam::GPSMarkerTiler::GPSMarkerTiler(), ItemMarkerTiler(), and regenerateTiles().
|
inherited |
References Digikam::AbstractMarkerTiler::isDirty(), and Digikam::AbstractMarkerTiler::regenerateTiles().
Referenced by addMarkerIndexToGrid(), getTile(), and Digikam::GPSMarkerTiler::getTile().
|
overridevirtual |
Implements Digikam::AbstractMarkerTiler.
|
inherited |
References Digikam::AbstractMarkerTiler::signalTilesOrSelectionChanged().
Referenced by regenerateTiles(), and setMarkerGeoModelHelper().
void Digikam::ItemMarkerTiler::setMarkerGeoModelHelper | ( | GeoModelHelper *const | modelHelper | ) |
|
signalinherited |
|
signalinherited |
|
overridevirtual |
Implements Digikam::AbstractMarkerTiler.
Referenced by addMarkerIndexToGrid(), and getTile().
|
overridevirtual |
these have to be implemented
Reimplemented from Digikam::AbstractMarkerTiler.
References Digikam::GeoModelHelper::FlagMovable, Digikam::AbstractMarkerTiler::FlagMovable, and Digikam::AbstractMarkerTiler::FlagNull.