Skip to content

Commit e4e0948

Browse files
donvincenzonyalldawson
authored andcommitted
Add actionVertexToolActiveLayer to iface
1 parent daab33c commit e4e0948

File tree

5 files changed

+28
-2
lines changed

5 files changed

+28
-2
lines changed

python/gui/auto_generated/qgisinterface.sip.in

+13-1
Original file line numberDiff line numberDiff line change
@@ -414,9 +414,21 @@ Returns the native Delete Ring action.
414414
%Docstring
415415
Returns the native Delete Part action.
416416
%End
417+
417418
virtual QAction *actionVertexTool() = 0;
418419
%Docstring
419-
Returns the native Vertex Tool action.
420+
Returns the native "Vertex Tool for All Layers" action.
421+
422+
.. seealso:: :py:func:`actionVertexToolActiveLayer`
423+
%End
424+
425+
virtual QAction *actionVertexToolActiveLayer() = 0;
426+
%Docstring
427+
Returns the native "Vertex Tool for Active Layer" action.
428+
429+
.. seealso:: :py:func:`actionVertexTool`
430+
431+
.. versionadded:: 3.6
420432
%End
421433

422434
virtual QAction *actionPan() = 0;

src/app/qgisapp.h

+1
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,7 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow
452452
QAction *actionDeleteRing() { return mActionDeleteRing; }
453453
QAction *actionDeletePart() { return mActionDeletePart; }
454454
QAction *actionVertexTool() { return mActionVertexTool; }
455+
QAction *actionVertexToolActiveLayer() { return mActionVertexToolActiveLayer; }
455456
QAction *actionSnappingOptions() { return mActionSnappingOptions; }
456457
QAction *actionOffsetCurve() { return mActionOffsetCurve; }
457458
QAction *actionPan() { return mActionPan; }

src/app/qgisappinterface.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,7 @@ QAction *QgisAppInterface::actionSimplifyFeature() { return qgis->actionSimplify
611611
QAction *QgisAppInterface::actionDeleteRing() { return qgis->actionDeleteRing(); }
612612
QAction *QgisAppInterface::actionDeletePart() { return qgis->actionDeletePart(); }
613613
QAction *QgisAppInterface::actionVertexTool() { return qgis->actionVertexTool(); }
614+
QAction *QgisAppInterface::actionVertexToolActiveLayer() { return qgis->actionVertexToolActiveLayer(); }
614615

615616
QAction *QgisAppInterface::actionPan() { return qgis->actionPan(); }
616617
QAction *QgisAppInterface::actionPanToSelected() { return qgis->actionPanToSelected(); }

src/app/qgisappinterface.h

+1
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ class APP_EXPORT QgisAppInterface : public QgisInterface
197197
QAction *actionDeleteRing() override;
198198
QAction *actionDeletePart() override;
199199
QAction *actionVertexTool() override;
200+
QAction *actionVertexToolActiveLayer() override;
200201
QAction *actionPan() override;
201202
QAction *actionPanToSelected() override;
202203
QAction *actionZoomIn() override;

src/gui/qgisinterface.h

+12-1
Original file line numberDiff line numberDiff line change
@@ -395,9 +395,20 @@ class GUI_EXPORT QgisInterface : public QObject
395395
virtual QAction *actionDeleteRing() = 0;
396396
//! Returns the native Delete Part action.
397397
virtual QAction *actionDeletePart() = 0;
398-
//! Returns the native Vertex Tool action.
398+
399+
/**
400+
* Returns the native "Vertex Tool for All Layers" action.
401+
* \see actionVertexToolActiveLayer()
402+
*/
399403
virtual QAction *actionVertexTool() = 0;
400404

405+
/**
406+
* Returns the native "Vertex Tool for Active Layer" action.
407+
* \see actionVertexTool()
408+
* \since QGIS 3.6
409+
*/
410+
virtual QAction *actionVertexToolActiveLayer() = 0;
411+
401412
// View menu actions
402413
//! Returns the native pan action. Call trigger() on it to set the default pan map tool.
403414
virtual QAction *actionPan() = 0;

0 commit comments

Comments
 (0)