|
| 1 | +/************************************************************************ |
| 2 | + * This file has been generated automatically from * |
| 3 | + * * |
| 4 | + * src/gui/qgsscalerangewidget.h * |
| 5 | + * * |
| 6 | + * Do not edit manually ! Edit header and run scripts/sipify.pl again * |
| 7 | + ************************************************************************/ |
| 8 | + |
| 9 | + |
| 10 | + |
1 | 11 |
|
2 | 12 | class QgsScaleRangeWidget : QWidget
|
3 | 13 | {
|
| 14 | +%Docstring |
| 15 | + A widget allowing entry of a range of map scales, e.g. minimum scale and maximum scale. |
| 16 | +%End |
| 17 | + |
4 | 18 | %TypeHeaderCode
|
5 | 19 | #include "qgsscalerangewidget.h"
|
6 | 20 | %End
|
7 |
| - |
8 | 21 | public:
|
9 |
| - explicit QgsScaleRangeWidget( QWidget *parent /TransferThis/ = 0 ); |
10 |
| - ~QgsScaleRangeWidget(); |
11 |
| - |
12 |
| - //! set the map canvas which will be used for the current scale buttons |
13 |
| - /** |
14 |
| - * @brief setMapCanvas set the map canvas which will be used for the current scale buttons |
15 |
| - * if not set, the buttons are hidden. |
16 |
| - */ |
17 |
| - void setMapCanvas( QgsMapCanvas *mapCanvas ); |
18 | 22 |
|
19 |
| - //! return the minimum scale |
20 |
| - double minimumScale(); |
| 23 | + explicit QgsScaleRangeWidget( QWidget *parent /TransferThis/ = 0 ); |
| 24 | +%Docstring |
| 25 | + Constructor for QgsScaleRangeWidget. |
| 26 | +%End |
21 | 27 |
|
22 |
| - //! return the maximum scale |
23 |
| - double maximumScale(); |
| 28 | + void setMapCanvas( QgsMapCanvas *canvas ); |
| 29 | +%Docstring |
| 30 | + Sets the map ``canvas`` which will be used for the current scale buttons. |
| 31 | + If not set, the buttons are hidden. |
| 32 | +%End |
24 | 33 |
|
25 |
| - //! return the minimum scale denominator ( = 1 / maximum scale ) |
26 |
| - double minimumScaleDenom(); |
| 34 | + double minimumScale() const; |
| 35 | +%Docstring |
| 36 | + Returns the selected minimum scale, or 0 if minimum scale is not set. |
| 37 | + The scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map. |
| 38 | +.. seealso:: maximumScale() |
| 39 | +.. seealso:: setMinimumScale() |
| 40 | + :rtype: float |
| 41 | +%End |
27 | 42 |
|
28 |
| - //! return the maximum scale denominator ( = 1 / minimum scale ) |
29 |
| - double maximumScaleDenom(); |
| 43 | + double maximumScale() const; |
| 44 | +%Docstring |
| 45 | + Returns the selected maximum scale, or 0 if maximum scale is not set. |
| 46 | + The scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map. |
| 47 | +.. seealso:: minimumScale() |
| 48 | +.. seealso:: setMaximumScale() |
| 49 | + :rtype: float |
| 50 | +%End |
30 | 51 |
|
31 |
| - //! call to reload the project scales and apply them to the 2 scales combo boxes |
32 | 52 | void reloadProjectScales();
|
| 53 | +%Docstring |
| 54 | + Call to reload the preset scales from the current project and apply them to the 2 scales combo boxes. |
| 55 | +%End |
33 | 56 |
|
34 | 57 | public slots:
|
| 58 | + |
35 | 59 | void setMinimumScale( double scale );
|
| 60 | +%Docstring |
| 61 | + Set the minimum ``scale``, or 0 to indicate the minimum is not set. |
| 62 | + The scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map. |
| 63 | +.. seealso:: minimumScale() |
| 64 | +.. seealso:: setMaximumScale() |
| 65 | +.. seealso:: setScaleRange() |
| 66 | +%End |
36 | 67 |
|
37 | 68 | void setMaximumScale( double scale );
|
| 69 | +%Docstring |
| 70 | + Set the maximum ``scale``, or 0 to indicate the minimum is not set. |
| 71 | + The scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map. |
| 72 | +.. seealso:: maximumScale() |
| 73 | +.. seealso:: setMinimumScale() |
| 74 | +.. seealso:: setScaleRange() |
| 75 | +%End |
38 | 76 |
|
39 | 77 | void setScaleRange( double min, double max );
|
| 78 | +%Docstring |
| 79 | + Sets the scale range, from ``min`` scale to ``max`` scale. |
| 80 | + The scale values indicates the scale denominator, e.g. 1000.0 for a 1:1000 map, |
| 81 | + or 0 to indicate not set. |
| 82 | +.. seealso:: setMinimumScale() |
| 83 | +.. seealso:: setMaximumScale() |
| 84 | +%End |
40 | 85 |
|
41 | 86 | signals:
|
42 | 87 |
|
43 |
| - /** Emitted when the scale range set in the widget is changed. |
44 |
| - * @param min minimum scale |
45 |
| - * @param max maximum scale |
46 |
| - * @note added in QGIS 2.16 |
47 |
| - */ |
48 | 88 | void rangeChanged( double min, double max );
|
| 89 | +%Docstring |
| 90 | + Emitted when the scale range set in the widget is changed. |
| 91 | + The scale values indicates the scale denominator, e.g. 1000.0 for a 1:1000 map, |
| 92 | + or 0 to indicate not set. |
| 93 | +.. versionadded:: 2.16 |
| 94 | +%End |
| 95 | + |
49 | 96 | };
|
| 97 | + |
| 98 | +/************************************************************************ |
| 99 | + * This file has been generated automatically from * |
| 100 | + * * |
| 101 | + * src/gui/qgsscalerangewidget.h * |
| 102 | + * * |
| 103 | + * Do not edit manually ! Edit header and run scripts/sipify.pl again * |
| 104 | + ************************************************************************/ |
0 commit comments