16#ifndef QGSANNOTATIONITEMREGISTRY_H
17#define QGSANNOTATIONITEMREGISTRY_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 )
188 QMap< QString, QString> itemTypes()
const;
196 void typeAdded(
const QString &type,
const QString &name );
203 QMap<QString, QgsAnnotationItemAbstractMetadata *> mMetadata;
Registry of available annotation item types.
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 & operator=(const QgsAnnotationItemRegistry &rh)=delete
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.