16 #ifndef QGSRULEBASEDRENDERERV2WIDGET_H 17 #define QGSRULEBASEDRENDERERV2WIDGET_H 26 #include <QAbstractItemModel> 52 virtual QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole )
const override;
53 virtual QVariant headerData(
int section, Qt::Orientation orientation,
54 int role = Qt::DisplayRole )
const override;
63 virtual bool setData(
const QModelIndex & index,
const QVariant & value,
int role = Qt::EditRole )
override;
68 QMimeData *mimeData(
const QModelIndexList &indexes )
const override;
69 bool dropMimeData(
const QMimeData *data, Qt::DropAction action,
int row,
int column,
const QModelIndex &parent )
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" 122 void countFeatures();
125 void refineRuleScales();
126 void refineRuleCategories();
127 void refineRuleRanges();
129 void setRenderingOrder();
132 void selectedRulesChanged();
134 void saveSectionWidth(
int section,
int oldSize,
int newSize );
135 void restoreSectionWidths();
138 void refineRule(
int type );
140 void refineRuleCategoriesGui(
const QModelIndexList& index );
142 void refineRuleRangesGui(
const QModelIndexList& index );
143 void refineRuleScalesGui(
const QModelIndexList& index );
149 void refreshSymbolView()
override;
150 void keyPressEvent(
QKeyEvent* event )
override;
161 void copy()
override;
162 void paste()
override;
168 void liveUpdateRuleFromPanel();
175 #include "ui_qgsrendererrulepropsdialogbase.h" 213 void buildExpression();
223 virtual void setDockMode(
bool dockMode );
250 void buildExpression();
251 void accept()
override;
259 #endif // QGSRULEBASEDRENDERERV2WIDGET_H QgsRuleBasedRendererV2 * mR
QMap< QgsRuleBasedRendererV2::Rule *, int > duplicateCountMap
Map canvas is a class for displaying all GIS data types on a canvas.
This class keeps data about a rules for rule-based renderer.
QMap< QgsRuleBasedRendererV2::Rule *, QgsRuleBasedRendererV2Count > mFeatureCountMap
When drawing a vector layer with rule-based renderer, it goes through the rules and draws features wi...
QgsRuleBasedRendererV2::Rule * rule()
Represents a vector layer which manages a vector based data sets.
Tree model for the rules: