QGIS API Documentation 3.41.0-Master (45a0abf3bec)
|
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 172 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 296 of file qgsstackeddiagramproperties.cpp.
|
overrideslot |
Applies changes from the widget to the internal renderer and diagram layer settings.
Definition at line 333 of file qgsstackeddiagramproperties.cpp.
QgsDiagramLayerSettings QgsStackedDiagramPropertiesDialog::diagramLayerSettings | ( | ) | const |
Gets diagram layer settings built from the diagram properties widget.
Definition at line 346 of file qgsstackeddiagramproperties.cpp.
bool QgsStackedDiagramPropertiesDialog::isAllowedToEditDiagramLayerSettings | ( | ) | const |
Returns whether the main widget is allowed to edit diagram layer settings.
Definition at line 356 of file qgsstackeddiagramproperties.cpp.
QgsDiagramRenderer * QgsStackedDiagramPropertiesDialog::renderer | ( | ) |
Gets a renderer object built from the diagram properties widget.
Transfers ownership.
Definition at line 341 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 351 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 323 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 328 of file qgsstackeddiagramproperties.cpp.