Skip to content

Commit 6eb3570

Browse files
Gustry3nids
authored andcommitted
sipify
1 parent 52a8be6 commit 6eb3570

File tree

4 files changed

+210
-67
lines changed

4 files changed

+210
-67
lines changed

python/auto_sip.blacklist

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,8 @@ gui/layertree/qgslayertreeembeddedwidgetregistry.sip
193193
gui/layertree/qgslayertreemapcanvasbridge.sip
194194
gui/layertree/qgslayertreeview.sip
195195
gui/layertree/qgslayertreeviewdefaultactions.sip
196-
gui/raster/qgsmultibandcolorrendererwidget.sip
197196
gui/raster/qgspalettedrendererwidget.sip
198197
gui/raster/qgsrasterhistogramwidget.sip
199-
gui/raster/qgsrasterminmaxwidget.sip
200-
gui/raster/qgsrasterrendererwidget.sip
201198
gui/raster/qgssinglebandgrayrendererwidget.sip
202199
gui/raster/qgssinglebandpseudocolorrendererwidget.sip
203200
gui/raster/qgsrendererrasterpropertieswidget.sip
Lines changed: 46 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,61 @@
1+
/************************************************************************
2+
* This file has been generated automatically from *
3+
* *
4+
* src/gui/raster/qgsmultibandcolorrendererwidget.h *
5+
* *
6+
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
7+
************************************************************************/
8+
9+
10+
11+
12+
113
class QgsMultiBandColorRendererWidget: QgsRasterRendererWidget
214
{
15+
316
%TypeHeaderCode
4-
#include <qgsmultibandcolorrendererwidget.h>
17+
#include "qgsmultibandcolorrendererwidget.h"
518
%End
6-
719
public:
820
QgsMultiBandColorRendererWidget( QgsRasterLayer *layer, const QgsRectangle &extent = QgsRectangle() );
921
static QgsRasterRendererWidget *create( QgsRasterLayer *layer, const QgsRectangle &extent );
10-
~QgsMultiBandColorRendererWidget();
22+
%Docstring
23+
:rtype: QgsRasterRendererWidget
24+
%End
25+
26+
virtual QgsRasterRenderer *renderer();
27+
28+
virtual void setMapCanvas( QgsMapCanvas *canvas );
1129

12-
QgsRasterRenderer *renderer();
13-
void setMapCanvas( QgsMapCanvas *canvas );
1430

1531
void setFromRenderer( const QgsRasterRenderer *r );
1632

17-
QString min( int index = 0 );
18-
QString max( int index = 0 );
19-
void setMin( const QString &value, int index = 0 );
20-
void setMax( const QString &value, int index = 0 );
21-
int selectedBand( int index = 0 );
22-
void doComputations();
33+
virtual QString min( int index = 0 );
34+
35+
virtual QString max( int index = 0 );
36+
37+
virtual void setMin( const QString &value, int index = 0 );
38+
39+
virtual void setMax( const QString &value, int index = 0 );
40+
41+
virtual int selectedBand( int index = 0 );
42+
43+
virtual void doComputations();
44+
45+
virtual QgsRasterMinMaxWidget *minMaxWidget();
2346

2447
public slots:
2548
void loadMinMax( int bandNo, double min, double max );
49+
%Docstring
50+
called when new min/max values are loaded
51+
%End
52+
2653
};
54+
55+
/************************************************************************
56+
* This file has been generated automatically from *
57+
* *
58+
* src/gui/raster/qgsmultibandcolorrendererwidget.h *
59+
* *
60+
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
61+
************************************************************************/
Lines changed: 91 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,125 @@
1+
/************************************************************************
2+
* This file has been generated automatically from *
3+
* *
4+
* src/gui/raster/qgsrasterminmaxwidget.h *
5+
* *
6+
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
7+
************************************************************************/
8+
9+
10+
11+
12+
13+
114
class QgsRasterMinMaxWidget: QWidget
215
{
16+
317
%TypeHeaderCode
4-
#include <qgsrasterminmaxwidget.h>
18+
#include "qgsrasterminmaxwidget.h"
519
%End
620
public:
721
QgsRasterMinMaxWidget( QgsRasterLayer *layer, QWidget *parent /TransferThis/ = 0 );
8-
~QgsRasterMinMaxWidget();
922

10-
/** Sets the extent to use for minimum and maximum value calculation.
11-
* @param extent extent in raster layer's CRS
12-
* @note if a map canvas is set using setMapCanvas(), its extent will take
13-
* precedence over any extent set using this method.
14-
*/
1523
void setExtent( const QgsRectangle &extent );
24+
%Docstring
25+
Sets the extent to use for minimum and maximum value calculation.
26+
\param extent extent in raster layer's CRS
27+
.. note::
28+
29+
if a map canvas is set using setMapCanvas(), its extent will take
30+
precedence over any extent set using this method.
31+
%End
1632

17-
/** Sets the map canvas associated with the widget. This allows the widget to retrieve the current
18-
* map extent from the canvas. If a canvas is set it will take precedence over any extent
19-
* set from calling setExtent().
20-
* @param canvas map canvas
21-
* @see mapCanvas()
22-
* @note added in QGIS 2.16
23-
*/
2433
void setMapCanvas( QgsMapCanvas *canvas );
34+
%Docstring
35+
Sets the map canvas associated with the widget. This allows the widget to retrieve the current
36+
map extent from the canvas. If a canvas is set it will take precedence over any extent
37+
set from calling setExtent().
38+
\param canvas map canvas
39+
.. seealso:: mapCanvas()
40+
.. versionadded:: 2.16
41+
%End
2542

26-
/** Returns the map canvas associated with the widget.
27-
* @see setMapCanvas()
28-
* @see canvasExtent()
29-
* @note added in QGIS 2.16
30-
*/
3143
QgsMapCanvas *mapCanvas();
44+
%Docstring
45+
Returns the map canvas associated with the widget.
46+
.. seealso:: setMapCanvas()
47+
.. seealso:: canvasExtent()
48+
.. versionadded:: 2.16
49+
:rtype: QgsMapCanvas
50+
%End
3251

3352
void setBands( const QList<int> &bands );
34-
/** Return the extent selected by the user.
35-
Either an empty extent for 'full' or the current visible extent. */
53+
3654
QgsRectangle extent();
37-
/** Return the selected sample size. */
55+
%Docstring
56+
Return the extent selected by the user.
57+
Either an empty extent for 'full' or the current visible extent.
58+
:rtype: QgsRectangle
59+
%End
60+
3861
int sampleSize();
62+
%Docstring
63+
Return the selected sample size.
64+
:rtype: int
65+
%End
3966

40-
//! \brief Set the "source" of min/max values.
41-
void setFromMinMaxOrigin( const QgsRasterMinMaxOrigin& );
67+
void setFromMinMaxOrigin( const QgsRasterMinMaxOrigin & );
68+
%Docstring
69+
Set the "source" of min/max values.
70+
%End
4271

43-
//! \brief Return a QgsRasterMinMaxOrigin object with the widget values.
4472
QgsRasterMinMaxOrigin minMaxOrigin();
73+
%Docstring
74+
Return a QgsRasterMinMaxOrigin object with the widget values.
75+
:rtype: QgsRasterMinMaxOrigin
76+
%End
4577

46-
//! Hide updated extent radio button
4778
void hideUpdatedExtent();
79+
%Docstring
80+
Hide updated extent choice
81+
%End
4882

49-
//! Load programmatically with current values
5083
void doComputations();
84+
%Docstring
85+
Load programmatically with current values
86+
%End
5187

52-
//! Uncheck cumulative cut, min/max, std-dev radio buttons
5388
void userHasSetManualMinMaxValues();
89+
%Docstring
90+
Uncheck cumulative cut, min/max, std-dev radio buttons
91+
%End
5492

55-
//! Return if the widget is collaped.
5693
bool isCollapsed() const;
94+
%Docstring
95+
Return if the widget is collaped.
96+
:rtype: bool
97+
%End
5798

58-
//! Set collapsed state of widget
59-
void setCollapsed(bool b);
99+
void setCollapsed( bool b );
100+
%Docstring
101+
Set collapsed state of widget
102+
%End
60103

61104
signals:
62-
/**
63-
* Emitted when something on the widget has changed.
64-
* All widgets will fire this event to notify of an internal change.
65-
*/
105+
66106
void widgetChanged();
107+
%Docstring
108+
Emitted when something on the widget has changed.
109+
All widgets will fire this event to notify of an internal change.
110+
%End
67111

68-
//! signal emitted when new min/max values are computed from statistics.
69112
void load( int bandNo, double min, double max );
113+
%Docstring
114+
signal emitted when new min/max values are computed from statistics.
115+
%End
116+
70117
};
118+
119+
/************************************************************************
120+
* This file has been generated automatically from *
121+
* *
122+
* src/gui/raster/qgsrasterminmaxwidget.h *
123+
* *
124+
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
125+
************************************************************************/
Lines changed: 73 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,103 @@
1+
/************************************************************************
2+
* This file has been generated automatically from *
3+
* *
4+
* src/gui/raster/qgsrasterrendererwidget.h *
5+
* *
6+
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
7+
************************************************************************/
8+
9+
10+
11+
12+
13+
114
class QgsRasterRendererWidget: QWidget
215
{
16+
317
%TypeHeaderCode
4-
#include <qgsrasterrendererwidget.h>
18+
#include "qgsrasterrendererwidget.h"
519
%End
620
public:
21+
722
QgsRasterRendererWidget( QgsRasterLayer *layer, const QgsRectangle &extent );
8-
virtual ~QgsRasterRendererWidget();
923

1024
virtual QgsRasterRenderer *renderer() = 0 /Factory/;
25+
%Docstring
26+
:rtype: QgsRasterRenderer
27+
%End
1128

1229
void setRasterLayer( QgsRasterLayer *layer );
1330
const QgsRasterLayer *rasterLayer() const;
31+
%Docstring
32+
:rtype: QgsRasterLayer
33+
%End
1434

15-
/** Sets the map canvas associated with the widget. This allows the widget to retrieve the current
16-
* map extent and other properties from the canvas.
17-
* @param canvas map canvas
18-
* @see mapCanvas()
19-
* @note added in QGIS 2.16
20-
*/
2135
virtual void setMapCanvas( QgsMapCanvas *canvas );
36+
%Docstring
37+
Sets the map canvas associated with the widget. This allows the widget to retrieve the current
38+
map extent and other properties from the canvas.
39+
\param canvas map canvas
40+
.. seealso:: mapCanvas()
41+
.. versionadded:: 2.16
42+
%End
2243

23-
/** Returns the map canvas associated with the widget.
24-
* @see setMapCanvas()
25-
* @see canvasExtent()
26-
* @note added in QGIS 2.16
27-
*/
2844
QgsMapCanvas *mapCanvas();
45+
%Docstring
46+
Returns the map canvas associated with the widget.
47+
.. seealso:: setMapCanvas()
48+
.. seealso:: canvasExtent()
49+
.. versionadded:: 2.16
50+
:rtype: QgsMapCanvas
51+
%End
2952

3053
virtual QString min( int index = 0 );
54+
%Docstring
55+
:rtype: str
56+
%End
3157
virtual QString max( int index = 0 );
58+
%Docstring
59+
:rtype: str
60+
%End
3261
virtual void setMin( const QString &value, int index = 0 );
3362
virtual void setMax( const QString &value, int index = 0 );
3463
virtual QString stdDev();
64+
%Docstring
65+
:rtype: str
66+
%End
3567
virtual void setStdDev( const QString &value );
3668
virtual int selectedBand( int index = 0 );
69+
%Docstring
70+
:rtype: int
71+
%End
72+
3773
virtual void doComputations();
74+
%Docstring
75+
Load programmatically with current values
76+
%End
77+
3878
virtual QgsRasterMinMaxWidget *minMaxWidget();
79+
%Docstring
80+
Return min/max widget when it exists.
81+
:rtype: QgsRasterMinMaxWidget
82+
%End
3983

4084
signals:
41-
/**
42-
* Emitted when something on the widget has changed.
43-
* All widgets will fire this event to notify of an internal change.
44-
*/
85+
4586
void widgetChanged();
87+
%Docstring
88+
Emitted when something on the widget has changed.
89+
All widgets will fire this event to notify of an internal change.
90+
%End
91+
92+
protected:
93+
4694

4795
};
96+
97+
/************************************************************************
98+
* This file has been generated automatically from *
99+
* *
100+
* src/gui/raster/qgsrasterrendererwidget.h *
101+
* *
102+
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
103+
************************************************************************/

0 commit comments

Comments
 (0)