QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
Convenience metadata class that uses static functions to create annotation items and their configuration widgets. More...
#include <qgsannotationitemregistry.h>
Public Member Functions | |
QgsAnnotationItemMetadata (const QString &type, const QString &visibleName, const QString &visiblePluralName, const QgsAnnotationItemCreateFunc &pfCreate) | |
Constructor for QgsAnnotationItemMetadata with the specified class type and visibleName, and function pointers for the various item creation functions. | |
QgsAnnotationItemCreateFunc | createFunction () const |
Returns the classes' item default creation function. | |
QgsAnnotationItem * | createItem () override |
Creates a new, default, annotation item of this class. | |
Public Member Functions inherited from QgsAnnotationItemAbstractMetadata | |
QgsAnnotationItemAbstractMetadata (const QString &type, const QString &visibleName, const QString &visiblePluralName=QString()) | |
Constructor for QgsAnnotationItemAbstractMetadata with the specified class type and visibleName. | |
virtual | ~QgsAnnotationItemAbstractMetadata ()=default |
QString | type () const |
Returns the unique item type string for the annotation item class. | |
QString | visibleName () const |
Returns a translated, user visible name for the annotation item class. | |
QString | visiblePluralName () const |
Returns a translated, user visible name for plurals of the annotation item class (e.g. | |
Protected Attributes | |
QgsAnnotationItemCreateFunc | mCreateFunc = nullptr |
Convenience metadata class that uses static functions to create annotation items and their configuration widgets.
Definition at line 98 of file qgsannotationitemregistry.h.
|
inline |
Constructor for QgsAnnotationItemMetadata with the specified class type and visibleName, and function pointers for the various item creation functions.
The visiblePluralName argument is used to specify a plural variant of the item type.
Definition at line 108 of file qgsannotationitemregistry.h.
|
inline |
Returns the classes' item default creation function.
Definition at line 117 of file qgsannotationitemregistry.h.
|
inlineoverridevirtual |
Creates a new, default, annotation item of this class.
Implements QgsAnnotationItemAbstractMetadata.
Definition at line 119 of file qgsannotationitemregistry.h.
|
protected |
Definition at line 122 of file qgsannotationitemregistry.h.