Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[api] Add initial framework for QgsMapToolModifyAnnotation
This is the start of a map tool for interactive editing of items in annotation layers. Currently it supports selecting items, and pre-highlighting their nodes as the cursor is moved over the items. (Not exposed in QGIS gui yet)
- Loading branch information
1 parent
20f28a9
commit 758b33e
Showing
6 changed files
with
517 additions
and
0 deletions.
There are no files selected for viewing
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
55 changes: 55 additions & 0 deletions
55
python/gui/auto_generated/annotations/qgsmaptoolmodifyannotation.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,55 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/annotations/qgsmaptoolmodifyannotation.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
class QgsMapToolModifyAnnotation : QgsMapToolAdvancedDigitizing | ||
{ | ||
%Docstring(signature="appended") | ||
A map tool for modifying annotations in a :py:class:`QgsAnnotationLayer` | ||
|
||
.. versionadded:: 3.22 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsmaptoolmodifyannotation.h" | ||
%End | ||
public: | ||
|
||
explicit QgsMapToolModifyAnnotation( QgsMapCanvas *canvas, QgsAdvancedDigitizingDockWidget *cadDockWidget ); | ||
%Docstring | ||
Constructor for QgsMapToolModifyAnnotation | ||
%End | ||
|
||
~QgsMapToolModifyAnnotation(); | ||
|
||
virtual void deactivate(); | ||
|
||
virtual void cadCanvasMoveEvent( QgsMapMouseEvent *event ); | ||
|
||
virtual void cadCanvasPressEvent( QgsMapMouseEvent *event ); | ||
|
||
|
||
signals: | ||
|
||
void itemSelected( QgsAnnotationLayer *layer, const QString &itemId ); | ||
%Docstring | ||
Emitted when the selected item is changed. | ||
%End | ||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/annotations/qgsmaptoolmodifyannotation.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
Oops, something went wrong.