Class: QgsAdvancedDigitizingToolAbstractMetadata¶
Stores metadata about one advanced digitizing tool class.
Added in version 3.40.
Methods
Returns new tool of this type. |
|
Returns the tool's icon |
|
Returns the tool's unique name |
|
Returns the tool's translatable user-friendly name |
- class qgis.gui.QgsAdvancedDigitizingToolAbstractMetadata[source]¶
Bases:
object
- __init__(name: str | None, visibleName: str | None, icon: QIcon = QIcon())
Constructor for QgsAdvancedDigitizingToolAbstractMetadata with the specified tool
name
.visibleName
should be set to a translated, user visible name identifying the corresponding annotation item.An optional
icon
can be set, which will be used by the advanced digitizing dock widget.- Parameters:
name (Optional[str])
visibleName (Optional[str])
icon (QIcon = QIcon())
- __init__(a0: QgsAdvancedDigitizingToolAbstractMetadata)
- Parameters:
- createTool(self, canvas: QgsMapCanvas | None, cadDockWidget: QgsAdvancedDigitizingDockWidget | None) QgsAdvancedDigitizingTool | None [source]¶
Returns new tool of this type. Return
None
on error- Parameters:
canvas (Optional[QgsMapCanvas])
cadDockWidget (Optional[QgsAdvancedDigitizingDockWidget])
- Return type:
Optional[QgsAdvancedDigitizingTool]