|
QGIS API Documentation 4.3.0-Master (16eddb2670e)
|
A dialog that can be used to select and build a symbol. More...
#include <qgssymbolselectordialog.h>

Public Slots | |
| void | addLayer () |
| void | changeLayer (QgsSymbolLayer *layer) |
| Alters tree and sets proper widget when Layer Type is changed. | |
| void | duplicateLayer () |
| Duplicates the current symbol layer and places the duplicated layer above the current symbol layer. | |
| void | layerChanged () |
| void | lockLayer () |
| void | moveLayerDown () |
| void | moveLayerUp () |
| void | removeLayer () |
| void | symbolChanged () |
| Slot to update tree when a new symbol from style. | |
| void | updateLayerPreview () |
| void | updatePreview () |
Signals | |
| void | symbolModified () |
| Emitted when the symbol defined in the dialog is modified. | |
Public Member Functions | |
| QgsSymbolSelectorDialog (QgsSymbol *symbol, QgsStyle *style, QgsVectorLayer *vl, QWidget *parent=nullptr, bool embedded=false) | |
| Constructor for QgsSymbolSelectorDialog. | |
| QMenu * | advancedMenu () |
| Returns menu for "advanced" button - create it if doesn't exist and show the advanced button. | |
| QDialogButtonBox * | buttonBox () const |
| Returns a reference to the dialog's button box. | |
| QgsSymbolWidgetContext | context () const |
| Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts. | |
| void | loadSymbol (QgsSymbol *symbol) |
| Loads the given symbol into the widget. | |
| void | setContext (const QgsSymbolWidgetContext &context) |
| Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts. | |
| QgsSymbol * | symbol () |
| Returns the symbol that is currently active in the widget. | |
Protected Member Functions | |
| void | keyPressEvent (QKeyEvent *e) override |
A dialog that can be used to select and build a symbol.
Definition at line 304 of file qgssymbolselectordialog.h.
| QgsSymbolSelectorDialog::QgsSymbolSelectorDialog | ( | QgsSymbol * | symbol, |
| QgsStyle * | style, | ||
| QgsVectorLayer * | vl, | ||
| QWidget * | parent = nullptr, | ||
| bool | embedded = false ) |
Constructor for QgsSymbolSelectorDialog.
| symbol | The symbol |
| style | The style |
| vl | Associated vector layer |
| parent | Parent widget |
| embedded | true to embed in renderer properties dialog, false otherwise |
Definition at line 613 of file qgssymbolselectordialog.cpp.
|
slot |
Definition at line 730 of file qgssymbolselectordialog.cpp.
| QMenu * QgsSymbolSelectorDialog::advancedMenu | ( | ) |
Returns menu for "advanced" button - create it if doesn't exist and show the advanced button.
Definition at line 647 of file qgssymbolselectordialog.cpp.
| QDialogButtonBox * QgsSymbolSelectorDialog::buttonBox | ( | ) | const |
Returns a reference to the dialog's button box.
Definition at line 775 of file qgssymbolselectordialog.cpp.
|
slot |
Alters tree and sets proper widget when Layer Type is changed.
Definition at line 770 of file qgssymbolselectordialog.cpp.
| QgsSymbolWidgetContext QgsSymbolSelectorDialog::context | ( | ) | const |
Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
Definition at line 657 of file qgssymbolselectordialog.cpp.
|
slot |
Duplicates the current symbol layer and places the duplicated layer above the current symbol layer.
Definition at line 745 of file qgssymbolselectordialog.cpp.
|
overrideprotected |
Definition at line 667 of file qgssymbolselectordialog.cpp.
|
slot |
Definition at line 750 of file qgssymbolselectordialog.cpp.
| void QgsSymbolSelectorDialog::loadSymbol | ( | QgsSymbol * | symbol | ) |
Loads the given symbol into the widget.
| symbol | The symbol to load. |
Definition at line 685 of file qgssymbolselectordialog.cpp.
|
slot |
Definition at line 740 of file qgssymbolselectordialog.cpp.
|
slot |
Definition at line 720 of file qgssymbolselectordialog.cpp.
|
slot |
Definition at line 725 of file qgssymbolselectordialog.cpp.
|
slot |
Definition at line 735 of file qgssymbolselectordialog.cpp.
| void QgsSymbolSelectorDialog::setContext | ( | const QgsSymbolWidgetContext & | context | ) |
Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
| context | symbol widget context |
Definition at line 652 of file qgssymbolselectordialog.cpp.
| QgsSymbol * QgsSymbolSelectorDialog::symbol | ( | ) |
Returns the symbol that is currently active in the widget.
Can be nullptr.
Definition at line 662 of file qgssymbolselectordialog.cpp.
|
slot |
Slot to update tree when a new symbol from style.
Definition at line 765 of file qgssymbolselectordialog.cpp.
|
signal |
Emitted when the symbol defined in the dialog is modified.
|
slot |
Definition at line 755 of file qgssymbolselectordialog.cpp.
|
slot |
Definition at line 760 of file qgssymbolselectordialog.cpp.