16#ifndef QGSSYMBOLSELECTORDIALOG_H
17#define QGSSYMBOLSELECTORDIALOG_H
22#include "ui_qgssymbolselectordialogbase.h"
29#include <QStandardItemModel>
30#include <QDialogButtonBox>
53class DataDefinedRestorer:
public QObject
67 QPointF mMarkerOffset;
220 void projectDataChanged();
225 void layersAboutToBeRemoved( const QList<
QgsMapLayer *> &layers );
242 void updateLockButton();
244 void updateLockButtonIcon();
246 SymbolLayerItem *currentLayerItem();
258 void moveLayerByOffset(
int offset );
264 void setWidget( QWidget *widget );
269 QMenu *mAdvancedMenu =
nullptr;
270 QAction *mLockColorAction =
nullptr;
271 QAction *mLockSelectionColorAction =
nullptr;
274 QStandardItemModel *mSymbolLayersModel =
nullptr;
275 QWidget *mPresentWidget =
nullptr;
277 std::
unique_ptr<DataDefinedRestorer> mDataDefineRestorer;
281 bool mBlockModified = false;
389 void updateLockButton();
391 SymbolLayerItem *currentLayerItem();
395 void moveLayerByOffset(
int offset );
397 void setWidget( QWidget *widget );
400 QDialogButtonBox *mButtonBox =
nullptr;
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
A line symbol type, for rendering LineString and MultiLineString geometries.
Map canvas is a class for displaying all GIS data types on a canvas.
Base class for all map layer types.
Abstract base class for marker symbol layers.
A marker symbol type, for rendering Point and MultiPoint geometries.
A store for object properties.
void setContext(const QgsSymbolWidgetContext &context)
Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression ...
QgsSymbolSelectorDialog(QgsSymbol *symbol, QgsStyle *style, QgsVectorLayer *vl, QWidget *parent=nullptr, bool embedded=false)
Constructor for QgsSymbolSelectorDialog.
QgsSymbolWidgetContext context() const
Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expressi...
QMenu * advancedMenu()
Returns menu for "advanced" button - create it if doesn't exist and show the advanced button.
void symbolChanged()
Slot to update tree when a new symbol from style.
QDialogButtonBox * buttonBox() const
Returns a reference to the dialog's button box.
QgsSymbol * symbol()
Returns the symbol that is currently active in the widget.
void updateLayerPreview()
void duplicateLayer()
Duplicates the current symbol layer and places the duplicated layer above the current symbol layer.
void changeLayer(QgsSymbolLayer *layer)
alters tree and sets proper widget when Layer Type is changed
void loadSymbol(QgsSymbol *symbol, SymbolLayerItem *parent=nullptr)
Loads the given symbol into the widget.
Contains settings which reflect the context in which a symbol (or renderer) widget is shown,...
Abstract base class for all rendered symbols.
Represents a vector layer which manages a vector based data sets.
std::unique_ptr< GEOSGeometry, GeosDeleter > unique_ptr
Scoped GEOS pointer.