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