A widget for selecting a Coordinate reference system from a tree.
More...
#include <qgsprojectionselector.h>
Signals |
void | sridSelected (QString theSRID) |
void | refresh () |
| Refresh any listening canvases.
|
void | searchBoxHasFocus (bool) |
| Let listeners know if find has focus so they can adjust the default button.
|
void | initialized () |
| Notify others that the widget is now fully initialized, including deferred selection of projection.
|
Public Member Functions |
| QgsProjectionSelector (QWidget *parent, const char *name="", Qt::WindowFlags fl=0) |
| ~QgsProjectionSelector () |
void | loadUserCrsList (QSet< QString > *crsFilter=0) |
| Populate the proj tree view with user defined projection names...
|
void | loadCrsList (QSet< QString > *crsFilter=0) |
| Populate the proj tree view with system projection names...
|
const QString | sqlSafeString (const QString theSQL) |
| Make the string safe for use in SQL statements. This involves escaping single quotes, double quotes, backslashes, and optionally, percentage symbols. Percentage symbols are used as wildcards sometimes and so when using the string as part of the LIKE phrase of a select statement, should be escaped.
|
QString | selectedAuthId () |
| Gets the current authority-style projection identifier.
|
Protected Member Functions |
void | showEvent (QShowEvent *theEvent) |
| Used to ensure the projection list view is actually populated.
|
void | resizeEvent (QResizeEvent *theEvent) |
| Used to manage column sizes.
|
Detailed Description
A widget for selecting a Coordinate reference system from a tree.
- See Also
- QgsGenericProjectionSelector.
- Author
- Tim Sutton
Constructor & Destructor Documentation
QgsProjectionSelector::QgsProjectionSelector |
( |
QWidget * |
parent, |
|
|
const char * |
name = "" , |
|
|
Qt::WindowFlags |
fl = 0 |
|
) |
| |
QgsProjectionSelector::~QgsProjectionSelector |
( |
| ) |
|
Member Function Documentation
void QgsProjectionSelector::initialized |
( |
| ) |
|
|
signal |
Notify others that the widget is now fully initialized, including deferred selection of projection.
- Note
- added in 2.4
void QgsProjectionSelector::loadCrsList |
( |
QSet< QString > * |
crsFilter = 0 | ) |
|
Populate the proj tree view with system projection names...
- Parameters
-
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. |
- Todo:
- Should this be public?
void QgsProjectionSelector::loadUserCrsList |
( |
QSet< QString > * |
crsFilter = 0 | ) |
|
Populate the proj tree view with user defined projection names...
- Parameters
-
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. |
- Todo:
- Should this be public?
void QgsProjectionSelector::on_cbxHideDeprecated_stateChanged |
( |
| ) |
|
|
slot |
void QgsProjectionSelector::on_leSearch_textChanged |
( |
const QString & |
theFilterTxt | ) |
|
|
slot |
void QgsProjectionSelector::on_lstCoordinateSystems_currentItemChanged |
( |
QTreeWidgetItem * |
current, |
|
|
QTreeWidgetItem * |
prev |
|
) |
| |
|
slot |
void QgsProjectionSelector::on_lstRecent_currentItemChanged |
( |
QTreeWidgetItem * |
current, |
|
|
QTreeWidgetItem * |
prev |
|
) |
| |
|
slot |
void QgsProjectionSelector::pushProjectionToFront |
( |
| ) |
|
|
slot |
mark selected projection for push to front
void QgsProjectionSelector::refresh |
( |
| ) |
|
|
signal |
Refresh any listening canvases.
void QgsProjectionSelector::resizeEvent |
( |
QResizeEvent * |
theEvent | ) |
|
|
protected |
Used to manage column sizes.
void QgsProjectionSelector::searchBoxHasFocus |
( |
bool |
| ) |
|
|
signal |
Let listeners know if find has focus so they can adjust the default button.
QString QgsProjectionSelector::selectedAuthId |
( |
| ) |
|
Gets the current authority-style projection identifier.
long QgsProjectionSelector::selectedCrsId |
( |
| ) |
|
|
slot |
Gets the current QGIS projection identfier.
QString QgsProjectionSelector::selectedName |
( |
| ) |
|
|
slot |
long QgsProjectionSelector::selectedPostgresSrId |
( |
| ) |
|
|
slot |
Gets the current PostGIS-style projection identifier.
QString QgsProjectionSelector::selectedProj4String |
( |
| ) |
|
|
slot |
void QgsProjectionSelector::setOgcWmsCrsFilter |
( |
QSet< QString > |
crsFilter | ) |
|
|
slot |
filters this widget by the given CRSs
Sets this widget to filter the available projections to those listed by the given Coordinate Reference Systems.
- Parameters
-
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. |
- Warning
- This function's behaviour is undefined if it is called after the widget is shown.
void QgsProjectionSelector::setSelectedAuthId |
( |
QString |
authId | ) |
|
|
slot |
void QgsProjectionSelector::setSelectedCrsId |
( |
long |
theCRSID | ) |
|
|
slot |
void QgsProjectionSelector::setSelectedCrsName |
( |
QString |
theCRSName | ) |
|
|
slot |
void QgsProjectionSelector::showEvent |
( |
QShowEvent * |
theEvent | ) |
|
|
protected |
Used to ensure the projection list view is actually populated.
const QString QgsProjectionSelector::sqlSafeString |
( |
const QString |
theSQL | ) |
|
Make the string safe for use in SQL statements. This involves escaping single quotes, double quotes, backslashes, and optionally, percentage symbols. Percentage symbols are used as wildcards sometimes and so when using the string as part of the LIKE phrase of a select statement, should be escaped.
- const QString in The input string to make safe.
- Returns
- The string made safe for SQL statements.
linfinity qtcreator qgis
- const QString in The input string to make safe.
- Returns
- The string made safe for SQL statements.
void QgsProjectionSelector::sridSelected |
( |
QString |
theSRID | ) |
|
|
signal |
The documentation for this class was generated from the following files: