16 #ifndef QGSRULEBASEDRENDERERV2WIDGET_H
17 #define QGSRULEBASEDRENDERERV2WIDGET_H
26 #include <QAbstractItemModel>
52 int role = Qt::DisplayRole )
const override;
76 void updateRule(
const QModelIndex& parent,
int row );
81 void willAddRules(
const QModelIndex& parent,
int count );
82 void finishedAddingRules();
86 void clearFeatureCounts();
96 #include "ui_qgsrulebasedrendererv2widget.h"
117 void countFeatures();
120 void refineRuleScales();
121 void refineRuleCategories();
122 void refineRuleRanges();
124 void setRenderingOrder();
128 void saveSectionWidth(
int section,
int oldSize,
int newSize );
129 void restoreSectionWidths();
132 void refineRule(
int type );
133 void refineRuleCategoriesGui(
const QModelIndexList& index );
134 void refineRuleRangesGui(
const QModelIndexList& index );
135 void refineRuleScalesGui(
const QModelIndexList& index );
153 void copy()
override;
154 void paste()
override;
161 #include "ui_qgsrendererrulepropsdialogbase.h"
175 void buildExpression();
187 #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
virtual bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent)
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.