26 #ifndef DIGIKAM_GEO_IFACE_COMMON_H
27 #define DIGIKAM_GEO_IFACE_COMMON_H
34 #include <QSharedData>
49 class AbstractMarkerTiler;
68 InternalWidgetReleased = 1,
69 InternalWidgetUndocked = 2,
70 InternalWidgetStillDocked = 4
74 Q_DECLARE_FLAGS(InternalWidgetStates, InternalWidgetState)
81 currentOwner (
nullptr),
82 deleteFunction(
nullptr)
96 Q_DECLARE_OPERATORS_FOR_FLAGS(GeoIfaceInternalWidgetInfo::InternalWidgetStates)
114 QPixmap getMarkerPixmap(
const QString& pixmapId);
115 QPixmap getStandardMarkerPixmap();
116 QUrl locateDataFile(
const QString& filename);
121 void removeMyInternalWidgetFromPool(
const MapBackend*
const mapBackend);
125 void clearWidgetPool();
142 friend class GeoIfaceGlobalObjectCreator;
164 : pixmapType (PixmapMarker),
167 markerSelectedCount (0),
171 representativeMarkers (),
218 worldMapWidget (nullptr),
219 tileGrouper (nullptr),
220 markerModel (nullptr),
222 trackManager (nullptr),
223 showThumbnails (true),
227 previewSingleItems (true),
228 previewGroupedItems (true),
229 showNumbersOnItems (true),
231 modificationsAllowed (true),
232 selectionRectangle (),
233 haveMovingCluster (false),
235 availableMouseModes (),
236 visibleMouseModes (),
244 return selectionRectangle.first.hasCoordinates();
291 QPoint*
const point);
294 QPair<GeoCoordinates, GeoCoordinates>*
const boundsCoordinates);
299 const char*
const filename,
300 const int lineNumber);
304 #define GEOIFACE_ASSERT(cond) ((!(cond)) ? Digikam::GeoIface_assert(#cond,__FILE__,__LINE__) : qt_noop())
Definition: abstractmarkertiler.h:45
Definition: geocoordinates.h:49
QPair< GeoCoordinates, GeoCoordinates > Pair
Definition: geocoordinates.h:64
Definition: geoifacecommon.h:148
PixmapType
Definition: geoifacecommon.h:153
@ PixmapMarker
Definition: geoifacecommon.h:154
@ PixmapCircle
Definition: geoifacecommon.h:155
QList< TileIndex > tileIndicesList
Definition: geoifacecommon.h:177
int markerCount
Definition: geoifacecommon.h:178
QSize pixmapSize
Definition: geoifacecommon.h:185
GeoIfaceCluster()
Definition: geoifacecommon.h:163
QPoint pixelPos
Definition: geoifacecommon.h:181
QMap< int, QVariant > representativeMarkers
Definition: geoifacecommon.h:183
GeoCoordinates coordinates
Definition: geoifacecommon.h:180
QPoint pixmapOffset
anchor point of the image, measured from bottom-left
Definition: geoifacecommon.h:188
int markerSelectedCount
Definition: geoifacecommon.h:179
GeoGroupState groupState
Definition: geoifacecommon.h:182
QList< GeoIfaceCluster > List
Definition: geoifacecommon.h:159
Global object for geolocation interface to hold items common to all geolocation interface Widget inst...
Definition: geoifacecommon.h:105
Definition: geoifacecommon.h:213
MapWidget * worldMapWidget
Definition: geoifacecommon.h:251
GeoIfaceSharedData()
Definition: geoifacecommon.h:216
GeoCoordinates::Pair selectionRectangle
Definition: geoifacecommon.h:274
AbstractMarkerTiler * markerModel
Definition: geoifacecommon.h:253
int thumbnailSize
Definition: geoifacecommon.h:262
bool hasRegionSelection() const
Definition: geoifacecommon.h:242
GeoIfaceCluster::List clusterList
Definition: geoifacecommon.h:254
bool previewGroupedItems
Definition: geoifacecommon.h:266
bool showThumbnails
Definition: geoifacecommon.h:261
GeoMouseModes currentMouseMode
Definition: geoifacecommon.h:276
TrackManager * trackManager
Definition: geoifacecommon.h:256
GeoMouseModes availableMouseModes
Definition: geoifacecommon.h:277
bool activeState
Definition: geoifacecommon.h:279
int sortKey
Definition: geoifacecommon.h:268
GeoMouseModes visibleMouseModes
Definition: geoifacecommon.h:278
QList< GeoModelHelper * > ungroupedModels
Definition: geoifacecommon.h:255
TileGrouper * tileGrouper
Definition: geoifacecommon.h:252
bool showNumbersOnItems
Definition: geoifacecommon.h:267
int markerGroupingRadius
Definition: geoifacecommon.h:264
int thumbnailGroupingRadius
Definition: geoifacecommon.h:263
bool modificationsAllowed
Definition: geoifacecommon.h:269
bool haveMovingCluster
Definition: geoifacecommon.h:275
bool previewSingleItems
Definition: geoifacecommon.h:265
Definition: mapbackend.h:52
Definition: tilegrouper.h:38
Definition: trackmanager.h:46
Definition: datefolderview.cpp:43
const int GeoIfaceMinMarkerGroupingRadius
Definition: geoifacecommon.h:194
const int GeoIfaceMinThumbnailSize
Definition: geoifacecommon.h:196
bool GeoIfaceHelperParseXYStringToPoint(const QString &xyString, QPoint *const point)
Parse a '(X.xxx,Y.yyy)' string as returned by the JavaScript parts.
Definition: geoifacecommon.cpp:177
void GeoIface_assert(const char *const condition, const char *const filename, const int lineNumber)
Definition: geoifacecommon.cpp:425
int QPointSquareDistance(const QPoint &a, const QPoint &b)
Helper function, returns the square of the distance between two points.
Definition: geoifacecommon.cpp:437
@ SelectedNone
Definition: geogroupstate.h:55
GeoCoordinates::PairList GeoIfaceHelperNormalizeBounds(const GeoCoordinates::Pair &boundsPair)
Split bounds crossing the dateline into parts which do not cross the dateline.
Definition: geoifacecommon.cpp:283
bool GeoIfaceHelperParseBoundsString(const QString &boundsString, QPair< GeoCoordinates, GeoCoordinates > *const boundsCoordinates)
Parses a '((lat1, lon1), (lat2, lon2))' bounds string as returned by the JavaScript parts.
Definition: geoifacecommon.cpp:225
const int GeoIfaceMinThumbnailGroupingRadius
Definition: geoifacecommon.h:195
bool GeoIfaceHelperParseLatLonString(const QString &latLonString, GeoCoordinates *const coordinates)
Parse a 'lat,lon' string a returned by the JavaScript parts.
Definition: geoifacecommon.cpp:143