Skip to content

Commit

Permalink
getter for the output crs in QgsExtentGroupBox
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry authored and nyalldawson committed Dec 14, 2017
1 parent bbf0027 commit ff15896
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions python/gui/qgsextentgroupbox.sip
Expand Up @@ -103,9 +103,18 @@ class QgsExtentGroupBox : QgsCollapsibleGroupBox
QgsRectangle outputExtent() const;
%Docstring
Returns the extent shown in the widget - in output CRS coordinates.
.. seealso:: :py:func:`outputCrs`
:rtype: QgsRectangle
%End

QgsCoordinateReferenceSystem outputCrs() const;
%Docstring
Returns the current output CRS, used in the display.
.. seealso:: :py:func:`outputExtent`
.. versionadded:: 3.0
:rtype: QgsCoordinateReferenceSystem
%End

QgsExtentGroupBox::ExtentState extentState() const;
%Docstring
Returns the currently selected state for the widget's extent.
Expand Down
8 changes: 8 additions & 0 deletions src/gui/qgsextentgroupbox.h
Expand Up @@ -120,9 +120,17 @@ class GUI_EXPORT QgsExtentGroupBox : public QgsCollapsibleGroupBox, private Ui::

/**
* Returns the extent shown in the widget - in output CRS coordinates.
* \see outputCrs
*/
QgsRectangle outputExtent() const;

/**
* Returns the current output CRS, used in the display.
* \see outputExtent
* \since QGIS 3.0
*/
QgsCoordinateReferenceSystem outputCrs() const { return mOutputCrs; }

/**
* Returns the currently selected state for the widget's extent.
*/
Expand Down

0 comments on commit ff15896

Please sign in to comment.