QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
|
Stores metadata about one advanced digitizing tool class. More...
#include <qgsadvanceddigitizingtoolsregistry.h>
Public Member Functions | |
QgsAdvancedDigitizingToolAbstractMetadata (const QString &name, const QString &visibleName, const QIcon &icon=QIcon()) | |
Constructor for QgsAdvancedDigitizingToolAbstractMetadata with the specified tool name. | |
virtual | ~QgsAdvancedDigitizingToolAbstractMetadata ()=default |
virtual QgsAdvancedDigitizingTool * | createTool (QgsMapCanvas *canvas, QgsAdvancedDigitizingDockWidget *cadDockWidget) |
Returns new tool of this type. Return nullptr on error. | |
QIcon | icon () const |
Returns the tool's icon. | |
QString | name () const |
Returns the tool's unique name. | |
QString | visibleName () const |
Returns the tool's translatable user-friendly name. | |
Protected Attributes | |
QIcon | mIcon |
QString | mName |
QString | mVisibleName |
Stores metadata about one advanced digitizing tool class.
Definition at line 34 of file qgsadvanceddigitizingtoolsregistry.h.
|
inline |
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.
Definition at line 45 of file qgsadvanceddigitizingtoolsregistry.h.
|
virtualdefault |
|
virtual |
Returns new tool of this type. Return nullptr
on error.
Reimplemented in QgsAdvancedDigitizingToolMetadata.
Definition at line 20 of file qgsadvanceddigitizingtoolsregistry.cpp.
|
inline |
Returns the tool's icon.
Definition at line 60 of file qgsadvanceddigitizingtoolsregistry.h.
|
inline |
Returns the tool's unique name.
Definition at line 54 of file qgsadvanceddigitizingtoolsregistry.h.
|
inline |
Returns the tool's translatable user-friendly name.
Definition at line 57 of file qgsadvanceddigitizingtoolsregistry.h.
|
protected |
Definition at line 68 of file qgsadvanceddigitizingtoolsregistry.h.
|
protected |
Definition at line 66 of file qgsadvanceddigitizingtoolsregistry.h.
|
protected |
Definition at line 67 of file qgsadvanceddigitizingtoolsregistry.h.