A widget for selecting a projection.
More...
#include <qgsprojectionselectionwidget.h>
A widget for selecting a projection.
- Since
- QGIS 2.7
Definition at line 40 of file qgsprojectionselectionwidget.h.
◆ CrsOption
Predefined CRS options shown in widget.
Enumerator |
---|
LayerCrs | Optional layer CRS.
|
ProjectCrs | Current project CRS (if OTF reprojection enabled)
|
CurrentCrs | Current user selected CRS.
|
DefaultCrs | Global default QGIS CRS.
|
RecentCrs | Recently used CRS.
|
CrsNotSet | Not set (hidden by default)
|
Definition at line 48 of file qgsprojectionselectionwidget.h.
◆ QgsProjectionSelectionWidget()
QgsProjectionSelectionWidget::QgsProjectionSelectionWidget |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
◆ cleared
void QgsProjectionSelectionWidget::cleared |
( |
| ) |
|
|
signal |
Emitted when the not set option is selected.
- Since
- QGIS 3.0
◆ crs()
◆ crsChanged
Emitted when the selected CRS is changed.
◆ crsOptionText()
◆ dialogTitle()
QString QgsProjectionSelectionWidget::dialogTitle |
( |
| ) |
const |
◆ dragEnterEvent()
void QgsProjectionSelectionWidget::dragEnterEvent |
( |
QDragEnterEvent * |
event | ) |
|
|
overrideprotected |
◆ dragLeaveEvent()
void QgsProjectionSelectionWidget::dragLeaveEvent |
( |
QDragLeaveEvent * |
event | ) |
|
|
overrideprotected |
◆ dropEvent()
void QgsProjectionSelectionWidget::dropEvent |
( |
QDropEvent * |
event | ) |
|
|
overrideprotected |
◆ optionVisible()
◆ selectCrs
void QgsProjectionSelectionWidget::selectCrs |
( |
| ) |
|
|
slot |
◆ setCrs
◆ setDialogTitle()
void QgsProjectionSelectionWidget::setDialogTitle |
( |
const QString & |
title | ) |
|
◆ setFilter()
◆ setLayerCrs
Sets the layer CRS for the widget.
If set, this will be added as an option to the preset CRSes shown in the widget.
- Parameters
-
Definition at line 548 of file qgsprojectionselectionwidget.cpp.
◆ setMessage()
void QgsProjectionSelectionWidget::setMessage |
( |
const QString & |
text | ) |
|
Sets a message to show in the dialog.
If an empty string is passed, the message will be a generic 'define the CRS for this layer'.
- Since
- QGIS 3.0
Definition at line 194 of file qgsprojectionselectionwidget.cpp.
◆ setNotSetText()
void QgsProjectionSelectionWidget::setNotSetText |
( |
const QString & |
text | ) |
|
◆ setOptionVisible()
◆ setShowAccuracyWarnings()
void QgsProjectionSelectionWidget::setShowAccuracyWarnings |
( |
bool |
show | ) |
|
◆ setSourceEnsemble()
void QgsProjectionSelectionWidget::setSourceEnsemble |
( |
const QString & |
ensemble | ) |
|
Sets the original source ensemble datum name.
If set, CRS accuracy warnings will not be shown when the selected CRS in the widget has a matching ensemble datum, regardless of the ensemble's accuracy.
- See also
- sourceEnsemble()
- Since
- QGIS 3.20
Definition at line 380 of file qgsprojectionselectionwidget.cpp.
◆ showAccuracyWarnings()
bool QgsProjectionSelectionWidget::showAccuracyWarnings |
( |
| ) |
const |
◆ sourceEnsemble()
QString QgsProjectionSelectionWidget::sourceEnsemble |
( |
| ) |
const |
Returns the original source ensemble datum name.
If set, CRS accuracy warnings will not be shown when the selected CRS in the widget has a matching ensemble datum, regardless of the ensemble's accuracy.
- See also
- setSourceEnsemble()
- Since
- QGIS 3.20
Definition at line 353 of file qgsprojectionselectionwidget.cpp.
The documentation for this class was generated from the following files: