98 int addGroup( QString groupName,
int parent = 0 );
116 bool addSymbol( QString name,
QgsSymbolV2* symbol,
bool update =
false );
123 int addTag( QString tagName );
135 int colorRampCount();
138 QStringList colorRampNames();
145 int colorrampId( QString name );
158 bool tagSymbol( StyleEntity type, QString symbol, QStringList tags );
168 bool detagSymbol( StyleEntity type, QString symbol, QStringList tags );
171 bool removeSymbol( QString name );
174 bool renameSymbol( QString oldName, QString newName );
180 const QgsSymbolV2* symbolRef( QString name )
const;
186 QStringList symbolNames();
190 int symbolId( QString name );
192 int groupId( QString group );
194 int tagId( QString tag );
196 int smartgroupId( QString smartgroup );
199 QStringList groupNames();
207 QStringList symbolsOfGroup( StyleEntity type,
int groupid );
215 QStringList symbolsWithTag( StyleEntity type,
int tagid );
224 bool group( StyleEntity type, QString name,
int groupid );
232 void rename( StyleEntity type,
int id, QString newName );
239 void remove( StyleEntity type,
int id );
249 bool saveSymbol( QString name,
QgsSymbolV2* symbol,
int groupid, QStringList tags );
262 bool removeColorRamp( QString name );
265 bool renameColorRamp( QString oldName, QString newName );
269 bool load( QString filename );
272 bool save( QString filename = QString() );
286 QStringList findSymbols( StyleEntity type, QString qword );
294 QStringList tagsOfSymbol( StyleEntity type, QString symbol );
300 QStringList smartgroupNames();
307 QString smartgroupOperator(
int id );
310 QStringList symbolsOfSmartgroup( StyleEntity type,
int id );
313 bool exportXML( QString filename );
316 bool importXML( QString filename );
319 void symbolSaved( QString name,
QgsSymbolV2* symbol );
334 bool openDB( QString filename );
340 bool runEmptyQuery(
char* query,
bool freeQuery =
true );
343 char* getGroupRemoveQuery(
int id );
346 int getId( QString table, QString name );
355 bool updateSymbol(
StyleEntity type, QString name );