18#ifndef QGSSTACKEDDIAGRAMPROPERTIES_H
19#define QGSSTACKEDDIAGRAMPROPERTIES_H
26#include "ui_qgsstackeddiagrampropertiesbase.h"
31#include <QDialogButtonBox>
56 Qt::ItemFlags flags(
const QModelIndex &index )
const override;
57 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole )
const override;
58 QVariant headerData(
int section, Qt::Orientation orientation,
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;
67 Qt::DropActions supportedDropActions()
const override;
68 QStringList mimeTypes()
const override;
69 QMimeData *mimeData(
const QModelIndexList &indexes )
const override;
70 bool dropMimeData(
const QMimeData *data, Qt::DropAction action,
int row,
int column,
const QModelIndex &parent )
override;
82 QList<QgsDiagramRenderer *> subRenderers()
const;
118 void drawPrimitive( PrimitiveElement element,
const QStyleOption *option, QPainter *painter,
const QWidget *widget =
nullptr )
const override;
150 void clearCurrentIndex();
157 void addSubDiagramRenderer();
168 void editSubDiagramRenderer();
173 void editSubDiagramRenderer(
const QModelIndex &index );
178 void removeSubDiagramRenderer();
192 bool couldBeFirstSubDiagram(
const QModelIndex &index )
const;
196 void liveUpdateSubDiagramFromPanel();
247 void setAllowedToEditDiagramLayerSettings(
bool allowed )
const;
252 bool isAllowedToEditDiagramLayerSettings()
const;
259 void accept()
override;
266 std::unique_ptr<QgsDiagramRenderer> mRenderer;
268 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.
A QProxyStyle subclass which correctly sets the base style to match the QGIS application style,...
Dialog for editing sub diagrams.
Model for sub diagrams in a stacked diagram view.
QList< QgsDiagramRenderer * > mRenderers
QgsDiagramLayerSettings mDiagramLayerSettings
void subDiagramsMoved()
Informs views that subdiagrams were moved in the model.
void auxiliaryFieldCreated()
View style which shows drop indicator line between items.
void drawPrimitive(PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget=nullptr) const override
Represents a vector layer which manages a vector based data sets.