15 #ifndef QGSCATEGORIZEDSYMBOLRENDERERV2WIDGET_H
16 #define QGSCATEGORIZEDSYMBOLRENDERERV2WIDGET_H
20 #include <QStandardItem>
21 #include <QProxyStyle>
26 #include "ui_qgscategorizedsymbolrendererv2widget.h"
33 Qt::ItemFlags flags(
const QModelIndex &
index )
const;
34 Qt::DropActions supportedDropActions()
const;
35 QVariant data(
const QModelIndex &index,
int role )
const;
36 bool setData(
const QModelIndex & index,
const QVariant & value,
int role );
37 QVariant headerData(
int section, Qt::Orientation orientation,
int role )
const;
38 int rowCount(
const QModelIndex &parent = QModelIndex() )
const;
39 int columnCount(
const QModelIndex & = QModelIndex() )
const;
40 QModelIndex
index(
int row,
int column,
const QModelIndex &parent = QModelIndex() )
const;
41 QModelIndex parent(
const QModelIndex &index )
const;
42 QStringList mimeTypes()
const;
43 QMimeData *mimeData(
const QModelIndexList &indexes )
const;
44 bool dropMimeData(
const QMimeData *data, Qt::DropAction action,
int row,
int column,
const QModelIndex &parent );
50 void deleteRows( QList<int> rows );
52 void sort(
int column, Qt::SortOrder order = Qt::AscendingOrder );
53 void updateSymbology();
69 void drawPrimitive( PrimitiveElement element,
const QStyleOption * option, QPainter * painter,
const QWidget * widget = 0 )
const;
84 void changeCategorizedSymbol();
85 void categoryColumnChanged( QString field );
86 void categoriesDoubleClicked(
const QModelIndex & idx );
89 void applyColorRamp();
90 void deleteCategories();
91 void deleteAllCategories();
93 void rotationFieldChanged( QString fldName );
94 void sizeScaleFieldChanged( QString fldName );
97 void showSymbolLevels();
103 void updateUiFromRenderer();
105 void updateCategorizedSymbolIcon();
108 void populateCategories();
111 int currentCategoryRow();
114 QList<int> selectedCategories();
117 void changeSelectedSymbols();
119 void changeCategorySymbol();
126 void keyPressEvent( QKeyEvent* event );
138 QString mOldClassificationAttribute;
142 #endif // QGSCATEGORIZEDSYMBOLRENDERERV2WIDGET_H