#include <qgsrendererpropertiesdialog.h>
|
void | apply () |
| Apply the changes from the dialog to the layer. More...
|
|
void | onOK () |
| Apply and accept the changes for the dialog. More...
|
|
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. More...
|
|
void | rendererChanged () |
| called when user changes renderer type More...
|
|
|
void | connectValueChanged (const QList< QWidget *> &widgets, const char *slot) |
| Connect the given slot to the value changed event for the set of widgets Each widget is checked for type and the common type of signal is connected to the slot. More...
|
|
void | keyPressEvent (QKeyEvent *event) override |
|
◆ QgsRendererPropertiesDialog()
QgsRendererPropertiesDialog::QgsRendererPropertiesDialog |
( |
QgsVectorLayer * |
layer, |
|
|
QgsStyle * |
style, |
|
|
bool |
embedded = false , |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
Constructor for QgsRendererPropertiesDialog.
- Parameters
-
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 82 of file qgsrendererpropertiesdialog.cpp.
◆ ~QgsRendererPropertiesDialog()
QgsRendererPropertiesDialog::~QgsRendererPropertiesDialog |
( |
| ) |
|
|
override |
◆ apply
void QgsRendererPropertiesDialog::apply |
( |
| ) |
|
|
slot |
◆ connectValueChanged()
void QgsRendererPropertiesDialog::connectValueChanged |
( |
const QList< QWidget *> & |
widgets, |
|
|
const char * |
slot |
|
) |
| |
|
protected |
Connect the given slot to the value changed event for the set of widgets Each widget is checked for type and the common type of signal is connected to the slot.
- Parameters
-
widgets | The list of widgets to check. |
slot | The slot to connect to the signals. |
Definition at line 132 of file qgsrendererpropertiesdialog.cpp.
◆ keyPressEvent()
void QgsRendererPropertiesDialog::keyPressEvent |
( |
QKeyEvent * |
event | ) |
|
|
overrideprotected |
◆ layerVariablesChanged
void QgsRendererPropertiesDialog::layerVariablesChanged |
( |
| ) |
|
|
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.
◆ onOK
void QgsRendererPropertiesDialog::onOK |
( |
| ) |
|
|
slot |
◆ openPanel
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.
- Parameters
-
panel | The panel widget to open. |
Definition at line 314 of file qgsrendererpropertiesdialog.cpp.
◆ rendererChanged
void QgsRendererPropertiesDialog::rendererChanged |
( |
| ) |
|
|
slot |
◆ setContext()
Sets the context in which the dialog is shown, e.g., the associated map canvas and expression contexts.
- Since
- QGIS 3.6
Definition at line 196 of file qgsrendererpropertiesdialog.cpp.
◆ setDockMode()
void QgsRendererPropertiesDialog::setDockMode |
( |
bool |
dockMode | ) |
|
Set the widget in dock mode which tells the widget to emit panel widgets and not open dialogs.
- Parameters
-
dockMode | True to enable dock mode. |
Definition at line 206 of file qgsrendererpropertiesdialog.cpp.
◆ setMapCanvas()
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.
- Parameters
-
- Since
- QGIS 2.12
Definition at line 185 of file qgsrendererpropertiesdialog.cpp.
◆ showPanel
Emit when you require a panel to be show in the interface.
- Parameters
-
panel | The panel widget to show. |
- Note
- If you are connected to this signal you should also connect given panels showPanel signal as they can be nested.
◆ widgetChanged
void QgsRendererPropertiesDialog::widgetChanged |
( |
| ) |
|
|
signal |
Emitted when something on the widget has changed.
All widgets will fire this event to notify of an internal change.
◆ QgsAppScreenShots
friend class QgsAppScreenShots |
|
friend |
◆ mActiveWidget
◆ mLayer
◆ mMapCanvas
QgsMapCanvas* QgsRendererPropertiesDialog::mMapCanvas = nullptr |
|
protected |
◆ mMessageBar
QgsMessageBar* QgsRendererPropertiesDialog::mMessageBar = nullptr |
|
protected |
◆ mOrderBy
◆ mPaintEffect
◆ mStyle
QgsStyle* QgsRendererPropertiesDialog::mStyle = nullptr |
|
protected |
The documentation for this class was generated from the following files: