2017-06-08 15:30:38 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
2017-08-06 13:39:03 +02:00
|
|
|
* src/gui/symbology/qgslayerpropertieswidget.h *
|
2017-06-08 15:30:38 +02:00
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-10-17 15:44:19 +10:00
|
|
|
class QgsLayerPropertiesWidget : QgsPanelWidget, QgsExpressionContextGenerator
|
2012-09-24 02:28:15 +02:00
|
|
|
{
|
2017-06-08 15:30:38 +02:00
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
%TypeHeaderCode
|
2017-06-08 15:30:38 +02:00
|
|
|
#include "qgslayerpropertieswidget.h"
|
2012-09-24 02:28:15 +02:00
|
|
|
%End
|
|
|
|
public:
|
2017-09-03 19:24:41 +02:00
|
|
|
|
2017-09-01 15:34:16 +01:00
|
|
|
QgsLayerPropertiesWidget( QgsSymbolLayer *layer, const QgsSymbol *symbol, QgsVectorLayer *vl, QWidget *parent /TransferThis/ = 0 );
|
2017-09-03 19:24:41 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Constructor for QgsLayerPropertiesWidget.
|
2017-12-15 21:36:08 -04:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
:param layer: the symbol layer
|
|
|
|
:param symbol: the symbol
|
|
|
|
:param vl: associated vector layer
|
|
|
|
:param parent: parent widget
|
2017-09-03 19:24:41 +02:00
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
void setContext( const QgsSymbolWidgetContext &context );
|
2017-06-08 15:30:38 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
|
2017-12-15 21:36:08 -04:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
:param context: symbol widget context
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`context`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2017-06-08 15:30:38 +02:00
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
2015-09-03 22:46:37 +10:00
|
|
|
|
2016-09-12 16:11:05 +10:00
|
|
|
QgsSymbolWidgetContext context() const;
|
2017-06-08 15:30:38 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`setContext`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2017-06-08 15:30:38 +02:00
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
2016-09-12 13:51:14 +10:00
|
|
|
|
2017-06-08 15:30:38 +02:00
|
|
|
virtual void setDockMode( bool dockMode );
|
2017-12-15 08:57:22 +10:00
|
|
|
|
2017-06-08 15:30:38 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Set the widget in dock mode which tells the widget to emit panel
|
|
|
|
widgets and not open dialogs
|
2017-12-15 21:36:08 -04:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
:param dockMode: True to enable dock mode.
|
2017-06-08 15:30:38 +02:00
|
|
|
%End
|
2015-09-16 21:55:32 +10:00
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
public slots:
|
|
|
|
void layerTypeChanged();
|
|
|
|
void emitSignalChanged();
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void changed();
|
2017-06-08 15:30:38 +02:00
|
|
|
void changeLayer( QgsSymbolLayer * );
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void populateLayerTypes();
|
2017-05-01 18:13:15 +02:00
|
|
|
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
|
2017-12-15 10:36:55 -04:00
|
|
|
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.
|
|
|
|
|
2017-06-08 15:30:38 +02:00
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
|
|
|
protected: // data
|
|
|
|
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
};
|
2017-06-08 15:30:38 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
2017-08-06 13:39:03 +02:00
|
|
|
* src/gui/symbology/qgslayerpropertieswidget.h *
|
2017-06-08 15:30:38 +02:00
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|