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;
32 Qt::DropActions supportedDropActions()
const;
33 QVariant data(
const QModelIndex &index,
int role )
const;
34 bool setData(
const QModelIndex & index,
const QVariant & value,
int role );
35 QVariant headerData(
int section, Qt::Orientation orientation,
int role )
const;
36 int rowCount(
const QModelIndex &parent = QModelIndex() )
const;
37 int columnCount(
const QModelIndex & = QModelIndex() )
const;
38 QModelIndex
index(
int row,
int column,
const QModelIndex &parent = QModelIndex() )
const;
39 QModelIndex parent(
const QModelIndex &index )
const;
40 QStringList mimeTypes()
const;
41 QMimeData *mimeData(
const QModelIndexList &indexes )
const;
42 bool dropMimeData(
const QMimeData *data, Qt::DropAction action,
int row,
int column,
const QModelIndex &parent );
49 void deleteRows( QList<int> rows );
51 void sort(
int column, Qt::SortOrder order = Qt::AscendingOrder );
52 void updateSymbology();
69 void drawPrimitive( PrimitiveElement element,
const QStyleOption * option, QPainter * painter,
const QWidget * widget = 0 )
const;
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 );
150 #endif // QGSGRADUATEDSYMBOLRENDERERV2WIDGET_H