Registry of available annotation item GUI behavior.
More...
#include <qgsannotationitemguiregistry.h>
|
void | typeAdded (int metadataId) |
| Emitted whenever a new item type is added to the registry, with the specified metadataId. More...
|
|
Registry of available annotation item GUI behavior.
QgsAnnotationItemGuiRegistry is not usually directly created, but rather accessed through QgsGui::annotationItemGuiRegistry().
This acts as a companion to QgsAnnotationItemRegistry, handling only the components related to the GUI behavior of annotation items.
- Since
- QGIS 3.22
Definition at line 304 of file qgsannotationitemguiregistry.h.
◆ QgsAnnotationItemGuiRegistry() [1/2]
QgsAnnotationItemGuiRegistry::QgsAnnotationItemGuiRegistry |
( |
QObject * |
parent = nullptr | ) |
|
◆ ~QgsAnnotationItemGuiRegistry()
QgsAnnotationItemGuiRegistry::~QgsAnnotationItemGuiRegistry |
( |
| ) |
|
|
override |
◆ QgsAnnotationItemGuiRegistry() [2/2]
◆ addAnnotationItemGuiMetadata()
◆ addDefaultItems()
void QgsAnnotationItemGuiRegistry::addDefaultItems |
( |
| ) |
|
◆ addItemGroup()
◆ createItem()
◆ createItemWidget()
◆ itemGroup()
◆ itemMetadata()
Returns the metadata for the specified item metadataId.
Returns nullptr
if a corresponding metadataId was not found in the registry.
Definition at line 98 of file qgsannotationitemguiregistry.cpp.
◆ itemMetadataIds()
QList< int > QgsAnnotationItemGuiRegistry::itemMetadataIds |
( |
| ) |
const |
◆ metadataIdForItemType()
int QgsAnnotationItemGuiRegistry::metadataIdForItemType |
( |
const QString & |
type | ) |
const |
Returns the GUI item metadata ID which corresponds to the specified annotation item type.
In the case that multiple GUI metadata classes exist for a single annotation item type then only the first encountered GUI metadata ID will be returned.
Returns -1 if no matching metadata is found in the GUI registry.
Definition at line 103 of file qgsannotationitemguiregistry.cpp.
◆ newItemAddedToLayer()
Called when a newly created item of the associated metadata metadataId has been added to a layer.
This is only called for additions which result from GUI operations - i.e. it is not called for items added programmatically.
Definition at line 151 of file qgsannotationitemguiregistry.cpp.
◆ operator=()
◆ typeAdded
void QgsAnnotationItemGuiRegistry::typeAdded |
( |
int |
metadataId | ) |
|
|
signal |
Emitted whenever a new item type is added to the registry, with the specified metadataId.
The documentation for this class was generated from the following files: