16 #ifndef QGSRULEBASEDRENDERERV2WIDGET_H
17 #define QGSRULEBASEDRENDERERV2WIDGET_H
26 #include <QAbstractItemModel>
54 int role = Qt::DisplayRole )
const override;
78 void updateRule(
const QModelIndex& parent,
int row );
83 void willAddRules(
const QModelIndex& parent,
int count );
84 void finishedAddingRules();
88 void clearFeatureCounts();
98 #include "ui_qgsrulebasedrendererv2widget.h"
119 void countFeatures();
122 void refineRuleScales();
123 void refineRuleCategories();
124 void refineRuleRanges();
126 void setRenderingOrder();
130 void saveSectionWidth(
int section,
int oldSize,
int newSize );
131 void restoreSectionWidths();
134 void refineRule(
int type );
135 void refineRuleCategoriesGui(
const QModelIndexList& index );
136 void refineRuleRangesGui(
const QModelIndexList& index );
137 void refineRuleScalesGui(
const QModelIndexList& index );
155 void copy()
override;
156 void paste()
override;
163 #include "ui_qgsrendererrulepropsdialogbase.h"
177 void buildExpression();
191 #endif // QGSRULEBASEDRENDERERV2WIDGET_H
QgsRuleBasedRendererV2 * mR
QMap< QgsRuleBasedRendererV2::Rule *, int > duplicateCountMap
virtual int rowCount(const QModelIndex &parent) const =0
QgsSymbolV2SelectorDialog * mSymbolSelector
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const =0
QgsMapCanvas * mMapCanvas
virtual bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent)
Map canvas is a class for displaying all GIS data types on a canvas.
virtual QStringList mimeTypes() const
virtual Qt::DropActions supportedDropActions() const
This class keeps data about a rules for rule-based renderer.
virtual QVariant data(const QModelIndex &index, int role) const =0
virtual QMimeData * mimeData(const QModelIndexList &indexes) const
QMap< QgsRuleBasedRendererV2::Rule *, QgsRuleBasedRendererV2Count > mFeatureCountMap
virtual bool removeRows(int row, int count, const QModelIndex &parent)
When drawing a vector layer with rule-based renderer, it goes through the rules and draws features wi...
virtual int columnCount(const QModelIndex &parent) const =0
virtual bool setData(const QModelIndex &index, const QVariant &value, int role)
QgsRuleBasedRendererV2::Rule * mRule
virtual Qt::ItemFlags flags(const QModelIndex &index) const
QgsRuleBasedRendererV2::Rule * rule()
Represents a vector layer which manages a vector based data sets.