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
|
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/symbology/qgssymbolselectordialog.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsSymbolSelectorWidget : QgsPanelWidget
{
%Docstring(signature="appended")
Symbol selector widget that can be used to select and build a symbol
%End
%TypeHeaderCode
#include "qgssymbolselectordialog.h"
%End
public:
QgsSymbolSelectorWidget( QgsSymbol *symbol, QgsStyle *style, QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
%Docstring
Symbol selector widget that can be used to select and build a symbol
:param symbol: The symbol to load into the widget as a start point.
:param style: The style used by the widget.
:param vl: The vector layer for the symbol.
:param parent:
.. note::
The ownership of the symbol is not transferred and must exist for the lifetime of the widget.
%End
QMenu *advancedMenu();
%Docstring
Returns menu for "advanced" button - create it if doesn't exist and show
the advanced button
%End
void setContext( const QgsSymbolWidgetContext &context );
%Docstring
Sets the context in which the symbol widget is shown, e.g., the
associated map canvas and expression contexts.
:param context: symbol widget context
.. seealso:: :py:func:`context`
%End
QgsSymbolWidgetContext context() const;
%Docstring
Returns the context in which the symbol widget is shown, e.g., the
associated map canvas and expression contexts.
.. seealso:: :py:func:`setContext`
%End
QgsSymbol *symbol();
%Docstring
Returns the symbol that is currently active in the widget. Can be
``None``.
:return: The active symbol.
%End
public slots:
void moveLayerDown();
%Docstring
Move the active symbol layer down.
%End
void moveLayerUp();
%Docstring
Move the active symbol layer up.
%End
void addLayer();
%Docstring
Add a symbol layer to the bottom of the stack.
%End
void removeLayer();
%Docstring
Remove the current active symbol layer.
%End
void lockLayer();
%Docstring
Lock the current active symbol layer.
%End
void duplicateLayer();
%Docstring
Duplicates the current symbol layer and places the duplicated layer
above the current symbol layer
%End
void layerChanged();
%Docstring
Called when the layer changes in the widget. Updates the active
properties for active symbol layer.
%End
void updateLayerPreview();
%Docstring
Update the single symbol layer preview in the widget.
%End
void updatePreview();
%Docstring
Update the preview of the whole symbol in the interface.
%End
void symbolChanged();
%Docstring
Slot to update tree when a new symbol from style
%End
void changeLayer( QgsSymbolLayer *layer );
%Docstring
Alters tree and sets proper widget when Layer Type is changed
.. note::
The layer is received from the LayerPropertiesWidget
%End
signals:
void symbolModified();
%Docstring
Emitted when a symbol is modified in the widget.
%End
};
class QgsSymbolSelectorDialog : QDialog
{
%Docstring(signature="appended")
A dialog that can be used to select and build a symbol.
%End
%TypeHeaderCode
#include "qgssymbolselectordialog.h"
%End
public:
QgsSymbolSelectorDialog( QgsSymbol *symbol, QgsStyle *style, QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0, bool embedded = false );
%Docstring
Constructor for QgsSymbolSelectorDialog.
:param symbol: The symbol
:param style: The style
:param vl: Associated vector layer
:param parent: Parent widget
:param embedded: ``True`` to embed in renderer properties dialog,
``False`` otherwise
%End
QMenu *advancedMenu();
%Docstring
Returns menu for "advanced" button - create it if doesn't exist and show
the advanced button
%End
void setContext( const QgsSymbolWidgetContext &context );
%Docstring
Sets the context in which the symbol widget is shown, e.g., the
associated map canvas and expression contexts.
:param context: symbol widget context
.. seealso:: :py:func:`context`
%End
QgsSymbolWidgetContext context() const;
%Docstring
Returns the context in which the symbol widget is shown, e.g., the
associated map canvas and expression contexts.
.. seealso:: :py:func:`setContext`
%End
QgsSymbol *symbol();
%Docstring
Returns the symbol that is currently active in the widget. Can be
``None``.
:return: The active symbol.
%End
QDialogButtonBox *buttonBox() const;
%Docstring
Returns a reference to the dialog's button box.
.. versionadded:: 3.10
%End
public slots:
void moveLayerDown();
void moveLayerUp();
void addLayer();
void removeLayer();
void lockLayer();
void duplicateLayer();
%Docstring
Duplicates the current symbol layer and places the duplicated layer
above the current symbol layer
%End
void layerChanged();
void updateLayerPreview();
void updatePreview();
void symbolChanged();
%Docstring
Slot to update tree when a new symbol from style
%End
void changeLayer( QgsSymbolLayer *layer );
%Docstring
Alters tree and sets proper widget when Layer Type is changed
.. note::
The layer is received from the LayerPropertiesWidget
%End
protected:
virtual void keyPressEvent( QKeyEvent *e );
signals:
void symbolModified();
%Docstring
Emitted when the symbol defined in the dialog is modified.
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/symbology/qgssymbolselectordialog.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
|