QGIS API Documentation 3.41.0-Master (af5edcb665c)
|
Dialog for editing sub diagrams. More...
#include <qgsstackeddiagramproperties.h>
Public Slots | |
void | accept () override |
Applies changes from the widget to the internal renderer and diagram layer settings. | |
Public Member Functions | |
QgsStackedDiagramPropertiesDialog (QgsVectorLayer *layer, QWidget *parent=nullptr, QgsMapCanvas *mapCanvas=nullptr) | |
Constructor for QgsStackedDiagramPropertiesDialog. | |
QgsDiagramLayerSettings | diagramLayerSettings () const |
Gets diagram layer settings built from the diagram properties widget. | |
bool | isAllowedToEditDiagramLayerSettings () const |
Returns whether the main widget is allowed to edit diagram layer settings. | |
QgsDiagramRenderer * | renderer () |
Gets a renderer object built from the diagram properties widget. | |
void | setAllowedToEditDiagramLayerSettings (bool allowed) const |
Delegates to the main widget to set whether the widget should show diagram layer settings to be edited. | |
void | syncToRenderer (const QgsDiagramRenderer *dr) const |
Delegates to the diagram properties widget to sync with the given renderer. | |
void | syncToSettings (const QgsDiagramLayerSettings *dls) const |
Delegates to the diagram properties widget to sync with the given diagram layer settings. | |
Dialog for editing sub diagrams.
Definition at line 171 of file qgsstackeddiagramproperties.h.
QgsStackedDiagramPropertiesDialog::QgsStackedDiagramPropertiesDialog | ( | QgsVectorLayer * | layer, |
QWidget * | parent = nullptr , |
||
QgsMapCanvas * | mapCanvas = nullptr |
||
) |
Constructor for QgsStackedDiagramPropertiesDialog.
layer | source vector layer |
parent | parent widget |
mapCanvas | map canvas |
Definition at line 291 of file qgsstackeddiagramproperties.cpp.
|
overrideslot |
Applies changes from the widget to the internal renderer and diagram layer settings.
Definition at line 327 of file qgsstackeddiagramproperties.cpp.
QgsDiagramLayerSettings QgsStackedDiagramPropertiesDialog::diagramLayerSettings | ( | ) | const |
Gets diagram layer settings built from the diagram properties widget.
Definition at line 340 of file qgsstackeddiagramproperties.cpp.
bool QgsStackedDiagramPropertiesDialog::isAllowedToEditDiagramLayerSettings | ( | ) | const |
Returns whether the main widget is allowed to edit diagram layer settings.
Definition at line 350 of file qgsstackeddiagramproperties.cpp.
QgsDiagramRenderer * QgsStackedDiagramPropertiesDialog::renderer | ( | ) |
Gets a renderer object built from the diagram properties widget.
Transfers ownership.
Definition at line 335 of file qgsstackeddiagramproperties.cpp.
void QgsStackedDiagramPropertiesDialog::setAllowedToEditDiagramLayerSettings | ( | bool | allowed | ) | const |
Delegates to the main widget to set whether the widget should show diagram layer settings to be edited.
allowed | Whether the main widget should be allowed to edit diagram layer settings. |
Definition at line 345 of file qgsstackeddiagramproperties.cpp.
void QgsStackedDiagramPropertiesDialog::syncToRenderer | ( | const QgsDiagramRenderer * | dr | ) | const |
Delegates to the diagram properties widget to sync with the given renderer.
Definition at line 317 of file qgsstackeddiagramproperties.cpp.
void QgsStackedDiagramPropertiesDialog::syncToSettings | ( | const QgsDiagramLayerSettings * | dls | ) | const |
Delegates to the diagram properties widget to sync with the given diagram layer settings.
Definition at line 322 of file qgsstackeddiagramproperties.cpp.