QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Stores metadata about one annotation item class. More...
#include <qgsannotationitemregistry.h>
Public Member Functions | |
QgsAnnotationItemAbstractMetadata (const QString &type, const QString &visibleName, const QString &visiblePluralName=QString()) | |
Constructor for QgsAnnotationItemAbstractMetadata with the specified class type and visibleName. More... | |
virtual | ~QgsAnnotationItemAbstractMetadata ()=default |
virtual QgsAnnotationItem * | createItem ()=0 |
Creates a new, default, annotation item of this class. More... | |
QString | type () const |
Returns the unique item type string for the annotation item class. More... | |
QString | visibleName () const |
Returns a translated, user visible name for the annotation item class. More... | |
QString | visiblePluralName () const |
Returns a translated, user visible name for plurals of the annotation item class (e.g. More... | |
Stores metadata about one annotation item class.
A companion class, QgsAnnotationItemAbstractGuiMetadata, handles the GUI behavior of QgsAnnotationItems.
Definition at line 41 of file qgsannotationitemregistry.h.
|
inline |
Constructor for QgsAnnotationItemAbstractMetadata with the specified class type and visibleName.
The optional visiblePluralName argument can be used to specify a plural variant of the item type.
Definition at line 51 of file qgsannotationitemregistry.h.
|
virtualdefault |
|
pure virtual |
Creates a new, default, annotation item of this class.
Implemented in QgsAnnotationItemMetadata.
|
inline |
Returns the unique item type string for the annotation item class.
Definition at line 62 of file qgsannotationitemregistry.h.
|
inline |
Returns a translated, user visible name for the annotation item class.
Definition at line 68 of file qgsannotationitemregistry.h.
|
inline |
Returns a translated, user visible name for plurals of the annotation item class (e.g.
"Labels" for a "Label" item).
Definition at line 73 of file qgsannotationitemregistry.h.