98 int addGroup(
const QString& groupName,
int parent = 0 );
123 int addTag(
const QString& tagName );
135 int colorRampCount();
145 int colorrampId(
const QString& name );
171 bool removeSymbol(
const QString& name );
174 bool renameSymbol(
const QString& oldName,
const QString& newName );
190 int symbolId(
const QString& name );
192 int groupId(
const QString& group );
194 int tagId(
const QString& tag );
196 int smartgroupId(
const QString& smartgroup );
207 QStringList symbolsOfGroup( StyleEntity type,
int groupid );
215 QStringList symbolsWithTag( StyleEntity type,
int tagid );
224 bool group( StyleEntity type,
const QString& name,
int groupid );
232 void rename( StyleEntity type,
int id,
const QString& newName );
239 void remove( StyleEntity type,
int id );
262 bool removeColorRamp(
const QString& name );
265 bool renameColorRamp(
const QString& oldName,
const QString& newName );
268 bool load(
const QString& filename );
306 QString smartgroupOperator(
int id );
309 QStringList symbolsOfSmartgroup( StyleEntity type,
int id );
312 bool exportXML(
const QString& filename );
315 bool importXML(
const QString& filename );
333 bool openDB(
const QString& filename );
339 bool runEmptyQuery(
char* query,
bool freeQuery =
true );
342 char* getGroupRemoveQuery(
int id );
QMultiMap< QString, QString > QgsSmartConditionMap
QString fileName()
return current file name of the style
static QgsStyleV2 * mDefaultStyle
QMap< int, QString > QgsSymbolGroupMap
QMap< QString, QgsVectorColorRampV2 * > QgsVectorColorRampV2Map
QgsVectorColorRampV2Map mColorRamps
StyleEntity
Enum for Entities involved in a style.
QString errorString()
return last error from load/save operation