16 #ifndef QGSGRADUATEDSYMBOLRENDERERV2WIDGET_H
17 #define QGSGRADUATEDSYMBOLRENDERERV2WIDGET_H
21 #include <QStandardItem>
22 #include <QProxyStyle>
24 #include "ui_qgsgraduatedsymbolrendererv2widget.h"
31 Qt::ItemFlags flags(
const QModelIndex &
index )
const override;
32 Qt::DropActions supportedDropActions()
const override;
33 QVariant data(
const QModelIndex &index,
int role )
const override;
34 bool setData(
const QModelIndex & index,
const QVariant & value,
int role )
override;
35 QVariant headerData(
int section, Qt::Orientation orientation,
int role )
const override;
36 int rowCount(
const QModelIndex &parent = QModelIndex() )
const override;
37 int columnCount(
const QModelIndex & = QModelIndex() )
const override;
38 QModelIndex
index(
int row,
int column,
const QModelIndex &parent = QModelIndex() )
const override;
39 QModelIndex parent(
const QModelIndex &index )
const override;
40 QStringList mimeTypes()
const override;
41 QMimeData *mimeData(
const QModelIndexList &indexes )
const override;
42 bool dropMimeData(
const QMimeData *data, Qt::DropAction action,
int row,
int column,
const QModelIndex &parent )
override;
49 void deleteRows( QList<int> rows );
51 void sort(
int column, Qt::SortOrder order = Qt::AscendingOrder )
override;
52 void updateSymbology();
69 void drawPrimitive( PrimitiveElement element,
const QStyleOption * option, QPainter * painter,
const QWidget * widget = 0 )
const override;
85 void changeGraduatedSymbol();
86 void graduatedColumnChanged( QString field );
87 void classifyGraduated();
88 void reapplyColorRamp();
89 void rangesDoubleClicked(
const QModelIndex & idx );
90 void rangesClicked(
const QModelIndex & idx );
91 void changeCurrentValue( QStandardItem * item );
98 void deleteAllClasses();
100 void toggleBoundariesLink(
bool linked );
102 void rotationFieldChanged( QString fldName );
103 void sizeScaleFieldChanged( QString fldName );
105 void labelFormatChanged();
107 void showSymbolLevels();
110 void modelDataChanged();
113 void updateUiFromRenderer(
bool updateCount =
true );
114 void connectUpdateHandlers();
115 void disconnectUpdateHandlers();
118 void updateGraduatedSymbolIcon();
121 QList<int> selectedClasses();
124 void changeRangeSymbol(
int rangeIdx );
125 void changeRange(
int rangeIdx );
127 void changeSelectedSymbols();
133 void keyPressEvent( QKeyEvent* event )
override;
150 #endif // QGSGRADUATEDSYMBOLRENDERERV2WIDGET_H