QGIS API Documentation 3.41.0-Master (45a0abf3bec)
|
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. | |
virtual | ~QgsAnnotationItemAbstractMetadata ()=default |
virtual QgsAnnotationItem * | createItem ()=0 |
Creates a new, default, annotation item of this class. | |
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. | |
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.