QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
16 #ifndef QGSANNOTATIONITEMGUIREGISTRY_H
17 #define QGSANNOTATIONITEMGUIREGISTRY_H
56 QgsAnnotationItemAbstractGuiMetadata(
const QString &type,
const QString &visibleName,
const QString &groupId = QString(), Qgis::AnnotationItemGuiFlags flags = Qgis::AnnotationItemGuiFlags() )
59 , mName( visibleName )
68 QString
type()
const {
return mType; }
73 Qgis::AnnotationItemGuiFlags
flags()
const {
return mFlags; }
78 QString
groupId()
const {
return mGroupId; }
88 virtual QIcon creationIcon()
const;
135 Qgis::AnnotationItemGuiFlags mFlags;
171 const QString &groupId = QString(),
172 Qgis::AnnotationItemGuiFlags flags = Qgis::AnnotationItemGuiFlags(),
176 , mIcon( creationIcon )
177 , mWidgetFunc( pfWidget )
178 , mCreateFunc( pfCreateFunc )
179 , mCreateMapToolFunc( pfCreateMapToolFunc )
339 int metadataIdForItemType(
const QString &type )
const;
414 QList< int > itemMetadataIds()
const;
419 void addDefaultItems();
427 void typeAdded(
int metadataId );
434 QMap< int, QgsAnnotationItemAbstractGuiMetadata *> mMetadata;
436 QMap< QString, QgsAnnotationItemGuiGroup > mItemGroups;
440 #endif //QGSANNOTATIONITEMGUIREGISTRY_H
QIcon icon
Icon for group.
std::function< QgsAnnotationItemBaseWidget *(QgsAnnotationItem *)> QgsAnnotationItemWidgetFunc
Annotation item configuration widget creation function.
Registry of available annotation item GUI behavior.
QString id
Unique (untranslated) group ID string.
Map canvas is a class for displaying all GIS data types on a canvas.
std::function< QgsAnnotationItem *()> QgsAnnotationItemCreateFunc
Annotation item creation function.
std::function< void(QgsAnnotationItem *, QgsAnnotationLayer *layer)> QgsAnnotationItemAddedToLayerFunc
Annotation item added to layer callback.
QgsAnnotationItemGuiGroup(const QString &id=QString(), const QString &name=QString(), const QIcon &icon=QIcon())
Constructor for QgsAnnotationItemGuiGroup.
QString name
Translated group name.
Represents a map layer containing a set of georeferenced annotations, e.g. markers,...
The Qgis class provides global constants for use throughout the application.
std::function< QgsCreateAnnotationItemMapToolInterface *(QgsMapCanvas *, QgsAdvancedDigitizingDockWidget *)> QgsCreateAnnotationItemMapToolFunc
Create annotation map tool creation function.
Stores GUI metadata about a group of annotation item classes.
Abstract base class for annotation items which are drawn with QgsAnnotationLayers.