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" 119 void countFeatures();
122 void refineRuleScales();
123 void refineRuleCategories();
124 void refineRuleRanges();
126 void setRenderingOrder();
129 void selectedRulesChanged();
131 void saveSectionWidth(
int section,
int oldSize,
int newSize );
132 void restoreSectionWidths();
135 void refineRule(
int type );
136 void refineRuleCategoriesGui(
const QModelIndexList& index );
137 void refineRuleRangesGui(
const QModelIndexList& index );
138 void refineRuleScalesGui(
const QModelIndexList& index );
144 void refreshSymbolView()
override;
145 void keyPressEvent(
QKeyEvent* event )
override;
156 void copy()
override;
157 void paste()
override;
164 #include "ui_qgsrendererrulepropsdialogbase.h" 178 void buildExpression();
179 void accept()
override;
192 #endif // QGSRULEBASEDRENDERERV2WIDGET_H QgsRuleBasedRendererV2 * mR
QMap< QgsRuleBasedRendererV2::Rule *, int > duplicateCountMap
QgsSymbolV2SelectorDialog * mSymbolSelector
QgsMapCanvas * mMapCanvas
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 * mRule
QgsRuleBasedRendererV2::Rule * rule()
Represents a vector layer which manages a vector based data sets.