16 #ifndef QGSANNOTATIONITEMREGISTRY_H
17 #define QGSANNOTATIONITEMREGISTRY_H
19 #include "qgis_core.h"
23 #include <QGraphicsItem>
53 , mVisibleName( visibleName )
54 , mVisibleNamePlural( visiblePluralName.isEmpty() ? visibleName : visiblePluralName )
62 QString
type()
const {
return mType; }
84 QString mVisibleNamePlural;
111 , mCreateFunc( pfCreate )
190 QMap< QString, QString> itemTypes()
const;
198 void typeAdded(
const QString &type,
const QString &name );
205 QMap<QString, QgsAnnotationItemAbstractMetadata *> mMetadata;
Registry of available annotation item types.
QgsAnnotationItemRegistry & operator=(const QgsAnnotationItemRegistry &rh)=delete
QgsAnnotationItemRegistry cannot be copied.
void typeAdded(const QString &type, const QString &name)
Emitted whenever a new item type is added to the registry, with the specified type and visible name.
QgsAnnotationItemRegistry(const QgsAnnotationItemRegistry &rh)=delete
QgsAnnotationItemRegistry cannot be copied.
Abstract base class for annotation items which are drawn with QgsAnnotationLayers.
The class is used as a container of context for various read/write operations on other objects.
std::function< QgsAnnotationItem *()> QgsAnnotationItemCreateFunc
Annotation item creation function.