2016-10-17 15:44:19 +10:00
|
|
|
class QgsLayerPropertiesWidget : QgsPanelWidget, QgsExpressionContextGenerator
|
2012-09-24 02:28:15 +02:00
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgslayerpropertieswidget.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
public:
|
2017-05-01 18:13:15 +02:00
|
|
|
QgsLayerPropertiesWidget( QgsSymbolLayer *layer, const QgsSymbol *symbol, const QgsVectorLayer *vl, QWidget *parent /TransferThis/ = NULL );
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2016-12-30 00:01:08 +01:00
|
|
|
/** Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
|
2016-09-12 16:11:05 +10:00
|
|
|
* @param context symbol widget context
|
|
|
|
* @see context()
|
|
|
|
* @note added in QGIS 3.0
|
2015-09-03 22:46:37 +10:00
|
|
|
*/
|
2017-05-01 18:13:15 +02:00
|
|
|
void setContext( const QgsSymbolWidgetContext &context );
|
2015-09-03 22:46:37 +10:00
|
|
|
|
2016-12-30 00:01:08 +01:00
|
|
|
/** Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
|
2016-09-12 16:11:05 +10:00
|
|
|
* @see setContext()
|
2016-09-12 13:51:14 +10:00
|
|
|
* @note added in QGIS 3.0
|
|
|
|
*/
|
2016-09-12 16:11:05 +10:00
|
|
|
QgsSymbolWidgetContext context() const;
|
2016-09-12 13:51:14 +10:00
|
|
|
|
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();
|
2016-08-05 08:08:39 +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
|
|
|
|
|
|
|
void registerDataDefinedButton( QgsPropertyOverrideButton *button, QgsSymbolLayer::Property key );
|
2012-09-24 02:28:15 +02:00
|
|
|
};
|