-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Small fixes to QgsProjectionSelectionWidget
Add API docs, const correctness, method for getting CRS, tab order fixes.
- Loading branch information
1 parent
077eb6c
commit 7933847
Showing
4 changed files
with
183 additions
and
372 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,38 @@ | ||
|
||
/** | ||
* \class QgsProjectionSelectionWidget | ||
* \ingroup gui | ||
* \brief A widget for selecting a projection. | ||
* \note added in QGIS 2.7 | ||
*/ | ||
class QgsProjectionSelectionWidget : QWidget | ||
{ | ||
%TypeHeaderCode | ||
#include <qgsprojectionselectionwidget.h> | ||
%End | ||
|
||
public: | ||
|
||
explicit QgsProjectionSelectionWidget( QWidget *parent /TransferThis/ = 0 ); | ||
|
||
/* Returns the currently selected CRS for the widget | ||
* @returns current CRS | ||
*/ | ||
QgsCoordinateReferenceSystem crs() const; | ||
|
||
signals: | ||
|
||
/* Emitted when the selected CRS is changed | ||
*/ | ||
void crsChanged( QgsCoordinateReferenceSystem ); | ||
|
||
public slots: | ||
|
||
/* Sets the current CRS for the widget | ||
* @param crs new CRS | ||
*/ | ||
void setCrs( QgsCoordinateReferenceSystem crs ); | ||
|
||
/* Opens the dialog for selecting a new CRS | ||
*/ | ||
void selectCrs(); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.