16 #ifndef QGSSYMBOLSELECTORDIALOG_H 17 #define QGSSYMBOLSELECTORDIALOG_H 22 #include "ui_qgssymbolselectordialogbase.h" 29 #include <QStandardItemModel> 30 #include <QDialogButtonBox> 41 class SymbolLayerItem;
52 class DataDefinedRestorer:
public QObject
66 QPointF mMarkerOffset;
221 void updateLockButton();
223 SymbolLayerItem *currentLayerItem();
235 void moveLayerByOffset(
int offset );
241 void setWidget( QWidget *widget );
245 QMenu *mAdvancedMenu =
nullptr;
248 QStandardItemModel *model =
nullptr;
249 QWidget *mPresentWidget =
nullptr;
251 std::unique_ptr<DataDefinedRestorer> mDataDefineRestorer;
255 bool mBlockModified =
false;
281 QMenu *advancedMenu();
309 void loadSymbol(
QgsSymbol *symbol, SymbolLayerItem *parent =
nullptr )
SIP_SKIP;
315 QDialogButtonBox *buttonBox()
const;
319 void moveLayerDown();
331 void duplicateLayer();
335 void updateLayerPreview();
336 void updatePreview();
339 void symbolChanged();
350 void keyPressEvent( QKeyEvent *e )
override;
358 void symbolModified();
366 void updateLockButton();
368 SymbolLayerItem *currentLayerItem();
372 void moveLayerByOffset(
int offset );
374 void setWidget( QWidget *widget );
377 QDialogButtonBox *mButtonBox =
nullptr;
void duplicateLayer()
Duplicates the current symbol layer and places the duplicated layer above the current symbol layer...
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.
QgsSymbolWidgetContext context() const
Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expressi...
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.
A store for object properties.
QMenu * advancedMenu()
Returns menu for "advanced" button - create it if doesn't exist and show the advanced button...
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.
void loadSymbol(QgsSymbol *symbol, SymbolLayerItem *parent=nullptr)
Loads the given symbol into the widget.