15 #ifndef QGSCATEGORIZEDSYMBOLRENDERERV2_H
16 #define QGSCATEGORIZEDSYMBOLRENDERERV2_H
23 #include <QScopedPointer>
42 QVariant value()
const;
44 QString label()
const;
46 void setValue(
const QVariant &value );
48 void setLabel(
const QString &label );
51 bool renderState()
const;
52 void setRenderState(
bool render );
57 void toSld( QDomDocument& doc, QDomElement &element,
QgsStringMap props )
const;
88 virtual QString
dump()
const override;
92 virtual void toSld( QDomDocument& doc, QDomElement &element )
const override;
103 int categoryIndexForValue( QVariant val );
107 int categoryIndexForLabel( QString val );
109 bool updateCategoryValue(
int catIndex,
const QVariant &value );
110 bool updateCategorySymbol(
int catIndex,
QgsSymbolV2* symbol );
111 bool updateCategoryLabel(
int catIndex, QString label );
114 bool updateCategoryRenderState(
int catIndex,
bool render );
117 bool deleteCategory(
int catIndex );
118 void deleteAllCategories();
121 void moveCategory(
int from,
int to );
123 void sortByValue( Qt::SortOrder order = Qt::AscendingOrder );
124 void sortByLabel( Qt::SortOrder order = Qt::AscendingOrder );
133 virtual QDomElement
save( QDomDocument& doc )
override;
159 void setSizeScaleField( QString fieldOrExpression );
160 QString sizeScaleField()
const;
215 #endif // QGSCATEGORIZEDSYMBOLRENDERERV2_H