96 int addGroup( QString groupName,
int parent = 0 );
114 bool addSymbol( QString name,
QgsSymbolV2* symbol,
bool update =
false );
121 int addTag( QString tagName );
133 int colorRampCount();
136 QStringList colorRampNames();
143 int colorrampId( QString name );
156 bool tagSymbol( StyleEntity type, QString symbol, QStringList tags );
166 bool detagSymbol( StyleEntity type, QString symbol, QStringList tags );
169 bool removeSymbol( QString name );
173 bool renameSymbol( QString oldName, QString newName );
179 const QgsSymbolV2* symbolRef( QString name )
const;
185 QStringList symbolNames();
189 int symbolId( QString name );
191 int groupId( QString group );
193 int tagId( QString tag );
195 int smartgroupId( QString smartgroup );
198 QStringList groupNames();
206 QStringList symbolsOfGroup( StyleEntity type,
int groupid );
214 QStringList symbolsWithTag( StyleEntity type,
int tagid );
223 bool group( StyleEntity type, QString name,
int groupid );
231 void rename( StyleEntity type,
int id, QString newName );
238 void remove( StyleEntity type,
int id );
248 bool saveSymbol( QString name,
QgsSymbolV2* symbol,
int groupid, QStringList tags );
261 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 );
331 bool openDB( QString filename );
337 bool runEmptyQuery(
char* query,
bool freeQuery =
true );
340 char* getGroupRemoveQuery(
int id );
343 int getId( QString table, QString name );
352 bool updateSymbol(
StyleEntity type, QString name );