|
| QgsAnnotationItemGuiMetadata (const QString &type, const QString &visibleName, const QIcon &creationIcon, const QgsAnnotationItemWidgetFunc &pfWidget=nullptr, const QString &groupId=QString(), Qgis::AnnotationItemGuiFlags flags=Qgis::AnnotationItemGuiFlags(), const QgsAnnotationItemCreateFunc &pfCreateFunc=nullptr, const QgsCreateAnnotationItemMapToolFunc &pfCreateMapToolFunc=nullptr) |
| Constructor for QgsAnnotationItemGuiMetadata with the specified class type and creationIcon, and function pointers for the various configuration widget creation functions. More...
|
|
QgsAnnotationItem * | createItem () override |
| Creates an instance of the corresponding item type. More...
|
|
QgsAnnotationItemBaseWidget * | createItemWidget (QgsAnnotationItem *item) override |
| Creates a configuration widget for an item of this type. More...
|
|
QgsCreateAnnotationItemMapToolInterface * | createMapTool (QgsMapCanvas *canvas, QgsAdvancedDigitizingDockWidget *cadDockWidget) override |
| Creates a map tool for a creating a new item of this type. More...
|
|
QgsCreateAnnotationItemMapToolFunc | createMapToolFunction () const |
| Returns the classes' create new item map tool creation function. More...
|
|
QIcon | creationIcon () const override |
| Returns an icon representing creation of the annotation item type. More...
|
|
QgsAnnotationItemAddedToLayerFunc | itemAddToLayerFunction () const |
| Returns the classes' item added to layer function. More...
|
|
QgsAnnotationItemCreateFunc | itemCreationFunction () const |
| Returns the classes' item creation function. More...
|
|
void | newItemAddedToLayer (QgsAnnotationItem *item, QgsAnnotationLayer *layer) override |
| Called when a newly created item of the associated type has been added to a layer. More...
|
|
void | setCreateMapToolFunction (const QgsCreateAnnotationItemMapToolFunc &function) |
| Sets the classes' create new item map tool creation function. More...
|
|
void | setItemAddedToLayerFunction (const QgsAnnotationItemAddedToLayerFunc &function) |
| Sets the classes' item creation function. More...
|
|
void | setItemCreationFunction (const QgsAnnotationItemCreateFunc &function) |
| Sets the classes' item creation function. More...
|
|
void | setWidgetFunction (const QgsAnnotationItemWidgetFunc &function) |
| Sets the classes' configuration widget creation function. More...
|
|
QgsAnnotationItemWidgetFunc | widgetFunction () const |
| Returns the classes' configuration widget creation function. More...
|
|
| QgsAnnotationItemAbstractGuiMetadata (const QString &type, const QString &visibleName, const QString &groupId=QString(), Qgis::AnnotationItemGuiFlags flags=Qgis::AnnotationItemGuiFlags()) |
| Constructor for QgsAnnotationItemAbstractGuiMetadata with the specified class type. More...
|
|
virtual | ~QgsAnnotationItemAbstractGuiMetadata ()=default |
|
virtual QgsAnnotationItem * | createItem () |
| Creates an instance of the corresponding item type. More...
|
|
virtual QgsAnnotationItemBaseWidget * | createItemWidget (QgsAnnotationItem *item) |
| Creates a configuration widget for an item of this type. More...
|
|
virtual QgsCreateAnnotationItemMapToolInterface * | createMapTool (QgsMapCanvas *canvas, QgsAdvancedDigitizingDockWidget *cadDockWidget) |
| Creates a map tool for a creating a new item of this type. More...
|
|
virtual QIcon | creationIcon () const |
| Returns an icon representing creation of the annotation item type. More...
|
|
Qgis::AnnotationItemGuiFlags | flags () const |
| Returns item flags. More...
|
|
QString | groupId () const |
| Returns the item group ID, if set. More...
|
|
virtual void | newItemAddedToLayer (QgsAnnotationItem *item, QgsAnnotationLayer *layer) |
| Called when a newly created item of the associated type has been added to a layer. More...
|
|
QString | type () const |
| Returns the unique item type code for the annotation item class. More...
|
|
QString | visibleName () const |
| Returns a translated, user visible name identifying the corresponding annotation item. More...
|
|