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 );
53 void toSld( QDomDocument& doc, QDomElement &element,
QgsStringMap props )
const;
81 virtual QString
dump()
const;
85 virtual void toSld( QDomDocument& doc, QDomElement &element )
const;
98 int categoryIndexForValue( QVariant val );
100 bool updateCategoryValue(
int catIndex,
const QVariant &value );
101 bool updateCategorySymbol(
int catIndex,
QgsSymbolV2* symbol );
102 bool updateCategoryLabel(
int catIndex, QString label );
105 bool deleteCategory(
int catIndex );
106 void deleteAllCategories();
109 void moveCategory(
int from,
int to );
111 void sortByValue( Qt::SortOrder order = Qt::AscendingOrder );
112 void sortByLabel( Qt::SortOrder order = Qt::AscendingOrder );
121 virtual QDomElement
save( QDomDocument& doc );
147 void setSizeScaleField( QString fieldOrExpression );
149 QString sizeScaleField()
const;
182 #endif // QGSCATEGORIZEDSYMBOLRENDERERV2_H