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
|
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/symbology/qgslayerpropertieswidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsLayerPropertiesWidget : QgsPanelWidget, QgsExpressionContextGenerator
{
%Docstring(signature="appended")
A widget which allows configuration of the properties of a single
:py:class:`QgsSymbolLayer`.
This widget includes a combobox box for selection of the symbol layer
type, and a panel for showing configuration properties for the selected
symbol layer type.
%End
%TypeHeaderCode
#include "qgslayerpropertieswidget.h"
%End
public:
QgsLayerPropertiesWidget( QgsSymbolLayer *layer, const QgsSymbol *symbol, QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsLayerPropertiesWidget.
:param layer: the symbol layer
:param symbol: the symbol
:param vl: associated vector layer
:param parent: parent widget
%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
virtual void setDockMode( bool dockMode );
%Docstring
Set the widget in dock mode which tells the widget to emit panel widgets
and not open dialogs
:param dockMode: ``True`` to enable dock mode.
%End
public slots:
void layerTypeChanged();
void emitSignalChanged();
signals:
void changed();
%Docstring
Emitted when the symbol layer configuration is changed in the widget.
%End
void changeLayer( QgsSymbolLayer *layer );
%Docstring
Emitted when the symbol ``layer`` is changed in the widget.
%End
protected:
void populateLayerTypes();
void updateSymbolLayerWidget( QgsSymbolLayer *layer );
virtual QgsExpressionContext createExpressionContext() const;
void registerDataDefinedButton( QgsPropertyOverrideButton *button, QgsSymbolLayer::Property key );
%Docstring
Registers a data defined override button. Handles setting up connections
for the button and initializing the button to show the correct
descriptions and help text for the associated property.
%End
protected: // data
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/symbology/qgslayerpropertieswidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
|