16 #ifndef QGSSYMBOLSELECTORDIALOG_H 17 #define QGSSYMBOLSELECTORDIALOG_H 23 #include "ui_qgssymbolselectordialogbase.h" 30 #include <QStandardItemModel> 31 #include <QDialogButtonBox> 42 class SymbolLayerItem;
53 class DataDefinedRestorer:
public QObject
67 QPointF mMarkerOffset;
246 QMenu *mAdvancedMenu =
nullptr;
249 QStandardItemModel *model =
nullptr;
250 QWidget *mPresentWidget =
nullptr;
253 std::unique_ptr<DataDefinedRestorer> mDataDefineRestorer;
282 QMenu *advancedMenu();
307 void keyPressEvent( QKeyEvent *e )
override;
316 void updateLockButton();
319 SymbolLayerItem *currentLayerItem()
SIP_SKIP;
322 void moveLayerByOffset(
int offset );
324 void setWidget( QWidget *widget );
327 void symbolModified();
330 void moveLayerDown();
342 void duplicateLayer();
346 void updateLayerPreview();
347 void updatePreview();
350 void symbolChanged();
360 QDialogButtonBox *mButtonBox =
nullptr;
void duplicateLayer()
Duplicates the current symbol layer and places the duplicated layer above the current symbol layer...
QgsSymbolLayer * currentLayer()
Abstract base class for all rendered symbols.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
Map canvas is a class for displaying all GIS data types on a canvas.
A marker symbol type, for rendering Point and MultiPoint geometries.
A line symbol type, for rendering LineString and MultiLineString geometries.
void moveLayerByOffset(int offset)
Contains settings which reflect the context in which a symbol (or renderer) widget is shown...
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
void updateLayerPreview()
void symbolChanged()
Slot to update tree when a new symbol from style.
void setWidget(QWidget *widget)
A store for object properties.
QMenu * advancedMenu()
Returns menu for "advanced" button - create it if doesn't exist and show the advanced button...
QgsSymbolWidgetContext context() const
Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expressi...
SymbolLayerItem * currentLayerItem()
Abstract base class for marker symbol layers.
void setContext(const QgsSymbolWidgetContext &context)
Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression ...
void changeLayer(QgsSymbolLayer *layer)
alters tree and sets proper widget when Layer Type is changed
QgsSymbol * symbol()
Returns the symbol that is currently active in the widget.
Represents a vector layer which manages a vector based data sets.