16 #ifndef QGSGRADUATEDSYMBOLRENDERERV2WIDGET_H 17 #define QGSGRADUATEDSYMBOLRENDERERV2WIDGET_H 21 #include <QStandardItem> 22 #include <QProxyStyle> 24 #include "ui_qgsgraduatedsymbolrendererv2widget.h" 32 QgsGraduatedSymbolRendererV2Model(
QObject * parent =
nullptr );
37 QVariant headerData(
int section, Qt::Orientation orientation,
int role )
const override;
53 void sort(
int column, Qt::SortOrder order = Qt::AscendingOrder )
override;
54 void updateSymbology(
bool resetModel =
false );
66 class QgsGraduatedSymbolRendererV2ViewStyle:
public QProxyStyle 71 explicit QgsGraduatedSymbolRendererV2ViewStyle(
QStyle* style =
nullptr );
73 void drawPrimitive( PrimitiveElement element,
const QStyleOption * option,
QPainter * painter,
const QWidget * widget =
nullptr )
const override;
94 void changeGraduatedSymbol();
95 void graduatedColumnChanged(
const QString& field );
96 void classifyGraduated();
97 void reapplyColorRamp();
99 void rangesDoubleClicked(
const QModelIndex & idx );
106 void deleteClasses();
108 void deleteAllClasses();
110 void toggleBoundariesLink(
bool linked );
112 void sizeScaleFieldChanged(
const QString& fldName );
114 void labelFormatChanged();
116 void showSymbolLevels();
119 void modelDataChanged();
120 void on_mSizeUnitWidget_changed();
121 void on_methodComboBox_currentIndexChanged(
int );
122 void refreshRanges(
bool reset =
false );
126 void updateSymbolsFromWidget();
129 void updateUiFromRenderer(
bool updateCount =
true );
130 void connectUpdateHandlers();
131 void disconnectUpdateHandlers();
134 void updateGraduatedSymbolIcon();
140 void changeRangeSymbol(
int rangeIdx );
141 void changeRange(
int rangeIdx );
143 void changeSelectedSymbols();
147 void refreshSymbolView()
override;
149 void keyPressEvent(
QKeyEvent* event )
override;
158 QgsGraduatedSymbolRendererV2Model*
mModel;
164 #endif // QGSGRADUATEDSYMBOLRENDERERV2WIDGET_H
virtual int rowCount(const QModelIndex &parent) const=0
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const=0
virtual bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent)
virtual QStringList mimeTypes() const
virtual void sort(int column, Qt::SortOrder order)
void rowsMoved(const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destinationParent, int destinationRow)
virtual Qt::DropActions supportedDropActions() const
virtual QVariant data(const QModelIndex &index, int role) const=0
virtual QMimeData * mimeData(const QModelIndexList &indexes) const
virtual int columnCount(const QModelIndex &parent) const=0
virtual bool setData(const QModelIndex &index, const QVariant &value, int role)
virtual Qt::ItemFlags flags(const QModelIndex &index) const
Represents a vector layer which manages a vector based data sets.