2012-09-24 02:28:15 +02:00
|
|
|
class QgsLayerPropertiesWidget : QWidget
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgslayerpropertieswidget.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
public:
|
2015-02-18 17:00:36 +11:00
|
|
|
QgsLayerPropertiesWidget( QgsSymbolLayerV2* layer, const QgsSymbolV2* symbol, const QgsVectorLayer* vl, QWidget* parent /TransferThis/ = NULL );
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2015-09-03 22:46:37 +10:00
|
|
|
/** 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;
|
|
|
|
|
2015-09-16 21:55:32 +10:00
|
|
|
/** Sets the map canvas associated with the widget. This allows the widget to retrieve the current
|
|
|
|
* map scale and other properties from the canvas.
|
|
|
|
* @param canvas map canvas
|
|
|
|
* @note added in QGIS 2.12
|
|
|
|
*/
|
|
|
|
virtual void setMapCanvas( QgsMapCanvas* canvas );
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
public slots:
|
|
|
|
void layerTypeChanged();
|
|
|
|
void emitSignalChanged();
|
|
|
|
|
2015-09-03 22:46:37 +10:00
|
|
|
/** 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 );
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
signals:
|
|
|
|
void changed();
|
|
|
|
void changeLayer( QgsSymbolLayerV2* );
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void populateLayerTypes();
|
|
|
|
void updateSymbolLayerWidget( QgsSymbolLayerV2* layer );
|
|
|
|
};
|