mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
class QgsLayerPropertiesWidget : QgsPanelWidget, QgsExpressionContextGenerator
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgslayerpropertieswidget.h>
|
|
%End
|
|
|
|
public:
|
|
QgsLayerPropertiesWidget( QgsSymbolLayer* layer, const QgsSymbol* symbol, const QgsVectorLayer* vl, QWidget* parent /TransferThis/ = NULL );
|
|
|
|
/** Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
|
|
* @param context symbol widget context
|
|
* @see context()
|
|
* @note added in QGIS 3.0
|
|
*/
|
|
void setContext( const QgsSymbolWidgetContext& context );
|
|
|
|
/** Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
|
|
* @see setContext()
|
|
* @note added in QGIS 3.0
|
|
*/
|
|
QgsSymbolWidgetContext context() const;
|
|
|
|
|
|
public slots:
|
|
void layerTypeChanged();
|
|
void emitSignalChanged();
|
|
|
|
signals:
|
|
void changed();
|
|
void changeLayer( QgsSymbolLayer* );
|
|
|
|
protected:
|
|
void populateLayerTypes();
|
|
void updateSymbolLayerWidget( QgsSymbolLayer* layer );
|
|
|
|
void registerDataDefinedButton( QgsPropertyOverrideButton *button, QgsSymbolLayer::Property key );
|
|
};
|