|
1 |
| -/** |
2 |
| - * @brief The QgsMapLayerComboBox class is a combo box which displays the list of layers |
3 |
| - * @note added in 2.3 |
4 |
| - */ |
| 1 | +/************************************************************************ |
| 2 | + * This file has been generated automatically from * |
| 3 | + * * |
| 4 | + * src/gui/qgsmaplayercombobox.h * |
| 5 | + * * |
| 6 | + * Do not edit manually ! Edit header and run scripts/sipify.pl again * |
| 7 | + ************************************************************************/ |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
5 | 14 | class QgsMapLayerComboBox : QComboBox
|
6 | 15 | {
|
| 16 | +%Docstring |
| 17 | + The QgsMapLayerComboBox class is a combo box which displays the list of layers |
| 18 | +.. versionadded:: 2.3 |
| 19 | +%End |
7 | 20 |
|
8 | 21 | %TypeHeaderCode
|
9 | 22 | #include "qgsmaplayercombobox.h"
|
10 | 23 | %End
|
11 |
| - |
12 | 24 | public:
|
13 |
| - /** |
14 |
| - * @brief QgsMapLayerComboBox creates a combo box to dislpay the list of layers (currently in the registry). |
15 |
| - * The layers can be filtered and/or ordered. |
16 |
| - */ |
| 25 | + |
17 | 26 | explicit QgsMapLayerComboBox( QWidget *parent /TransferThis/ = 0 );
|
| 27 | +%Docstring |
| 28 | + QgsMapLayerComboBox creates a combo box to dislpay the list of layers (currently in the registry). |
| 29 | + The layers can be filtered and/or ordered. |
| 30 | +%End |
18 | 31 |
|
19 |
| - //! setFilters allows fitering according to layer type and/or geometry type. |
20 |
| - void setFilters( const QgsMapLayerProxyModel::Filters& filters ); |
| 32 | + void setFilters( QgsMapLayerProxyModel::Filters filters ); |
| 33 | +%Docstring |
| 34 | +setFilters allows fitering according to layer type and/or geometry type. |
| 35 | +%End |
21 | 36 |
|
22 |
| - //! currently used filter on list layers |
23 | 37 | QgsMapLayerProxyModel::Filters filters() const;
|
| 38 | +%Docstring |
| 39 | +currently used filter on list layers |
| 40 | + :rtype: QgsMapLayerProxyModel.Filters |
| 41 | +%End |
24 | 42 |
|
25 |
| - //! except a list of layers not to be listed |
26 |
| - void setExceptedLayerList( const QList<QgsMapLayer*>& layerList ); |
| 43 | + void setExceptedLayerList( const QList<QgsMapLayer *> &layerList ); |
| 44 | +%Docstring |
| 45 | +except a list of layers not to be listed |
| 46 | +%End |
27 | 47 |
|
28 |
| - //! returns the list of excepted layers |
29 |
| - QList<QgsMapLayer*> exceptedLayerList() const; |
| 48 | + QList<QgsMapLayer *> exceptedLayerList() const; |
| 49 | +%Docstring |
| 50 | +returns the list of excepted layers |
| 51 | + :rtype: list of QgsMapLayer |
| 52 | +%End |
30 | 53 |
|
31 |
| - /** |
32 |
| - * Sets a list of data providers which should be excluded from the combobox. |
33 |
| - * @note added in QGIS 3.0 |
34 |
| - * @see excludedProviders() |
35 |
| - */ |
36 |
| - void setExcludedProviders( const QStringList& providers ); |
| 54 | + void setExcludedProviders( const QStringList &providers ); |
| 55 | +%Docstring |
| 56 | + Sets a list of data providers which should be excluded from the combobox. |
| 57 | +.. versionadded:: 3.0 |
| 58 | + \see excludedProviders() |
| 59 | +%End |
37 | 60 |
|
38 |
| - /** |
39 |
| - * Returns the list of data providers which are excluded from the combobox. |
40 |
| - * @see setExcludedProviders() |
41 |
| - * @note added in QGIS 3.0 |
42 |
| - */ |
43 | 61 | QStringList excludedProviders() const;
|
| 62 | +%Docstring |
| 63 | + Returns the list of data providers which are excluded from the combobox. |
| 64 | + \see setExcludedProviders() |
| 65 | +.. versionadded:: 3.0 |
| 66 | + :rtype: list of str |
| 67 | +%End |
44 | 68 |
|
45 |
| - /** |
46 |
| - * Sets whether an optional empty layer ("not set") option is shown in the combo box. |
47 |
| - * @see allowEmptyLayer() |
48 |
| - * @note added in QGIS 3.0 |
49 |
| - */ |
50 | 69 | void setAllowEmptyLayer( bool allowEmpty );
|
| 70 | +%Docstring |
| 71 | + Sets whether an optional empty layer ("not set") option is shown in the combo box. |
| 72 | + \see allowEmptyLayer() |
| 73 | +.. versionadded:: 3.0 |
| 74 | +%End |
51 | 75 |
|
52 |
| - /** |
53 |
| - * Returns true if the combo box allows the empty layer ("not set") choice. |
54 |
| - * @see setAllowEmptyLayer() |
55 |
| - * @note added in QGIS 3.0 |
56 |
| - */ |
57 | 76 | bool allowEmptyLayer() const;
|
| 77 | +%Docstring |
| 78 | + Returns true if the combo box allows the empty layer ("not set") choice. |
| 79 | + \see setAllowEmptyLayer() |
| 80 | +.. versionadded:: 3.0 |
| 81 | + :rtype: bool |
| 82 | +%End |
58 | 83 |
|
59 |
| - /** |
60 |
| - * Sets whether the CRS of layers is also included in the combo box text. |
61 |
| - * @see showCrs() |
62 |
| - * @note added in QGIS 3.0 |
63 |
| - */ |
64 | 84 | void setShowCrs( bool showCrs );
|
| 85 | +%Docstring |
| 86 | + Sets whether the CRS of layers is also included in the combo box text. |
| 87 | + \see showCrs() |
| 88 | +.. versionadded:: 3.0 |
| 89 | +%End |
65 | 90 |
|
66 |
| - /** |
67 |
| - * Returns true if the combo box shows the layer's CRS. |
68 |
| - * @see setShowCrs() |
69 |
| - * @note added in QGIS 3.0 |
70 |
| - */ |
71 | 91 | bool showCrs() const;
|
| 92 | +%Docstring |
| 93 | + Returns true if the combo box shows the layer's CRS. |
| 94 | + \see setShowCrs() |
| 95 | +.. versionadded:: 3.0 |
| 96 | + :rtype: bool |
| 97 | +%End |
| 98 | + |
| 99 | + void setAdditionalItems( const QStringList &items ); |
| 100 | +%Docstring |
| 101 | + Sets a list of additional (non map layer) items to include at the end of the combobox. |
| 102 | + These may represent additional layers such as layers which are not included in the map |
| 103 | + layer registry, or paths to layers which have not yet been loaded into QGIS. |
| 104 | + \see additionalItems() |
| 105 | +.. versionadded:: 3.0 |
| 106 | +%End |
72 | 107 |
|
73 |
| - /** |
74 |
| - * Sets a list of additional (non map layer) items to include at the end of the combobox. |
75 |
| - * These may represent additional layers such as layers which are not included in the map |
76 |
| - * layer registry, or paths to layers which have not yet been loaded into QGIS. |
77 |
| - * @see additionalItems() |
78 |
| - * @note added in QGIS 3.0 |
79 |
| - */ |
80 |
| - void setAdditionalItems( const QStringList& items ); |
81 |
| - |
82 |
| - /** |
83 |
| - * Return the list of additional (non map layer) items included at the end of the combo box. |
84 |
| - * @see setAdditionalItems() |
85 |
| - * @note added in QGIS 3.0 |
86 |
| - */ |
87 | 108 | QStringList additionalItems() const;
|
| 109 | +%Docstring |
| 110 | + Return the list of additional (non map layer) items included at the end of the combo box. |
| 111 | + \see setAdditionalItems() |
| 112 | +.. versionadded:: 3.0 |
| 113 | + :rtype: list of str |
| 114 | +%End |
88 | 115 |
|
89 |
| - /** Returns the current layer selected in the combo box. |
90 |
| - * @see layer |
91 |
| - */ |
92 |
| - QgsMapLayer* currentLayer() const; |
| 116 | + QgsMapLayer *currentLayer() const; |
| 117 | +%Docstring |
| 118 | + Returns the current layer selected in the combo box. |
| 119 | + \see layer |
| 120 | + :rtype: QgsMapLayer |
| 121 | +%End |
93 | 122 |
|
94 |
| - /** Return the layer currently shown at the specified index within the combo box. |
95 |
| - * @param layerIndex position of layer to return |
96 |
| - * @note added in QGIS 2.10 |
97 |
| - * @see currentLayer |
98 |
| - */ |
99 |
| - QgsMapLayer* layer( int layerIndex ) const; |
| 123 | + QgsMapLayer *layer( int layerIndex ) const; |
| 124 | +%Docstring |
| 125 | + Return the layer currently shown at the specified index within the combo box. |
| 126 | + \param layerIndex position of layer to return |
| 127 | +.. versionadded:: 2.10 |
| 128 | + \see currentLayer |
| 129 | + :rtype: QgsMapLayer |
| 130 | +%End |
100 | 131 |
|
101 | 132 | public slots:
|
102 |
| - //! setLayer set the current layer selected in the combo |
103 |
| - void setLayer( QgsMapLayer* layer ); |
| 133 | + void setLayer( QgsMapLayer *layer ); |
| 134 | +%Docstring |
| 135 | +setLayer set the current layer selected in the combo |
| 136 | +%End |
104 | 137 |
|
105 | 138 | signals:
|
106 |
| - //! layerChanged this signal is emitted whenever the currently selected layer changes |
107 |
| - void layerChanged( QgsMapLayer* layer ); |
| 139 | + void layerChanged( QgsMapLayer *layer ); |
| 140 | +%Docstring |
| 141 | +layerChanged this signal is emitted whenever the currently selected layer changes |
| 142 | +%End |
108 | 143 |
|
109 | 144 | protected slots:
|
110 | 145 | void indexChanged( int i );
|
111 | 146 | void rowsChanged();
|
| 147 | + |
112 | 148 | };
|
| 149 | + |
| 150 | +/************************************************************************ |
| 151 | + * This file has been generated automatically from * |
| 152 | + * * |
| 153 | + * src/gui/qgsmaplayercombobox.h * |
| 154 | + * * |
| 155 | + * Do not edit manually ! Edit header and run scripts/sipify.pl again * |
| 156 | + ************************************************************************/ |
0 commit comments