mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
This means that symbol selectors can be aware of the correct variable scope and values for both populating expression builder widgets and for symbol previews.
40 lines
1.4 KiB
Plaintext
40 lines
1.4 KiB
Plaintext
class QgsLayerPropertiesWidget : QWidget
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgslayerpropertieswidget.h>
|
|
%End
|
|
|
|
public:
|
|
QgsLayerPropertiesWidget( QgsSymbolLayerV2* layer, const QgsSymbolV2* symbol, const QgsVectorLayer* vl, QWidget* parent /TransferThis/ = NULL );
|
|
|
|
/** Returns the expression context used for the widget, if set. This expression context is used for
|
|
* evaluating data defined symbol properties and for populating based expression widgets in
|
|
* the properties widget.
|
|
* @note added in QGIS 2.12
|
|
* @see setExpressionContext()
|
|
*/
|
|
QgsExpressionContext* expressionContext() const;
|
|
|
|
public slots:
|
|
void layerTypeChanged();
|
|
void emitSignalChanged();
|
|
|
|
/** Sets the optional expression context used for the widget. This expression context is used for
|
|
* evaluating data defined symbol properties and for populating based expression widgets in
|
|
* the properties widget.
|
|
* @param context expression context pointer. Ownership is not transferred and the object must
|
|
* be kept alive for the lifetime of the properties widget.
|
|
* @note added in QGIS 2.12
|
|
* @see expressionContext()
|
|
*/
|
|
void setExpressionContext( QgsExpressionContext* context );
|
|
|
|
signals:
|
|
void changed();
|
|
void changeLayer( QgsSymbolLayerV2* );
|
|
|
|
protected:
|
|
void populateLayerTypes();
|
|
void updateSymbolLayerWidget( QgsSymbolLayerV2* layer );
|
|
};
|