A widget for selecting a Coordinate reference system from a tree.
More...
#include <qgsprojectionselector.h>
Signals |
void | initialized () |
| Notify others that the widget is now fully initialized, including deferred selection of projection.
|
void | refresh () |
| Refresh any listening canvases.
|
void | searchBoxHasFocus (bool) |
| Let listeners know if find has focus so they can adjust the default button.
|
void | sridSelected (QString theSRID) |
Public Member Functions |
| QgsProjectionSelector (QWidget *parent, const char *name="", Qt::WindowFlags fl=0) |
| ~QgsProjectionSelector () |
void | loadCrsList (QSet< QString > *crsFilter=0) |
| Populate the proj tree view with system projection names...
|
void | loadUserCrsList (QSet< QString > *crsFilter=0) |
| Populate the proj tree view with user defined projection names...
|
QString | selectedAuthId () |
| Gets the current authority-style projection identifier.
|
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.
|
Protected Member Functions |
void | resizeEvent (QResizeEvent *theEvent) override |
| Used to manage column sizes.
|
void | showEvent (QShowEvent *theEvent) override |
| Used to ensure the projection list view is actually populated.
|
Detailed Description
A widget for selecting a Coordinate reference system from a tree.
- See Also
- QgsGenericProjectionSelector.
- Author
- Tim Sutton
Definition at line 28 of file qgsprojectionselector.h.
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?
Definition at line 534 of file qgsprojectionselector.cpp.
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?
Definition at line 458 of file qgsprojectionselector.cpp.
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 |
void QgsProjectionSelector::refresh |
( |
| ) |
|
|
signal |
Refresh any listening canvases.
void QgsProjectionSelector::resizeEvent |
( |
QResizeEvent * |
theEvent | ) |
|
|
overrideprotected |
void QgsProjectionSelector::searchBoxHasFocus |
( |
bool |
| ) |
|
|
signal |
Let listeners know if find has focus so they can adjust the default button.
QString QgsProjectionSelector::selectedAuthId |
( |
| ) |
|
long QgsProjectionSelector::selectedCrsId |
( |
| ) |
|
|
slot |
QString QgsProjectionSelector::selectedName |
( |
| ) |
|
|
slot |
long QgsProjectionSelector::selectedPostgresSrId |
( |
| ) |
|
|
slot |
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.
Definition at line 450 of file qgsprojectionselector.cpp.
void QgsProjectionSelector::setSelectedAuthId |
( |
QString |
authId | ) |
|
|
slot |
void QgsProjectionSelector::setSelectedCrsId |
( |
long |
theCRSID | ) |
|
|
slot |
void QgsProjectionSelector::setSelectedCrsName |
( |
QString |
theCRSName | ) |
|
|
slot |
void QgsProjectionSelector::showEvent |
( |
QShowEvent * |
theEvent | ) |
|
|
overrideprotected |
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.
Definition at line 950 of file qgsprojectionselector.cpp.
void QgsProjectionSelector::sridSelected |
( |
QString |
theSRID | ) |
|
|
signal |
The documentation for this class was generated from the following files: