-
-
Notifications
You must be signed in to change notification settings - Fork 3k
/
qgsprojectionselectiontreewidget.sip.in
201 lines (139 loc) · 5.57 KB
/
qgsprojectionselectiontreewidget.sip.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsprojectionselectiontreewidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsProjectionSelectionTreeWidget : QWidget
{
%Docstring(signature="appended")
A widget for selecting a coordinate reference system from a tree.
This widget implements a tree view of projections, as seen in the
:py:class:`QgsProjectionSelectionDialog` dialog. In most cases it is more
suitable to use the compact :py:class:`QgsProjectionSelectionWidget` widget.
.. seealso:: :py:class:`QgsProjectionSelectionDialog`
.. seealso:: :py:class:`QgsProjectionSelectionWidget`
.. versionadded:: 3.0
%End
%TypeHeaderCode
#include "qgsprojectionselectiontreewidget.h"
%End
public:
QgsProjectionSelectionTreeWidget( QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsProjectionSelectionTreeWidget.
%End
~QgsProjectionSelectionTreeWidget();
QgsCoordinateReferenceSystem crs() const;
%Docstring
Returns the CRS currently selected in the widget.
.. seealso:: :py:func:`setCrs`
.. versionadded:: 3.0
%End
void setShowNoProjection( bool show );
%Docstring
Sets whether a "no/invalid" projection option should be shown. If this
option is selected, calling :py:func:`~QgsProjectionSelectionTreeWidget.crs` will return an invalid :py:class:`QgsCoordinateReferenceSystem`.
.. seealso:: :py:func:`showNoProjection`
.. versionadded:: 3.0
%End
void setShowBoundsMap( bool show );
%Docstring
Sets whether to show the bounds preview map.
.. seealso:: :py:func:`showBoundsMap`
.. versionadded:: 3.0
%End
bool showNoProjection() const;
%Docstring
Returns whether the "no/invalid" projection option is shown. If this
option is selected, calling :py:func:`~QgsProjectionSelectionTreeWidget.crs` will return an invalid :py:class:`QgsCoordinateReferenceSystem`.
.. seealso:: :py:func:`setShowNoProjection`
.. versionadded:: 3.0
%End
void setNotSetText( const QString &text );
%Docstring
Sets the text to show for the not set option. Note that this option is not shown
by default and must be set visible by calling :py:func:`~QgsProjectionSelectionTreeWidget.setShowNoProjection`.
.. versionadded:: 3.16
%End
bool showBoundsMap() const;
%Docstring
Returns whether the bounds preview map is shown.
.. seealso:: :py:func:`setShowBoundsMap`
.. versionadded:: 3.0
%End
bool hasValidSelection() const;
%Docstring
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 :py:func:`~QgsProjectionSelectionTreeWidget.setShowNoProjection` was called). Invalid selections are the group
headers (such as "Geographic Coordinate Systems")
%End
public slots:
void setCrs( const QgsCoordinateReferenceSystem &crs );
%Docstring
Sets the initial ``crs`` to show within the dialog.
.. seealso:: :py:func:`crs`
.. versionadded:: 3.0
%End
void setPreviewRect( const QgsRectangle &rect );
%Docstring
Sets the initial "preview" rectangle for the bounds overview map.
.. seealso:: :py:func:`previewRect`
.. versionadded:: 3.0
%End
QgsRectangle previewRect() const;
%Docstring
The initial "preview" rectangle for the bounds overview map.
.. seealso:: :py:func:`previewRect`
.. versionadded:: 3.0
%End
void setOgcWmsCrsFilter( const QSet<QString> &crsFilter );
%Docstring
filters this widget by the given CRSs
Sets this widget to filter the available projections to those listed
by the given Coordinate Reference Systems.
:param 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.
%End
void pushProjectionToFront() /Deprecated/;
%Docstring
Marks the current selected projection for push to front of recent projections list.
.. deprecated::
Has no effect since QGIS 3.20
%End
signals:
void crsSelected();
%Docstring
Emitted when a projection is selected in the widget.
%End
void initialized();
%Docstring
Notifies others that the widget is now fully initialized, including deferred selection of projection.
.. versionadded:: 2.4
%End
void projectionDoubleClicked();
%Docstring
Emitted when a projection is double clicked in the list.
.. versionadded:: 2.14
%End
void hasValidSelectionChanged( bool isValid );
%Docstring
Emitted when the selection in the tree is changed from a valid selection to an invalid selection, or vice-versa.
.. versionadded:: 3.18
%End
protected:
virtual void showEvent( QShowEvent *event );
virtual void resizeEvent( QResizeEvent *event );
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsprojectionselectiontreewidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/