QGIS API Documentation
2.8.2-Wien
|
A generic dialog to prompt the user for a Coordinate Reference System. More...
#include <qgsgenericprojectionselector.h>
Public Slots | |
void | on_mButtonBox_helpRequested () |
QString | selectedAuthId () |
long | selectedCrsId () |
void | setMessage (QString theMessage="") |
If no parameter is passed, the message will be a generic 'define the CRS for this layer'. | |
void | setOgcWmsCrsFilter (QSet< QString > crsFilter) |
filters this dialog by the given CRSs | |
void | setSelectedAuthId (QString authId) |
void | setSelectedCrsId (long theID) |
void | setSelectedCrsName (QString theName) |
Public Member Functions | |
QgsGenericProjectionSelector (QWidget *parent=0, Qt::WindowFlags fl=QgisGui::ModalDialogFlags) | |
Constructor. | |
~QgsGenericProjectionSelector () | |
Destructor. |
A generic dialog to prompt the user for a Coordinate Reference System.
Typically you will use this when you want to prompt the user for a coordinate system identifier e.g. from a plugin you might do this to get an epsg code:
If you wish to embed the projection selector into an existing dialog the you probably want to look at QgsProjectionSelector rather.
Definition at line 47 of file qgsgenericprojectionselector.h.
QgsGenericProjectionSelector::QgsGenericProjectionSelector | ( | QWidget * | parent = 0 , |
Qt::WindowFlags | fl = QgisGui::ModalDialogFlags |
||
) |
Constructor.
Definition at line 28 of file qgsgenericprojectionselector.cpp.
QgsGenericProjectionSelector::~QgsGenericProjectionSelector | ( | ) |
Destructor.
Definition at line 62 of file qgsgenericprojectionselector.cpp.
|
inlineslot |
Definition at line 72 of file qgsgenericprojectionselector.h.
|
slot |
Definition at line 89 of file qgsgenericprojectionselector.cpp.
|
slot |
Definition at line 83 of file qgsgenericprojectionselector.cpp.
|
slot |
If no parameter is passed, the message will be a generic 'define the CRS for this layer'.
Definition at line 41 of file qgsgenericprojectionselector.cpp.
|
slot |
filters this dialog by the given CRSs
Sets this dialog to filter the available projections to those listed by the given Coordinate Reference Systems.
crsFilter | a list of OGC Coordinate Reference Systems to filter the list of projections by. This is useful in (e.g.) WMS situations where you just want to offer what the WMS server can support. |
Definition at line 94 of file qgsgenericprojectionselector.cpp.
|
slot |
Definition at line 78 of file qgsgenericprojectionselector.cpp.
|
slot |
Definition at line 73 of file qgsgenericprojectionselector.cpp.
|
slot |
Definition at line 68 of file qgsgenericprojectionselector.cpp.