File: qgsrangeslider.sip.in

package info (click to toggle)
qgis 3.40.10%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,183,672 kB
  • sloc: cpp: 1,595,771; python: 372,544; xml: 23,474; sh: 3,761; perl: 3,664; ansic: 2,257; sql: 2,137; yacc: 1,068; lex: 577; javascript: 540; lisp: 411; makefile: 161
file content (325 lines) | stat: -rw-r--r-- 8,186 bytes parent folder | download | duplicates (12)
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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/gui/qgsrangeslider.h                                             *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/




class QgsRangeSlider : QWidget
{
%Docstring(signature="appended")
A slider control with two interactive endpoints, for interactive
selection of a range of values.

.. versionadded:: 3.18
%End

%TypeHeaderCode
#include "qgsrangeslider.h"
%End
  public:
    QgsRangeSlider( QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsRangeSlider, with the specified ``parent`` widget.
%End

    QgsRangeSlider( Qt::Orientation orientation, QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsRangeSlider, with the specified ``parent`` widget.

The ``orientation`` parameter determines whether the slider is
horizontal or vertical.
%End

    int minimum() const;
%Docstring
Returns the minimum value allowed by the widget.

.. seealso:: :py:func:`setMinimum`

.. seealso:: :py:func:`maximum`
%End

    int maximum() const;
%Docstring
Returns the maximum value allowed by the widget.

.. seealso:: :py:func:`setMaximum`

.. seealso:: :py:func:`minimum`
%End

    int lowerValue() const;
%Docstring
Returns the lower value for the range selected in the widget.

.. seealso:: :py:func:`upperValue`

.. seealso:: :py:func:`setLowerValue`
%End

    int upperValue() const;
%Docstring
Returns the upper value for the range selected in the widget.

.. seealso:: :py:func:`lowerValue`

.. seealso:: :py:func:`setUpperValue`
%End

    void setTickPosition( QSlider::TickPosition position );
%Docstring
Sets the ``position`` of the tick marks shown in the widget.

.. seealso:: :py:func:`tickPosition`
%End

    QSlider::TickPosition tickPosition() const;
%Docstring
Returns the position of the tick marks shown in the widget.

.. seealso:: :py:func:`setTickPosition`
%End

    void setTickInterval( int interval );
%Docstring
Sets the ``interval`` for tick marks shown in the widget.

.. seealso:: :py:func:`tickInterval`
%End

    int tickInterval() const;
%Docstring
Returns the interval for tick marks shown in the widget.

.. seealso:: :py:func:`setTickInterval`
%End

    void setOrientation( Qt::Orientation orientation );
%Docstring
Sets the ``orientation`` of the slider.

.. seealso:: :py:func:`orientation`
%End

    Qt::Orientation orientation() const;
%Docstring
Returns the orientation of the slider.

.. seealso:: :py:func:`setOrientation`
%End

    bool flippedDirection() const;
%Docstring
Returns ``True`` if the slider has its values flipped.

If this property is ``False`` (the default), the minimum and maximum
will be shown in its classic position for the widget. If the value is
``True``, the minimum and maximum appear at their opposite location.

.. seealso:: :py:func:`setFlippedDirection`
%End

    void setFlippedDirection( bool flipped );
%Docstring
Sets whether the slider has its values ``flipped``.

If this property is ``False`` (the default), the minimum and maximum
will be shown in its classic position for the widget. If the value is
``True``, the minimum and maximum appear at their opposite location.
(i.e. minimum at the bottom of a vertical slider, maximum at the top of
a vertical slider).

.. seealso:: :py:func:`flippedDirection`
%End

    virtual void paintEvent( QPaintEvent *event );

    virtual void mousePressEvent( QMouseEvent *event );

    virtual void mouseMoveEvent( QMouseEvent *event );

    virtual void mouseReleaseEvent( QMouseEvent *event );

    virtual void keyPressEvent( QKeyEvent *event );

    virtual QSize sizeHint() const;

    virtual QSize minimumSizeHint() const;


    int singleStep() const;
%Docstring
Returns the single step value for the widget.

This corresponds to the smaller increment or decrement applied when the
user presses an arrow key.

.. seealso:: :py:func:`setSingleStep`

.. seealso:: :py:func:`pageStep`
%End

    int pageStep() const;
%Docstring
Returns the page step value for the widget.

This corresponds to the larger increment or decrement applied when the
user presses the page increment key (usually PageUp or PageDown).

.. seealso:: :py:func:`setPageStep`

.. seealso:: :py:func:`singleStep`
%End

    int fixedRangeSize() const;
%Docstring
Returns the slider's fixed range size, or -1 if not set.

If a fixed range size is set then moving either the lower or upper
slider will automatically move the other slider accordingly, in order to
keep the selected range at the specified fixed size.

.. seealso:: :py:func:`setFixedRangeSize`

.. versionadded:: 3.38
%End

    void setFixedRangeSize( int size );
%Docstring
Sets the slider's fixed range ``size``. Set to -1 if no fixed size is
desired.

If a fixed range size is set then moving either the lower or upper
slider will automatically move the other slider accordingly, in order to
keep the selected range at the specified fixed size.

.. seealso:: :py:func:`fixedRangeSize`

.. versionadded:: 3.38
%End

  public slots:

    void setMaximum( int maximum );
%Docstring
Sets the ``maximum`` value allowed in the widget.

.. seealso:: :py:func:`maximum`

.. seealso:: :py:func:`setMinimum`
%End

    void setMinimum( int minimum );
%Docstring
Sets the ``minimum`` value allowed in the widget.

.. seealso:: :py:func:`minimum`

.. seealso:: :py:func:`setMaximum`
%End

    void setRangeLimits( int minimum, int maximum );
%Docstring
Sets the ``minimum`` and ``maximum`` range limits for values allowed in
the widget.

.. seealso:: :py:func:`setMinimum`

.. seealso:: :py:func:`setMaximum`
%End

    void setLowerValue( int value );
%Docstring
Sets the lower ``value`` for the range currently selected in the widget.

.. seealso:: :py:func:`lowerValue`

.. seealso:: :py:func:`setRange`

.. seealso:: :py:func:`setUpperValue`
%End

    void setUpperValue( int value );
%Docstring
Sets the upper ``value`` for the range currently selected in the widget.

.. seealso:: :py:func:`upperValue`

.. seealso:: :py:func:`setRange`

.. seealso:: :py:func:`setLowerValue`
%End

    void setRange( int lower, int upper );
%Docstring
Sets the current range selected in the widget.

.. seealso:: :py:func:`setLowerValue`

.. seealso:: :py:func:`setUpperValue`
%End

    void setSingleStep( int step );
%Docstring
Sets the single ``step`` value for the widget.

This corresponds to the smaller increment or decrement applied when the
user presses an arrow key.

.. seealso:: :py:func:`singleStep`

.. seealso:: :py:func:`pageStep`
%End

    void setPageStep( int step );
%Docstring
Sets the page ``step`` value for the widget.

This corresponds to the larger increment or decrement applied when the
user presses the page increment key (usually PageUp or PageDown).

.. seealso:: :py:func:`pageStep`

.. seealso:: :py:func:`setSingleStep`
%End

    virtual bool event( QEvent *event );


  signals:

    void rangeChanged( int minimum, int maximum );
%Docstring
Emitted when the range selected in the widget is changed.
%End

    void rangeLimitsChanged( int minimum, int maximum );
%Docstring
Emitted when the limits of values allowed in the widget is changed.
%End

    void fixedRangeSizeChanged( int size );
%Docstring
Emitted when the widget's fixed range size is changed.

.. seealso:: :py:func:`fixedRangeSize`

.. seealso:: :py:func:`setFixedRangeSize`

.. versionadded:: 3.38
%End

};

/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/gui/qgsrangeslider.h                                             *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/