#include <qgsgenericprojectionselector.h>
Public Slots | |
void | setMessage (QString theMessage="") |
If no parameter is passed, the message will be a generic 'define the CRS for this layer'. | |
QString | selectedProj4String () |
long | selectedCrsId () |
QString | selectedAuthId () |
long | selectedEpsg () |
void | setSelectedCrsName (QString theName) |
void | setSelectedCrsId (long theID) |
void | setSelectedAuthId (QString authId) |
void | setSelectedEpsg (long theID) |
void | setOgcWmsCrsFilter (QSet< QString > crsFilter) |
filters this dialog by the given CRSs | |
Public Member Functions | |
QgsGenericProjectionSelector (QWidget *parent=0, Qt::WFlags fl=QgisGui::ModalDialogFlags) | |
Constructor. | |
~QgsGenericProjectionSelector () | |
Destructor. |
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:
QgsGenericProjectionSelector mySelector( mQGisIface->mainWindow() ); mySelector.setSelectedEpsg( mEpsgId ); if ( mySelector.exec() ) { mEpsgId = mySelector.selectedEpsg(); }
If you wish to embed the projection selector into an existing dialog the you probably want to look at QgsProjectionSelector rather.
Definition at line 46 of file qgsgenericprojectionselector.h.
QgsGenericProjectionSelector::QgsGenericProjectionSelector | ( | QWidget * | parent = 0 , |
|
Qt::WFlags | fl = QgisGui::ModalDialogFlags | |||
) |
QgsGenericProjectionSelector::~QgsGenericProjectionSelector | ( | ) |
void QgsGenericProjectionSelector::setMessage | ( | QString | theMessage = "" |
) | [slot] |
If no parameter is passed, the message will be a generic 'define the CRS for this layer'.
Definition at line 35 of file qgsgenericprojectionselector.cpp.
QString QgsGenericProjectionSelector::selectedProj4String | ( | ) | [slot] |
Definition at line 81 of file qgsgenericprojectionselector.cpp.
long QgsGenericProjectionSelector::selectedCrsId | ( | ) | [slot] |
Definition at line 87 of file qgsgenericprojectionselector.cpp.
QString QgsGenericProjectionSelector::selectedAuthId | ( | ) | [slot] |
Definition at line 98 of file qgsgenericprojectionselector.cpp.
long QgsGenericProjectionSelector::selectedEpsg | ( | ) | [slot] |
Definition at line 93 of file qgsgenericprojectionselector.cpp.
void QgsGenericProjectionSelector::setSelectedCrsName | ( | QString | theName | ) | [slot] |
Definition at line 66 of file qgsgenericprojectionselector.cpp.
void QgsGenericProjectionSelector::setSelectedCrsId | ( | long | theID | ) | [slot] |
Definition at line 71 of file qgsgenericprojectionselector.cpp.
void QgsGenericProjectionSelector::setSelectedAuthId | ( | QString | authId | ) | [slot] |
Definition at line 76 of file qgsgenericprojectionselector.cpp.
void QgsGenericProjectionSelector::setSelectedEpsg | ( | long | theID | ) | [slot] |
Definition at line 61 of file qgsgenericprojectionselector.cpp.
void QgsGenericProjectionSelector::setOgcWmsCrsFilter | ( | QSet< QString > | crsFilter | ) | [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 103 of file qgsgenericprojectionselector.cpp.