A widget for selecting a coordinate reference system from a tree.
More...
#include <qgsprojectionselectiontreewidget.h>
A widget for selecting a coordinate reference system from a tree.
This widget implements a tree view of projections, as seen in the QgsProjectionSelectionDialog dialog. In most cases it is more suitable to use the compact QgsProjectionSelectionWidget widget.
- See also
- QgsProjectionSelectionDialog.
-
QgsProjectionSelectionWidget
- Since
- QGIS 3.0
Definition at line 39 of file qgsprojectionselectiontreewidget.h.
◆ QgsProjectionSelectionTreeWidget()
QgsProjectionSelectionTreeWidget::QgsProjectionSelectionTreeWidget |
( |
QWidget * |
parent = nullptr | ) |
|
◆ ~QgsProjectionSelectionTreeWidget()
QgsProjectionSelectionTreeWidget::~QgsProjectionSelectionTreeWidget |
( |
| ) |
|
|
override |
◆ crs()
◆ crsSelected
void QgsProjectionSelectionTreeWidget::crsSelected |
( |
| ) |
|
|
signal |
Emitted when a projection is selected in the widget.
◆ hasValidSelection()
bool QgsProjectionSelectionTreeWidget::hasValidSelection |
( |
| ) |
const |
Returns true
if the current selection in the widget is a valid choice.
Valid selections include any projection and also the "no/invalid projection" option (if setShowNoProjection() was called). Invalid selections are the group headers (such as "Geographic Coordinate Systems")
Definition at line 442 of file qgsprojectionselectiontreewidget.cpp.
◆ hasValidSelectionChanged
void QgsProjectionSelectionTreeWidget::hasValidSelectionChanged |
( |
bool |
isValid | ) |
|
|
signal |
Emitted when the selection in the tree is changed from a valid selection to an invalid selection, or vice-versa.
- Since
- QGIS 3.18
◆ initialized
void QgsProjectionSelectionTreeWidget::initialized |
( |
| ) |
|
|
signal |
Notifies others that the widget is now fully initialized, including deferred selection of projection.
- Since
- QGIS 2.4
◆ previewRect
QgsRectangle QgsProjectionSelectionTreeWidget::previewRect |
( |
| ) |
const |
|
slot |
◆ projectionDoubleClicked
void QgsProjectionSelectionTreeWidget::projectionDoubleClicked |
( |
| ) |
|
|
signal |
Emitted when a projection is double clicked in the list.
- Since
- QGIS 2.14
◆ pushProjectionToFront
void QgsProjectionSelectionTreeWidget::pushProjectionToFront |
( |
| ) |
|
|
slot |
◆ resizeEvent()
void QgsProjectionSelectionTreeWidget::resizeEvent |
( |
QResizeEvent * |
event | ) |
|
|
overrideprotected |
◆ setCrs
◆ setNotSetText()
void QgsProjectionSelectionTreeWidget::setNotSetText |
( |
const QString & |
text | ) |
|
◆ setOgcWmsCrsFilter
void QgsProjectionSelectionTreeWidget::setOgcWmsCrsFilter |
( |
const 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 behavior is undefined if it is called after the widget is shown.
Definition at line 464 of file qgsprojectionselectiontreewidget.cpp.
◆ setPreviewRect
void QgsProjectionSelectionTreeWidget::setPreviewRect |
( |
const QgsRectangle & |
rect | ) |
|
|
slot |
◆ setShowBoundsMap()
void QgsProjectionSelectionTreeWidget::setShowBoundsMap |
( |
bool |
show | ) |
|
◆ setShowNoProjection()
void QgsProjectionSelectionTreeWidget::setShowNoProjection |
( |
bool |
show | ) |
|
◆ showBoundsMap()
bool QgsProjectionSelectionTreeWidget::showBoundsMap |
( |
| ) |
const |
◆ showEvent()
void QgsProjectionSelectionTreeWidget::showEvent |
( |
QShowEvent * |
event | ) |
|
|
overrideprotected |
◆ showNoProjection()
bool QgsProjectionSelectionTreeWidget::showNoProjection |
( |
| ) |
const |
The documentation for this class was generated from the following files: