QGIS API Documentation  3.4.15-Madeira (e83d02e274)
Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
QgsRendererPropertiesDialog Class Reference

#include <qgsrendererpropertiesdialog.h>

Inheritance diagram for QgsRendererPropertiesDialog:
Inheritance graph
[legend]

Public Slots

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...
 

Signals

void layerVariablesChanged ()
 Emitted when expression context variables on the associated vector layers have been changed. More...
 
void showPanel (QgsPanelWidget *panel)
 Emit when you require a panel to be show in the interface. More...
 
void widgetChanged ()
 Emitted when something on the widget has changed. More...
 

Public Member Functions

 QgsRendererPropertiesDialog (QgsVectorLayer *layer, QgsStyle *style, bool embedded=false, QWidget *parent=nullptr)
 Constructor for QgsRendererPropertiesDialog. More...
 
 ~QgsRendererPropertiesDialog () override
 
void setDockMode (bool dockMode)
 Set the widget in dock mode which tells the widget to emit panel widgets and not open dialogs. More...
 
void setMapCanvas (QgsMapCanvas *canvas)
 Sets the map canvas associated with the dialog. More...
 

Protected Member Functions

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
 

Protected Attributes

QgsRendererWidgetmActiveWidget = nullptr
 
QgsVectorLayermLayer = nullptr
 
QgsMapCanvasmMapCanvas = nullptr
 
QgsFeatureRequest::OrderBy mOrderBy
 
QgsPaintEffectmPaintEffect = nullptr
 
QgsStylemStyle = nullptr
 

Friends

class QgsAppScreenShots
 

Detailed Description

Definition at line 41 of file qgsrendererpropertiesdialog.h.

Constructor & Destructor Documentation

QgsRendererPropertiesDialog::QgsRendererPropertiesDialog ( QgsVectorLayer layer,
QgsStyle style,
bool  embedded = false,
QWidget *  parent = nullptr 
)

Constructor for QgsRendererPropertiesDialog.

Parameters
layerassociated layer
stylestyle collection
embeddedset to true to indicate that the dialog will be embedded in another widget, rather than shown as a dialog by itself
parentparent widget

Definition at line 82 of file qgsrendererpropertiesdialog.cpp.

QgsRendererPropertiesDialog::~QgsRendererPropertiesDialog ( )
override

Definition at line 180 of file qgsrendererpropertiesdialog.cpp.

Member Function Documentation

void QgsRendererPropertiesDialog::apply ( )
slot

Apply the changes from the dialog to the layer.

Definition at line 269 of file qgsrendererpropertiesdialog.cpp.

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
widgetsThe list of widgets to check.
slotThe slot to connect to the signals.

Definition at line 132 of file qgsrendererpropertiesdialog.cpp.

void QgsRendererPropertiesDialog::keyPressEvent ( QKeyEvent *  event)
overrideprotected

Definition at line 406 of file qgsrendererpropertiesdialog.cpp.

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.

void QgsRendererPropertiesDialog::onOK ( )
slot

Apply and accept the changes for the dialog.

Definition at line 297 of file qgsrendererpropertiesdialog.cpp.

void QgsRendererPropertiesDialog::openPanel ( QgsPanelWidget panel)
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.

Parameters
panelThe panel widget to open.

Definition at line 303 of file qgsrendererpropertiesdialog.cpp.

void QgsRendererPropertiesDialog::rendererChanged ( )
slot

called when user changes renderer type

Definition at line 205 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.

Parameters
dockModeTrue to enable dock mode.

Definition at line 196 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.

Parameters
canvasmap canvas
Since
QGIS 2.12

Definition at line 185 of file qgsrendererpropertiesdialog.cpp.

void QgsRendererPropertiesDialog::showPanel ( QgsPanelWidget panel)
signal

Emit when you require a panel to be show in the interface.

Parameters
panelThe 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.
void QgsRendererPropertiesDialog::widgetChanged ( )
signal

Emitted when something on the widget has changed.

All widgets will fire this event to notify of an internal change.

Friends And Related Function Documentation

friend class QgsAppScreenShots
friend

Definition at line 157 of file qgsrendererpropertiesdialog.h.

Member Data Documentation

QgsRendererWidget* QgsRendererPropertiesDialog::mActiveWidget = nullptr
protected

Definition at line 146 of file qgsrendererpropertiesdialog.h.

QgsVectorLayer* QgsRendererPropertiesDialog::mLayer = nullptr
protected

Definition at line 143 of file qgsrendererpropertiesdialog.h.

QgsMapCanvas* QgsRendererPropertiesDialog::mMapCanvas = nullptr
protected

Definition at line 150 of file qgsrendererpropertiesdialog.h.

QgsFeatureRequest::OrderBy QgsRendererPropertiesDialog::mOrderBy
protected

Definition at line 152 of file qgsrendererpropertiesdialog.h.

QgsPaintEffect* QgsRendererPropertiesDialog::mPaintEffect = nullptr
protected

Definition at line 148 of file qgsrendererpropertiesdialog.h.

QgsStyle* QgsRendererPropertiesDialog::mStyle = nullptr
protected

Definition at line 144 of file qgsrendererpropertiesdialog.h.


The documentation for this class was generated from the following files: