Add actionVertexToolActiveLayer to iface

This commit is contained in:
donvincenzo 2019-01-31 14:30:30 -05:00 committed by Nyall Dawson
parent daab33c4d7
commit e4e0948a3d
5 changed files with 28 additions and 2 deletions

View File

@ -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;

View File

@ -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; }

View File

@ -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(); }

View File

@ -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;

View File

@ -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;