Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add actionVertexToolActiveLayer to iface
  • Loading branch information
donvincenzo authored and nyalldawson committed Feb 7, 2019
1 parent daab33c commit e4e0948
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 2 deletions.
14 changes: 13 additions & 1 deletion python/gui/auto_generated/qgisinterface.sip.in
Expand Up @@ -414,9 +414,21 @@ Returns the native Delete Ring action.
%Docstring
Returns the native Delete Part action.
%End

virtual QAction *actionVertexTool() = 0;
%Docstring
Returns the native Vertex Tool action.
Returns the native "Vertex Tool for All Layers" action.

.. seealso:: :py:func:`actionVertexToolActiveLayer`
%End

virtual QAction *actionVertexToolActiveLayer() = 0;
%Docstring
Returns the native "Vertex Tool for Active Layer" action.

.. seealso:: :py:func:`actionVertexTool`

.. versionadded:: 3.6
%End

virtual QAction *actionPan() = 0;
Expand Down
1 change: 1 addition & 0 deletions src/app/qgisapp.h
Expand Up @@ -452,6 +452,7 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow
QAction *actionDeleteRing() { return mActionDeleteRing; }
QAction *actionDeletePart() { return mActionDeletePart; }
QAction *actionVertexTool() { return mActionVertexTool; }
QAction *actionVertexToolActiveLayer() { return mActionVertexToolActiveLayer; }
QAction *actionSnappingOptions() { return mActionSnappingOptions; }
QAction *actionOffsetCurve() { return mActionOffsetCurve; }
QAction *actionPan() { return mActionPan; }
Expand Down
1 change: 1 addition & 0 deletions src/app/qgisappinterface.cpp
Expand Up @@ -611,6 +611,7 @@ QAction *QgisAppInterface::actionSimplifyFeature() { return qgis->actionSimplify
QAction *QgisAppInterface::actionDeleteRing() { return qgis->actionDeleteRing(); }
QAction *QgisAppInterface::actionDeletePart() { return qgis->actionDeletePart(); }
QAction *QgisAppInterface::actionVertexTool() { return qgis->actionVertexTool(); }
QAction *QgisAppInterface::actionVertexToolActiveLayer() { return qgis->actionVertexToolActiveLayer(); }

QAction *QgisAppInterface::actionPan() { return qgis->actionPan(); }
QAction *QgisAppInterface::actionPanToSelected() { return qgis->actionPanToSelected(); }
Expand Down
1 change: 1 addition & 0 deletions src/app/qgisappinterface.h
Expand Up @@ -197,6 +197,7 @@ class APP_EXPORT QgisAppInterface : public QgisInterface
QAction *actionDeleteRing() override;
QAction *actionDeletePart() override;
QAction *actionVertexTool() override;
QAction *actionVertexToolActiveLayer() override;
QAction *actionPan() override;
QAction *actionPanToSelected() override;
QAction *actionZoomIn() override;
Expand Down
13 changes: 12 additions & 1 deletion src/gui/qgisinterface.h
Expand Up @@ -395,9 +395,20 @@ class GUI_EXPORT QgisInterface : public QObject
virtual QAction *actionDeleteRing() = 0;
//! Returns the native Delete Part action.
virtual QAction *actionDeletePart() = 0;
//! Returns the native Vertex Tool action.

/**
* Returns the native "Vertex Tool for All Layers" action.
* \see actionVertexToolActiveLayer()
*/
virtual QAction *actionVertexTool() = 0;

/**
* Returns the native "Vertex Tool for Active Layer" action.
* \see actionVertexTool()
* \since QGIS 3.6
*/
virtual QAction *actionVertexToolActiveLayer() = 0;

// View menu actions
//! Returns the native pan action. Call trigger() on it to set the default pan map tool.
virtual QAction *actionPan() = 0;
Expand Down

0 comments on commit e4e0948

Please sign in to comment.