18#ifndef QGSSTACKEDDIAGRAMPROPERTIES_H
19#define QGSSTACKEDDIAGRAMPROPERTIES_H
26#include "ui_qgsstackeddiagrampropertiesbase.h"
30#include <QDialogButtonBox>
55 Qt::ItemFlags flags(
const QModelIndex &index )
const override;
56 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole )
const override;
57 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole )
const override;
58 int rowCount(
const QModelIndex & = QModelIndex() )
const override;
59 int columnCount(
const QModelIndex & = QModelIndex() )
const override;
62 bool setData(
const QModelIndex &index,
const QVariant &value,
int role = Qt::EditRole )
override;
63 bool removeRows(
int row,
int count,
const QModelIndex &parent = QModelIndex() )
override;
76 QList<QgsDiagramRenderer *> subRenderers()
const;
121 void addSubDiagramRenderer();
132 void editSubDiagramRenderer();
137 void editSubDiagramRenderer(
const QModelIndex &index );
142 void removeSubDiagramRenderer();
156 bool couldBeFirstSubDiagram(
const QModelIndex &index )
const;
160 void liveUpdateSubDiagramFromPanel();
211 void setAllowedToEditDiagramLayerSettings(
bool allowed )
const;
216 bool isAllowedToEditDiagramLayerSettings()
const;
223 void accept()
override;
230 std::unique_ptr<QgsDiagramRenderer> mRenderer;
232 QDialogButtonBox *buttonBox =
nullptr;
Stores the settings for rendering of all diagrams for a layer.
Evaluates and returns the diagram settings relating to a diagram for a specific feature.
Map canvas is a class for displaying all GIS data types on a canvas.
Dialog for editing sub diagrams.
Model for sub diagrams in a stacked diagram view.
QList< QgsDiagramRenderer * > mRenderers
QgsDiagramLayerSettings mDiagramLayerSettings
void auxiliaryFieldCreated()
Represents a vector layer which manages a vector based data sets.