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,
58 int role = Qt::DisplayRole )
const override;
59 int rowCount(
const QModelIndex & = QModelIndex() )
const override;
60 int columnCount(
const QModelIndex & = QModelIndex() )
const override;
63 bool setData(
const QModelIndex &index,
const QVariant &value,
int role = Qt::EditRole )
override;
64 bool removeRows(
int row,
int count,
const QModelIndex &parent = QModelIndex() )
override;
77 QList< QgsDiagramRenderer *> subRenderers()
const;
122 void addSubDiagramRenderer();
133 void editSubDiagramRenderer();
138 void editSubDiagramRenderer(
const QModelIndex &index );
143 void removeSubDiagramRenderer();
157 bool couldBeFirstSubDiagram(
const QModelIndex &index )
const;
161 void liveUpdateSubDiagramFromPanel();
213 void setAllowedToEditDiagramLayerSettings(
bool allowed )
const;
218 bool isAllowedToEditDiagramLayerSettings()
const;
225 void accept()
override;
232 std::unique_ptr< QgsDiagramRenderer > mRenderer;
234 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.