Skip to content
Permalink
Browse files

Add actionVertexToolActiveLayer to iface

  • Loading branch information
donvincenzo authored and nyalldawson committed Feb 7, 2019
1 parent daab33c commit e4e0948a3d485e07fbf0344375557ba45babaecc
@@ -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;
@@ -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; }
@@ -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(); }
@@ -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;
@@ -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;

0 comments on commit e4e0948

Please sign in to comment.
You can’t perform that action at this time.