QGIS/python/gui/symbology-ng/qgslayerpropertieswidget.sip

81 lines
2.7 KiB
Plaintext
Raw Normal View History

2017-06-08 15:30:38 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/symbology-ng/qgslayerpropertieswidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsLayerPropertiesWidget : QgsPanelWidget, QgsExpressionContextGenerator
{
2017-06-08 15:30:38 +02:00
%TypeHeaderCode
2017-06-08 15:30:38 +02:00
#include "qgslayerpropertieswidget.h"
%End
public:
2017-06-08 15:30:38 +02:00
QgsLayerPropertiesWidget( QgsSymbolLayer *layer, const QgsSymbol *symbol, const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
void setContext( const QgsSymbolWidgetContext &context );
2017-06-08 15:30:38 +02:00
%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:: context()
.. versionadded:: 3.0
%End
QgsSymbolWidgetContext context() const;
2017-06-08 15:30:38 +02:00
%Docstring
Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
.. seealso:: setContext()
.. versionadded:: 3.0
:rtype: QgsSymbolWidgetContext
%End
2016-09-12 13:51:14 +10:00
2017-06-08 15:30:38 +02:00
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();
2017-06-08 15:30:38 +02:00
void changeLayer( QgsSymbolLayer * );
protected:
void populateLayerTypes();
void updateSymbolLayerWidget( QgsSymbolLayer *layer );
2017-01-20 08:21:44 +10:00
2017-06-08 15:30:38 +02:00
virtual QgsExpressionContext createExpressionContext() const;
2017-01-20 08:21:44 +10:00
void registerDataDefinedButton( QgsPropertyOverrideButton *button, QgsSymbolLayer::Property key );
2017-06-08 15:30:38 +02:00
%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.
.. versionadded:: 3.0
%End
protected: // data
};
2017-06-08 15:30:38 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/symbology-ng/qgslayerpropertieswidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/