|
QGIS API Documentation 4.3.0-Master (52aa6503bed)
|
A dialog for configuring vector layer renderers. More...
#include <qgsrendererpropertiesdialog.h>

Public Slots | |
| void | apply () |
| Apply the changes from the dialog to the layer. | |
| void | onOK () |
| Apply and accept the changes for the dialog. | |
| void | openPanel (QgsPanelWidget *panel) |
Open a panel or dialog depending on dock mode setting If dock mode is true this method will emit the showPanel signal for connected slots to handle the open event. | |
| void | rendererChanged () |
| called when user changes renderer type | |
Signals | |
| void | layerVariablesChanged () |
| Emitted when expression context variables on the associated vector layers have been changed. | |
| void | showPanel (QgsPanelWidget *panel) |
| Emit when you require a panel to be show in the interface. | |
| void | widgetChanged () |
| Emitted when something on the widget has changed. | |
Public Member Functions | |
| QgsRendererPropertiesDialog (QgsVectorLayer *layer, QgsStyle *style, bool embedded=false, QWidget *parent=nullptr) | |
| Constructor for QgsRendererPropertiesDialog. | |
| ~QgsRendererPropertiesDialog () override | |
| void | setContext (const QgsSymbolWidgetContext &context) |
| Sets the context in which the dialog is shown, e.g., the associated map canvas and expression contexts. | |
| void | setDockMode (bool dockMode) |
| Set the widget in dock mode which tells the widget to emit panel widgets and not open dialogs. | |
| void | setMapCanvas (QgsMapCanvas *canvas) |
| Sets the map canvas associated with the dialog. | |
Protected Member Functions | |
| void | connectValueChanged (const QList< QWidget * > &widgets) |
| Connect the value changed event for the set of widgets to widgetChanged signal. | |
| void | keyPressEvent (QKeyEvent *event) override |
Protected Attributes | |
| QgsRendererWidget * | mActiveWidget = nullptr |
| QgsVectorLayer * | mLayer = nullptr |
| QgsMapCanvas * | mMapCanvas = nullptr |
| QgsMessageBar * | mMessageBar = nullptr |
| QgsFeatureRequest::OrderBy | mOrderBy |
| std::unique_ptr< QgsPaintEffect > | mPaintEffect |
| QgsStyle * | mStyle = nullptr |
Friends | |
| class | QgsAppScreenShots |
A dialog for configuring vector layer renderers.
Definition at line 44 of file qgsrendererpropertiesdialog.h.
| QgsRendererPropertiesDialog::QgsRendererPropertiesDialog | ( | QgsVectorLayer * | layer, |
| QgsStyle * | style, | ||
| bool | embedded = false, | ||
| QWidget * | parent = nullptr ) |
Constructor for QgsRendererPropertiesDialog.
| layer | associated layer |
| style | style collection |
| embedded | set to true to indicate that the dialog will be embedded in another widget, rather than shown as a dialog by itself |
| parent | parent widget |
Definition at line 91 of file qgsrendererpropertiesdialog.cpp.
|
override |
Definition at line 186 of file qgsrendererpropertiesdialog.cpp.
|
slot |
Apply the changes from the dialog to the layer.
Definition at line 284 of file qgsrendererpropertiesdialog.cpp.
|
protected |
Connect the value changed event for the set of widgets to widgetChanged signal.
Each widget is checked for type and the common type of signal is connected to widgetChanged.
| widgets | The list of widgets to check. |
Definition at line 138 of file qgsrendererpropertiesdialog.cpp.
|
overrideprotected |
Definition at line 419 of file qgsrendererpropertiesdialog.cpp.
|
signal |
Emitted when expression context variables on the associated vector layers have been changed.
Will request the parent dialog to re-synchronize with the variables.
|
slot |
Apply and accept the changes for the dialog.
Definition at line 312 of file qgsrendererpropertiesdialog.cpp.
|
slot |
Open a panel or dialog depending on dock mode setting If dock mode is true this method will emit the showPanel signal for connected slots to handle the open event.
If dock mode is false this method will open a dialog and block the user.
| panel | The panel widget to open. |
Definition at line 318 of file qgsrendererpropertiesdialog.cpp.
|
slot |
called when user changes renderer type
Definition at line 219 of file qgsrendererpropertiesdialog.cpp.
| void QgsRendererPropertiesDialog::setContext | ( | const QgsSymbolWidgetContext & | context | ) |
Sets the context in which the dialog is shown, e.g., the associated map canvas and expression contexts.
Definition at line 200 of file qgsrendererpropertiesdialog.cpp.
| void QgsRendererPropertiesDialog::setDockMode | ( | bool | dockMode | ) |
Set the widget in dock mode which tells the widget to emit panel widgets and not open dialogs.
| dockMode | true to enable dock mode. |
Definition at line 210 of file qgsrendererpropertiesdialog.cpp.
| void QgsRendererPropertiesDialog::setMapCanvas | ( | QgsMapCanvas * | canvas | ) |
Sets the map canvas associated with the dialog.
This allows the widget to retrieve the current map scale and other properties from the canvas.
| canvas | map canvas |
Definition at line 189 of file qgsrendererpropertiesdialog.cpp.
|
signal |
Emit when you require a panel to be show in the interface.
| panel | The panel widget to show. |
|
signal |
Emitted when something on the widget has changed.
All widgets will fire this event to notify of an internal change.
|
friend |
Definition at line 165 of file qgsrendererpropertiesdialog.h.
|
protected |
Definition at line 151 of file qgsrendererpropertiesdialog.h.
|
protected |
Definition at line 148 of file qgsrendererpropertiesdialog.h.
|
protected |
Definition at line 155 of file qgsrendererpropertiesdialog.h.
|
protected |
Definition at line 156 of file qgsrendererpropertiesdialog.h.
|
protected |
Definition at line 158 of file qgsrendererpropertiesdialog.h.
|
protected |
Definition at line 153 of file qgsrendererpropertiesdialog.h.
|
protected |
Definition at line 149 of file qgsrendererpropertiesdialog.h.