-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add advanced digitizing tools registry
- Loading branch information
Showing
14 changed files
with
514 additions
and
23 deletions.
There are no files selected for viewing
113 changes: 113 additions & 0 deletions
113
python/PyQt6/gui/auto_generated/qgsadvanceddigitizingtoolsregistry.sip.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgsadvanceddigitizingtoolsregistry.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
class QgsAdvancedDigitizingToolAbstractMetadata | ||
{ | ||
%Docstring(signature="appended") | ||
Stores metadata about one advanced digitizing tool class. | ||
|
||
.. versionadded:: 3.40 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsadvanceddigitizingtoolsregistry.h" | ||
%End | ||
public: | ||
|
||
QgsAdvancedDigitizingToolAbstractMetadata( const QString &name, const QString &visibleName, const QIcon &icon = QIcon() ); | ||
%Docstring | ||
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. | ||
%End | ||
|
||
virtual ~QgsAdvancedDigitizingToolAbstractMetadata(); | ||
|
||
QString name() const; | ||
%Docstring | ||
Returns the tool's unique name | ||
%End | ||
|
||
QString visibleName() const; | ||
%Docstring | ||
Returns the tool's translatable user-friendly name | ||
%End | ||
|
||
QIcon icon() const; | ||
%Docstring | ||
Returns the tool's icon | ||
%End | ||
|
||
virtual QgsAdvancedDigitizingTool *createTool( QgsMapCanvas *canvas, QgsAdvancedDigitizingDockWidget *cadDockWidget ) /Factory/; | ||
%Docstring | ||
Returns new tool of this type. Return ``None`` on error | ||
%End | ||
|
||
protected: | ||
}; | ||
|
||
|
||
class QgsAdvancedDigitizingToolsRegistry | ||
{ | ||
%Docstring(signature="appended") | ||
Registry of available advanced digitizing tools. | ||
|
||
.. versionadded:: 3.40 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsadvanceddigitizingtoolsregistry.h" | ||
%End | ||
public: | ||
|
||
QgsAdvancedDigitizingToolsRegistry(); | ||
~QgsAdvancedDigitizingToolsRegistry(); | ||
|
||
|
||
void addDefaultTools(); | ||
%Docstring | ||
Adds the default tools shipped in QGIS | ||
%End | ||
|
||
bool addTool( QgsAdvancedDigitizingToolAbstractMetadata *toolMetaData /Transfer/ ); | ||
%Docstring | ||
Adds an advanced digitizing tool (take ownership) and return ``True`` on success | ||
%End | ||
|
||
bool removeTool( const QString &name ); | ||
%Docstring | ||
Removes the advanced digitizing tool matching the provided ``name`` and return ``True`` on success | ||
%End | ||
|
||
QgsAdvancedDigitizingToolAbstractMetadata *toolMetadata( const QString &name ); | ||
%Docstring | ||
Returns the advanced digitizing tool matching the provided ``name`` or ``None`` when no match available | ||
%End | ||
|
||
const QStringList toolMetadataNames() const; | ||
%Docstring | ||
Returns the list of registered tool names | ||
%End | ||
|
||
private: | ||
QgsAdvancedDigitizingToolsRegistry( const QgsAdvancedDigitizingToolsRegistry &rh ); | ||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgsadvanceddigitizingtoolsregistry.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
113 changes: 113 additions & 0 deletions
113
python/gui/auto_generated/qgsadvanceddigitizingtoolsregistry.sip.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgsadvanceddigitizingtoolsregistry.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
class QgsAdvancedDigitizingToolAbstractMetadata | ||
{ | ||
%Docstring(signature="appended") | ||
Stores metadata about one advanced digitizing tool class. | ||
|
||
.. versionadded:: 3.40 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsadvanceddigitizingtoolsregistry.h" | ||
%End | ||
public: | ||
|
||
QgsAdvancedDigitizingToolAbstractMetadata( const QString &name, const QString &visibleName, const QIcon &icon = QIcon() ); | ||
%Docstring | ||
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. | ||
%End | ||
|
||
virtual ~QgsAdvancedDigitizingToolAbstractMetadata(); | ||
|
||
QString name() const; | ||
%Docstring | ||
Returns the tool's unique name | ||
%End | ||
|
||
QString visibleName() const; | ||
%Docstring | ||
Returns the tool's translatable user-friendly name | ||
%End | ||
|
||
QIcon icon() const; | ||
%Docstring | ||
Returns the tool's icon | ||
%End | ||
|
||
virtual QgsAdvancedDigitizingTool *createTool( QgsMapCanvas *canvas, QgsAdvancedDigitizingDockWidget *cadDockWidget ) /Factory/; | ||
%Docstring | ||
Returns new tool of this type. Return ``None`` on error | ||
%End | ||
|
||
protected: | ||
}; | ||
|
||
|
||
class QgsAdvancedDigitizingToolsRegistry | ||
{ | ||
%Docstring(signature="appended") | ||
Registry of available advanced digitizing tools. | ||
|
||
.. versionadded:: 3.40 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsadvanceddigitizingtoolsregistry.h" | ||
%End | ||
public: | ||
|
||
QgsAdvancedDigitizingToolsRegistry(); | ||
~QgsAdvancedDigitizingToolsRegistry(); | ||
|
||
|
||
void addDefaultTools(); | ||
%Docstring | ||
Adds the default tools shipped in QGIS | ||
%End | ||
|
||
bool addTool( QgsAdvancedDigitizingToolAbstractMetadata *toolMetaData /Transfer/ ); | ||
%Docstring | ||
Adds an advanced digitizing tool (take ownership) and return ``True`` on success | ||
%End | ||
|
||
bool removeTool( const QString &name ); | ||
%Docstring | ||
Removes the advanced digitizing tool matching the provided ``name`` and return ``True`` on success | ||
%End | ||
|
||
QgsAdvancedDigitizingToolAbstractMetadata *toolMetadata( const QString &name ); | ||
%Docstring | ||
Returns the advanced digitizing tool matching the provided ``name`` or ``None`` when no match available | ||
%End | ||
|
||
const QStringList toolMetadataNames() const; | ||
%Docstring | ||
Returns the list of registered tool names | ||
%End | ||
|
||
private: | ||
QgsAdvancedDigitizingToolsRegistry( const QgsAdvancedDigitizingToolsRegistry &rh ); | ||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgsadvanceddigitizingtoolsregistry.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.