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;
91 void changeGraduatedSymbol();
92 void graduatedColumnChanged(
const QString& field );
93 void classifyGraduated();
94 void reapplyColorRamp();
96 void rangesDoubleClicked(
const QModelIndex & idx );
103 void deleteClasses();
105 void deleteAllClasses();
107 void toggleBoundariesLink(
bool linked );
109 void sizeScaleFieldChanged(
const QString& fldName );
111 void labelFormatChanged();
113 void showSymbolLevels();
116 void modelDataChanged();
117 void on_mSizeUnitWidget_changed();
118 void on_methodComboBox_currentIndexChanged(
int );
119 void refreshRanges(
bool reset =
false );
122 void updateUiFromRenderer(
bool updateCount =
true );
123 void connectUpdateHandlers();
124 void disconnectUpdateHandlers();
127 void updateGraduatedSymbolIcon();
133 void changeRangeSymbol(
int rangeIdx );
134 void changeRange(
int rangeIdx );
136 void changeSelectedSymbols();
140 void refreshSymbolView()
override;
142 void keyPressEvent(
QKeyEvent* event )
override;
151 QgsGraduatedSymbolRendererV2Model*
mModel;
157 #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.