digiKam
|
Public Types | |
enum | PropertyFlag { FlagNull = 0 , FlagVisible = 1 , FlagMovable = 2 , FlagSnaps = 4 } |
Signals | |
void | signalModelChangedDrastically () |
void | signalThumbnailAvailableForIndex (const QPersistentModelIndex &index, const QPixmap &pixmap) |
void | signalUndoCommand (GPSUndoCommand *undoCommand) |
void | signalVisibilityChanged () |
Public Member Functions | |
virtual QPersistentModelIndex | bestRepresentativeIndexFromList (const QList< QPersistentModelIndex > &list, const int sortKey) |
bool | itemCoordinates (const QModelIndex &index, GeoCoordinates *const coordinates) const override |
PropertyFlags | itemFlags (const QModelIndex &index) const override |
bool | itemIcon (const QModelIndex &index, QPoint *const offset, QSize *const size, QPixmap *const pixmap, QUrl *const url) const override |
these are necessary for ungrouped models More... | |
QAbstractItemModel * | model () const override |
these are necessary for grouped and ungrouped models More... | |
PropertyFlags | modelFlags () const override |
virtual void | onIndicesClicked (const QList< QPersistentModelIndex > &clickedIndices) |
virtual void | onIndicesMoved (const QList< QPersistentModelIndex > &movedIndices, const GeoCoordinates &targetCoordinates, const QPersistentModelIndex &targetSnapIndex) |
virtual QPixmap | pixmapFromRepresentativeIndex (const QPersistentModelIndex &index, const QSize &size) |
these are used by MarkerModel for grouped models More... | |
SearchResultModelHelper (SearchResultModel *const resultModel, QItemSelectionModel *const selectionModel, GPSItemModel *const imageModel, QObject *const parent=nullptr) | |
QItemSelectionModel * | selectionModel () const override |
void | setVisibility (const bool state) |
void | snapItemsTo (const QModelIndex &targetIndex, const QList< QModelIndex > &snappedIndices) override |
void | snapItemsTo (const QModelIndex &targetIndex, const QList< QPersistentModelIndex > &snappedIndices) |
~SearchResultModelHelper () override | |
|
inherited |
|
explicit |
References selectionModel().
|
override |
|
virtualinherited |
Reimplemented in Digikam::GPSGeoIfaceModelHelper, Digikam::ItemGPSModelHelper, and Digikam::MapViewModelHelper.
|
overridevirtual |
|
overridevirtual |
Reimplemented from Digikam::GeoModelHelper.
References Digikam::GeoModelHelper::FlagSnaps, and Digikam::GeoModelHelper::FlagVisible.
|
overridevirtual |
these are necessary for ungrouped models
Returns the icon for an ungrouped marker.
The icon can either be returned as a URL to an image, or as a QPixmap. If the caller can handle URLs (for example, to display them in HTML), he can provide the URL parameter. However, the GeoModelHelper may still choose to return a QPixmap instead, if no URL is available.
index | Modelindex of the marker. |
offset | Offset of the zero point in the icon, given from the top-left. |
size | the size of the icon, only populated if a URL is returned. |
pixmap | Holder for the pixmap of the icon. |
url | URL of the icon if available. |
Reimplemented from Digikam::GeoModelHelper.
|
overridevirtual |
these are necessary for grouped and ungrouped models
Implements Digikam::GeoModelHelper.
|
overridevirtual |
Reimplemented from Digikam::GeoModelHelper.
References Digikam::GeoModelHelper::FlagNull, Digikam::GeoModelHelper::FlagSnaps, and Digikam::GeoModelHelper::FlagVisible.
|
virtualinherited |
Reimplemented in Digikam::MapViewModelHelper.
|
virtualinherited |
Reimplemented in Digikam::GPSGeoIfaceModelHelper.
|
virtualinherited |
these are used by MarkerModel for grouped models
Reimplemented in Digikam::GPSGeoIfaceModelHelper, Digikam::ItemGPSModelHelper, and Digikam::MapViewModelHelper.
|
overridevirtual |
Implements Digikam::GeoModelHelper.
Referenced by SearchResultModelHelper().
void DigikamGenericGeolocationEditPlugin::SearchResultModelHelper::setVisibility | ( | const bool | state | ) |
|
signalinherited |
|
signalinherited |
Referenced by Digikam::ItemMarkerTiler::setMarkerGeoModelHelper().
|
signal |
Referenced by snapItemsTo().
|
signalinherited |
Referenced by setVisibility(), and Digikam::GPSBookmarkModelHelper::setVisible().
|
overridevirtual |
Reimplemented from Digikam::GeoModelHelper.
References Digikam::GPSUndoCommand::addUndoInfo(), DigikamGenericGeolocationEditPlugin::SearchBackend::SearchResult::coordinates, DigikamGenericGeolocationEditPlugin::SearchBackend::SearchResult::name, Digikam::GPSUndoCommand::UndoInfo::readNewDataFromItem(), Digikam::GPSUndoCommand::UndoInfo::readOldDataFromItem(), DigikamGenericGeolocationEditPlugin::SearchResultModel::SearchResultItem::result, Digikam::GPSDataContainer::setCoordinates(), Digikam::GPSItemContainer::setGPSData(), and signalUndoCommand().
|
inherited |
Referenced by Digikam::GPSGeoIfaceModelHelper::onIndicesMoved().