25 #ifndef DIGIKAM_ABSTRACT_MARKER_TILER_H
26 #define DIGIKAM_ABSTRACT_MARKER_TILER_H
56 Q_DECLARE_FLAGS(TilerFlags, TilerFlag)
81 Tile* getChild(
const int linearIndex);
83 Tile* addChild(
const int linearIndex,
Tile* tilePointer);
88 void deleteChild(
Tile*
const childTile,
const int knownLinearIndex = -1);
90 bool childrenEmpty()
const;
95 int nextNonEmptyIndex(
int linearIndex)
const;
101 Tile& operator=(
const Tile&) =
delete;
105 static int maxChildCount();
107 void prepareForChildren();
111 QVector<Tile*> children;
112 QVector<int> nonEmptyIndices;
133 bool initializeNextBounds();
153 virtual TilerFlags tilerFlags()
const;
165 virtual bool indicesEqual(
const QVariant& a,
const QVariant& b)
const = 0;
170 virtual void onIndicesClicked(
const ClickInfo& clickInfo);
172 const QPersistentModelIndex& targetSnapIndex);
177 bool isDirty()
const;
178 void setDirty(
const bool state =
true);
179 void resetRootTile();
194 Q_DECLARE_OPERATORS_FOR_FLAGS(Digikam::AbstractMarkerTiler::TilerFlags)
Definition: abstractmarkertiler.h:61
TileIndex::List tileIndicesList
Definition: abstractmarkertiler.h:64
GeoGroupState groupSelectionState
Definition: abstractmarkertiler.h:66
GeoMouseModes currentMouseMode
Definition: abstractmarkertiler.h:67
QVariant representativeIndex
Definition: abstractmarkertiler.h:65
Definition: abstractmarkertiler.h:118
Definition: abstractmarkertiler.h:73
Definition: abstractmarkertiler.h:45
virtual int getTileMarkerCount(const TileIndex &tileIndex)=0
virtual void setActive(const bool state)=0
void signalThumbnailAvailableForIndex(const QVariant &index, const QPixmap &pixmap)
virtual QVariant bestRepresentativeIndexFromList(const QList< QVariant > &indices, const int sortKey)=0
void signalTilesOrSelectionChanged()
virtual bool indicesEqual(const QVariant &a, const QVariant &b) const =0
TilerFlag
Definition: abstractmarkertiler.h:51
bool indicesEqual(const QIntList &a, const QIntList &b, const int upToLevel) const
virtual GeoGroupState getTileGroupState(const TileIndex &tileIndex)=0
virtual QVariant getTileRepresentativeMarker(const TileIndex &tileIndex, const int sortKey)=0
these should be implemented for thumbnail handling
virtual int getTileSelectedCount(const TileIndex &tileIndex)=0
virtual void prepareTiles(const GeoCoordinates &upperLeft, const GeoCoordinates &lowerRight, int level)=0
virtual QPixmap pixmapFromRepresentativeIndex(const QVariant &index, const QSize &size)=0
virtual Tile * getTile(const TileIndex &tileIndex, const bool stopIfEmpty)=0
virtual void regenerateTiles()=0
virtual GeoGroupState getGlobalGroupState()=0
virtual Tile * tileNew()=0
Definition: geocoordinates.h:49
Definition: tileindex.h:45
Definition: datefolderview.cpp:43