QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
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;
212 void projectDataChanged();
217 void layersAboutToBeRemoved( const QList<
QgsMapLayer *> &layers );
234 void updateLockButton();
236 SymbolLayerItem *currentLayerItem();
248 void moveLayerByOffset(
int offset );
254 void setWidget( QWidget *widget );
258 QMenu *mAdvancedMenu =
nullptr;
261 QStandardItemModel *mSymbolLayersModel =
nullptr;
262 QWidget *mPresentWidget =
nullptr;
264 std::
unique_ptr<DataDefinedRestorer> mDataDefineRestorer;
268 bool mBlockModified = false;
379 void updateLockButton();
381 SymbolLayerItem *currentLayerItem();
385 void moveLayerByOffset(
int offset );
387 void setWidget( QWidget *widget );
390 QDialogButtonBox *mButtonBox =
nullptr;
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
QDialogButtonBox * buttonBox() const
Returns a reference to the dialog's button box.
A store for object properties.
void duplicateLayer()
Duplicates the current symbol layer and places the duplicated layer above the current symbol layer.
Contains settings which reflect the context in which a symbol (or renderer) widget is shown,...
QgsSymbolSelectorDialog(QgsSymbol *symbol, QgsStyle *style, QgsVectorLayer *vl, QWidget *parent=nullptr, bool embedded=false)
Constructor for QgsSymbolSelectorDialog.
Map canvas is a class for displaying all GIS data types on a canvas.
QgsSymbolWidgetContext context() const
Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expressi...
Abstract base class for marker symbol layers.
Abstract base class for all rendered symbols.
void updateLayerPreview()
std::unique_ptr< GEOSGeometry, GeosDeleter > unique_ptr
Scoped GEOS pointer.
A marker symbol type, for rendering Point and MultiPoint geometries.
A line symbol type, for rendering LineString and MultiLineString geometries.
void setContext(const QgsSymbolWidgetContext &context)
Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression ...
void symbolChanged()
Slot to update tree when a new symbol from style.
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.
Base class for all map layer types. This is the base class for all map layer types (vector,...
QMenu * advancedMenu()
Returns menu for "advanced" button - create it if doesn't exist and show the advanced button.
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
void loadSymbol(QgsSymbol *symbol, SymbolLayerItem *parent=nullptr)
Loads the given symbol into the widget.