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