QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
Loading...
Searching...
No Matches
qgsstyle.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsstyle.h
3 ---------------------
4 begin : November 2009
5 copyright : (C) 2009 by Martin Dobias
6 email : wonder dot sk at gmail dot com
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
16#ifndef QGSSTYLE_H
17#define QGSSTYLE_H
18
19#include "qgis_core.h"
20#include "qgis.h"
21#include <QMap>
22#include <QMultiMap>
23#include <QString>
24
25#include <sqlite3.h>
26
27#include "qgssqliteutils.h"
28#include "qgssymbollayerutils.h" // QgsStringMap
29#include "qgstextformat.h"
30#include "qgspallabeling.h"
31#include "qgslegendpatchshape.h"
32
33class QgsSymbol;
34class QgsSymbolLayer;
35class QgsColorRamp;
38class QDomDocument;
39class QDomElement;
40
41typedef QMap<QString, QgsColorRamp * > QgsVectorColorRampMap;
42typedef QMap<int, QString> QgsSymbolGroupMap;
43
48typedef QMap<QString, QgsTextFormat > QgsTextFormatMap;
49
54typedef QMap<QString, QgsPalLayerSettings > QgsLabelSettingsMap;
55
56/*
57 * Constants used to describe copy-paste MIME types
58 */
59#define QGSCLIPBOARD_STYLE_MIME "application/qgis.style"
60
79typedef QMultiMap<QString, QString> QgsSmartConditionMap;
80
81// enumerators representing sqlite DB columns
82
93
98{
101};
102
111
122
133
144
154
159class CORE_EXPORT QgsStyle : public QObject
160{
161 Q_OBJECT
162
163 public:
164
168 QgsStyle( QObject *parent SIP_TRANSFERTHIS = nullptr );
169 ~QgsStyle() override;
170
189
196 QString name() const;
197
204 void setName( const QString &name );
205
215 bool isReadOnly() const;
216
226 void setReadOnly( bool readOnly );
227
239 bool addEntity( const QString &name, const QgsStyleEntityInterface *entity, bool update = false );
240
250 bool addSymbol( const QString &name, QgsSymbol *symbol SIP_TRANSFER, bool update = false );
251
260 bool addColorRamp( const QString &name, QgsColorRamp *colorRamp SIP_TRANSFER, bool update = false );
261
272 bool addTextFormat( const QString &name, const QgsTextFormat &format, bool update = false );
273
284 bool addLabelSettings( const QString &name, const QgsPalLayerSettings &settings, bool update = false );
285
296 bool addLegendPatchShape( const QString &name, const QgsLegendPatchShape &shape, bool update = false );
297
308 bool addSymbol3D( const QString &name, QgsAbstract3DSymbol *symbol SIP_TRANSFER, bool update = false );
309
316 int addTag( const QString &tagName );
317
327 int addSmartgroup( const QString &name, const QString &op, const QgsSmartConditionMap &conditions ) SIP_SKIP;
328
341 int addSmartgroup( const QString &name, const QString &op, const QStringList &matchTag, const QStringList &noMatchTag,
342 const QStringList &matchName, const QStringList &noMatchName );
343
350 QStringList tags() const;
351
353 void clear();
354
359 QgsColorRamp *colorRamp( const QString &name ) const SIP_FACTORY;
360
362 int colorRampCount();
363
365 QStringList colorRampNames() const;
366
368 const QgsColorRamp *colorRampRef( const QString &name ) const;
369
374 int colorrampId( const QString &name );
375
381 QgsTextFormat textFormat( const QString &name ) const;
382
387 int textFormatCount() const;
388
393 QStringList textFormatNames() const;
394
401 int textFormatId( const QString &name );
402
408 QgsPalLayerSettings labelSettings( const QString &name ) const;
409
415 QgsLegendPatchShape legendPatchShape( const QString &name ) const;
416
421 int legendPatchShapesCount() const;
422
430 Qgis::SymbolType legendPatchShapeSymbolType( const QString &name ) const;
431
437 QgsAbstract3DSymbol *symbol3D( const QString &name ) const SIP_FACTORY;
438
443 int symbol3DCount() const;
444
451 QList< Qgis::GeometryType > symbol3DCompatibleGeometryTypes( const QString &name ) const;
452
460 Qgis::GeometryType labelSettingsLayerType( const QString &name ) const;
461
466 int labelSettingsCount() const;
467
472 QStringList labelSettingsNames() const;
473
480 int labelSettingsId( const QString &name );
481
483 static QgsStyle *defaultStyle();
484
486 static void cleanDefaultStyle() SIP_SKIP;
487
497 bool tagSymbol( StyleEntity type, const QString &symbol, const QStringList &tags );
498
508 bool detagSymbol( StyleEntity type, const QString &symbol, const QStringList &tags );
509
518 bool detagSymbol( StyleEntity type, const QString &symbol );
519
521 bool removeSymbol( const QString &name );
522
530 bool renameEntity( StyleEntity type, const QString &oldName, const QString &newName );
531
537 bool renameSymbol( const QString &oldName, const QString &newName );
538
540 QgsSymbol *symbol( const QString &name ) SIP_FACTORY;
541
543 const QgsSymbol *symbolRef( const QString &name ) const;
544
546 int symbolCount();
547
549 QStringList symbolNames() const;
550
555 int symbolId( const QString &name );
556
561 int entityId( StyleEntity type, const QString &name );
562
564 int tagId( const QString &tag );
566 int smartgroupId( const QString &smartgroup );
567
572 QStringList allNames( StyleEntity type ) const;
573
580 QStringList symbolsOfFavorite( StyleEntity type ) const;
581
589 QStringList symbolsWithTag( StyleEntity type, int tagid ) const;
590
598 bool addFavorite( StyleEntity type, const QString &name );
599
607 bool removeFavorite( StyleEntity type, const QString &name );
608
616 bool rename( StyleEntity type, int id, const QString &newName );
617
626 bool remove( StyleEntity type, int id );
627
634 bool removeEntityByName( StyleEntity type, const QString &name );
635
645 bool saveSymbol( const QString &name, QgsSymbol *symbol, bool favorite, const QStringList &tags );
646
656 bool saveColorRamp( const QString &name, QgsColorRamp *ramp, bool favorite, const QStringList &tags );
657
659 bool removeColorRamp( const QString &name );
660
662 bool renameColorRamp( const QString &oldName, const QString &newName );
663
673 bool saveTextFormat( const QString &name, const QgsTextFormat &format, bool favorite, const QStringList &tags );
674
679 bool removeTextFormat( const QString &name );
680
686 bool renameTextFormat( const QString &oldName, const QString &newName );
687
697 bool saveLabelSettings( const QString &name, const QgsPalLayerSettings &settings, bool favorite, const QStringList &tags );
698
703 bool removeLabelSettings( const QString &name );
704
710 bool renameLabelSettings( const QString &oldName, const QString &newName );
711
723 bool saveLegendPatchShape( const QString &name, const QgsLegendPatchShape &shape, bool favorite, const QStringList &tags );
724
730 bool renameLegendPatchShape( const QString &oldName, const QString &newName );
731
736 QStringList legendPatchShapeNames() const;
737
745 const QgsSymbol *previewSymbolForPatchShape( const QgsLegendPatchShape &shape ) const;
746
753 QgsLegendPatchShape defaultPatch( Qgis::SymbolType type, QSizeF size ) const;
754
761 QList< QList< QPolygonF > > defaultPatchAsQPolygonF( Qgis::SymbolType type, QSizeF size ) const;
762
768 enum class TextFormatContext : int
769 {
770 Labeling,
771 };
772
779
785 static QgsTextFormat defaultTextFormatForProject( QgsProject *project, QgsStyle::TextFormatContext context = QgsStyle::TextFormatContext::Labeling );
786
798 bool saveSymbol3D( const QString &name, QgsAbstract3DSymbol *symbol SIP_TRANSFER, bool favorite, const QStringList &tags );
799
805 bool renameSymbol3D( const QString &oldName, const QString &newName );
806
811 QStringList symbol3DNames() const;
812
821 bool createDatabase( const QString &filename );
822
831 bool createMemoryDatabase();
832
841 void createTables();
842
853 bool load( const QString &filename );
854
869 Q_DECL_DEPRECATED bool save( const QString &filename = QString() ) SIP_DEPRECATED;
870
876 QString errorString() const { return mErrorString; }
877
887 QString fileName() const { return mFileName; }
888
900 void setFileName( const QString &filename );
901
909 QStringList findSymbols( StyleEntity type, const QString &qword );
910
918 QStringList tagsOfSymbol( StyleEntity type, const QString &symbol );
919
926 bool isFavorite( StyleEntity type, const QString &name );
927
936 bool symbolHasTag( StyleEntity type, const QString &symbol, const QString &tag );
937
939 QString tag( int id ) const;
940
942 QgsSymbolGroupMap smartgroupsListMap();
943
945 QStringList smartgroupNames() const;
946
948 QgsSmartConditionMap smartgroup( int id );
949
953 QString smartgroupOperator( int id );
954
956 QStringList symbolsOfSmartgroup( StyleEntity type, int id );
957
959 bool exportXml( const QString &filename );
960
962 bool importXml( const QString &filename );
963
972 static bool isXmlStyleFile( const QString &path );
973
974 public slots:
975#ifndef SIP_RUN
976
984 void triggerIconRebuild();
985#endif
986
987 signals:
988
999
1008 void symbolSaved( const QString &name, QgsSymbol *symbol );
1009
1018 void symbolChanged( const QString &name );
1019
1022
1028 void entityTagsChanged( QgsStyle::StyleEntity entity, const QString &name, const QStringList &newTags );
1029
1035 void favoritedChanged( QgsStyle::StyleEntity entity, const QString &name, bool isFavorite );
1036
1042 void entityAdded( QgsStyle::StyleEntity entity, const QString &name );
1043
1050 void entityRemoved( QgsStyle::StyleEntity entity, const QString &name );
1051
1056 void entityRenamed( QgsStyle::StyleEntity entity, const QString &oldName, const QString &newName );
1057
1064 void entityChanged( QgsStyle::StyleEntity entity, const QString &name );
1065
1073 void symbolRemoved( const QString &name );
1074
1080 void symbolRenamed( const QString &oldName, const QString &newName );
1081
1087 void rampRenamed( const QString &oldName, const QString &newName );
1088
1096 void rampAdded( const QString &name );
1097
1105 void rampRemoved( const QString &name );
1106
1115 void rampChanged( const QString &name );
1116
1117
1123 void textFormatRenamed( const QString &oldName, const QString &newName );
1124
1132 void textFormatAdded( const QString &name );
1133
1141 void textFormatRemoved( const QString &name );
1142
1151 void textFormatChanged( const QString &name );
1152
1158 void labelSettingsRenamed( const QString &oldName, const QString &newName );
1159
1167 void labelSettingsAdded( const QString &name );
1168
1176 void labelSettingsRemoved( const QString &name );
1177
1186 void labelSettingsChanged( const QString &name );
1187
1194
1195 private:
1196
1197 QString mName;
1198 bool mReadOnly = false;
1199
1200 QgsSymbolMap mSymbols;
1201 QgsVectorColorRampMap mColorRamps;
1202 QgsTextFormatMap mTextFormats;
1203 QgsLabelSettingsMap mLabelSettings;
1204 QMap<QString, QgsLegendPatchShape > mLegendPatchShapes;
1205 QMap<QString, QgsAbstract3DSymbol * > m3dSymbols;
1206
1207 QHash< QgsStyle::StyleEntity, QHash< QString, QStringList > > mCachedTags;
1208 QHash< QgsStyle::StyleEntity, QHash< QString, bool > > mCachedFavorites;
1209
1210 QString mErrorString;
1211 QString mFileName;
1212
1213 sqlite3_database_unique_ptr mCurrentDB;
1214
1215 std::unique_ptr< QgsSymbol > mPatchMarkerSymbol;
1216 std::unique_ptr< QgsSymbol > mPatchLineSymbol;
1217 std::unique_ptr< QgsSymbol > mPatchFillSymbol;
1218
1219 mutable QHash< int, QHash< QSizeF, QgsLegendPatchShape > > mDefaultPatchCache;
1220 mutable QHash< int, QHash< QSizeF, QList< QList< QPolygonF > > > > mDefaultPatchQPolygonFCache;
1221
1222 QMap< QString, QDomElement > mDeferred3DsymbolElements;
1223 void handleDeferred3DSymbolCreation();
1224
1225 static QgsStyle *sDefaultStyle;
1226
1228 bool openDatabase( const QString &filename );
1229
1231 bool importXml( const QString &filename, int sinceVersion );
1232
1239 bool runEmptyQuery( const QString &query );
1240
1242 int getId( const QString &table, const QString &name );
1243
1245 QString getName( const QString &table, int id ) const;
1246
1255 bool updateSymbol( StyleEntity type, const QString &name );
1256
1257 void clearCachedTags( StyleEntity type, const QString &name );
1258
1262 bool createStyleMetadataTableIfNeeded();
1263 void upgradeIfRequired();
1264
1268 static QString entityTableName( StyleEntity type );
1269
1273 static QString tagmapTableName( StyleEntity type );
1274
1278 static QString tagmapEntityIdFieldName( StyleEntity type );
1279
1280 friend class Qgs3D;
1281 friend class TestStyle;
1282
1283 Q_DISABLE_COPY( QgsStyle )
1284};
1285
1293{
1294
1295#ifdef SIP_RUN
1297 switch ( sipCpp->type() )
1298 {
1300 sipType = sipType_QgsStyleSymbolEntity;
1301 break;
1302
1304 sipType = sipType_QgsStyleColorRampEntity;
1305 break;
1306
1308 sipType = sipType_QgsStyleTextFormatEntity;
1309 break;
1310
1312 sipType = sipType_QgsStyleLabelSettingsEntity;
1313 break;
1314
1317 sipType = 0;
1318 break;
1319 }
1320 SIP_END
1321#endif
1322
1323 public:
1324
1325 virtual ~QgsStyleEntityInterface() = default;
1326
1330 virtual QgsStyle::StyleEntity type() const = 0;
1331
1332};
1333
1341{
1342 public:
1343
1350 : mSymbol( symbol )
1351 {}
1352
1353 QgsStyle::StyleEntity type() const override;
1354
1358 QgsSymbol *symbol() const { return mSymbol; }
1359
1360 private:
1361
1362 QgsSymbol *mSymbol = nullptr;
1363
1364};
1365
1373{
1374 public:
1375
1382 : mRamp( ramp )
1383 {}
1384
1385 QgsStyle::StyleEntity type() const override;
1386
1390 QgsColorRamp *ramp() const { return mRamp; }
1391
1392 private:
1393
1394 QgsColorRamp *mRamp = nullptr;
1395};
1396
1404{
1405 public:
1406
1411 : mFormat( format )
1412 {}
1413
1414 QgsStyle::StyleEntity type() const override;
1415
1419 QgsTextFormat format() const { return mFormat; }
1420
1421 private:
1422
1423 QgsTextFormat mFormat;
1424
1425};
1426
1434{
1435 public:
1436
1441 : mSettings( settings )
1442 {}
1443
1444 QgsStyle::StyleEntity type() const override;
1445
1446
1450 const QgsPalLayerSettings &settings() const { return mSettings; }
1451
1452 private:
1453
1454 QgsPalLayerSettings mSettings;
1455};
1456
1464{
1465 public:
1466
1471 : mShape( shape )
1472 {}
1473
1474 QgsStyle::StyleEntity type() const override;
1475
1476
1480 const QgsLegendPatchShape &shape() const { return mShape; }
1481
1482 private:
1483
1484 QgsLegendPatchShape mShape;
1485};
1486
1494{
1495 public:
1496
1503 : mSymbol( symbol )
1504 {}
1505
1506 QgsStyle::StyleEntity type() const override;
1507
1511 const QgsAbstract3DSymbol *symbol() const { return mSymbol; }
1512
1513 private:
1514
1515 const QgsAbstract3DSymbol *mSymbol = nullptr;
1516};
1517
1518#endif
The Qgis class provides global constants for use throughout the application.
Definition qgis.h:54
GeometryType
The geometry types are used to group Qgis::WkbType in a coarse way.
Definition qgis.h:255
SymbolType
Attribute editing capabilities which may be supported by vector data providers.
Definition qgis.h:368
Qgs3D is a singleton class containing various registries and other global members related to 3D class...
Definition qgs3d.h:33
Abstract base class for color ramps.
Represents a patch shape for use in map legends.
Contains settings for how a map layer will be labeled.
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
Definition qgsproject.h:107
A color ramp entity for QgsStyle databases.
Definition qgsstyle.h:1373
QgsStyleColorRampEntity(QgsColorRamp *ramp)
Constructor for QgsStyleColorRampEntity, with the specified color ramp.
Definition qgsstyle.h:1381
QgsColorRamp * ramp() const
Returns the entity's color ramp.
Definition qgsstyle.h:1390
An interface for entities which can be placed in a QgsStyle database.
Definition qgsstyle.h:1293
virtual QgsStyle::StyleEntity type() const =0
Returns the type of style entity.
virtual ~QgsStyleEntityInterface()=default
A label settings entity for QgsStyle databases.
Definition qgsstyle.h:1434
const QgsPalLayerSettings & settings() const
Returns the entity's label settings.
Definition qgsstyle.h:1450
QgsStyleLabelSettingsEntity(const QgsPalLayerSettings &settings)
Constructor for QgsStyleLabelSettingsEntity, with the specified label settings.
Definition qgsstyle.h:1440
A legend patch shape entity for QgsStyle databases.
Definition qgsstyle.h:1464
const QgsLegendPatchShape & shape() const
Returns the entity's legend patch shape.
Definition qgsstyle.h:1480
QgsStyleLegendPatchShapeEntity(const QgsLegendPatchShape &shape)
Constructor for QgsStyleLegendPatchShapeEntity, with the specified legend patch shape.
Definition qgsstyle.h:1470
A 3d symbol entity for QgsStyle databases.
Definition qgsstyle.h:1494
const QgsAbstract3DSymbol * symbol() const
Returns the entity's symbol.
Definition qgsstyle.h:1511
QgsStyleSymbol3DEntity(const QgsAbstract3DSymbol *symbol)
Constructor for QgsStyleSymbol3DEntity, with the specified symbol.
Definition qgsstyle.h:1502
A symbol entity for QgsStyle databases.
Definition qgsstyle.h:1341
QgsStyleSymbolEntity(QgsSymbol *symbol)
Constructor for QgsStyleSymbolEntity, with the specified symbol.
Definition qgsstyle.h:1349
QgsSymbol * symbol() const
Returns the entity's symbol.
Definition qgsstyle.h:1358
A text format entity for QgsStyle databases.
Definition qgsstyle.h:1404
QgsTextFormat format() const
Returns the entity's text format.
Definition qgsstyle.h:1419
QgsStyleTextFormatEntity(const QgsTextFormat &format)
Constructor for QgsStyleTextFormatEntity, with the specified text format.
Definition qgsstyle.h:1410
void labelSettingsChanged(const QString &name)
Emitted whenever a label setting's definition is changed.
void entityChanged(QgsStyle::StyleEntity entity, const QString &name)
Emitted whenever an entity's definition is changed.
void labelSettingsAdded(const QString &name)
Emitted whenever label settings have been added to the style and the database has been updated as a r...
void rampAdded(const QString &name)
Emitted whenever a color ramp has been added to the style and the database has been updated as a resu...
void rebuildIconPreviews()
Emitted whenever icon previews for entities in the style must be rebuilt.
void symbolSaved(const QString &name, QgsSymbol *symbol)
Emitted every time a new symbol has been added to the database.
void aboutToBeDestroyed()
Emitted just before the style object is destroyed.
void labelSettingsRemoved(const QString &name)
Emitted whenever label settings have been removed from the style and the database has been updated as...
StyleEntity
Enum for Entities involved in a style.
Definition qgsstyle.h:179
@ LabelSettingsEntity
Label settings.
Definition qgsstyle.h:185
@ TextFormatEntity
Text formats.
Definition qgsstyle.h:184
@ SmartgroupEntity
Smart groups.
Definition qgsstyle.h:183
@ Symbol3DEntity
3D symbol entity (since QGIS 3.14)
Definition qgsstyle.h:187
@ SymbolEntity
Symbols.
Definition qgsstyle.h:180
@ TagEntity
Tags.
Definition qgsstyle.h:181
@ ColorrampEntity
Color ramps.
Definition qgsstyle.h:182
@ LegendPatchShapeEntity
Legend patch shape (since QGIS 3.14)
Definition qgsstyle.h:186
void symbolRenamed(const QString &oldName, const QString &newName)
Emitted whenever a symbol has been renamed from oldName to newName.
void groupsModified()
Emitted every time a tag or smartgroup has been added, removed, or renamed.
void rampRemoved(const QString &name)
Emitted whenever a color ramp has been removed from the style and the database has been updated as a ...
void entityRenamed(QgsStyle::StyleEntity entity, const QString &oldName, const QString &newName)
Emitted whenever a entity of the specified type has been renamed from oldName to newName.
void textFormatChanged(const QString &name)
Emitted whenever a text format's definition is changed.
void textFormatRenamed(const QString &oldName, const QString &newName)
Emitted whenever a text format has been renamed from oldName to newName.
void labelSettingsRenamed(const QString &oldName, const QString &newName)
Emitted whenever label settings have been renamed from oldName to newName.
QString fileName() const
Returns the current file name of the style database.
Definition qgsstyle.h:887
void rampRenamed(const QString &oldName, const QString &newName)
Emitted whenever a color ramp has been renamed from oldName to newName.
void textFormatAdded(const QString &name)
Emitted whenever a text format has been added to the style and the database has been updated as a res...
void rampChanged(const QString &name)
Emitted whenever a color ramp's definition is changed.
void entityTagsChanged(QgsStyle::StyleEntity entity, const QString &name, const QStringList &newTags)
Emitted whenever an entity's tags are changed.
void favoritedChanged(QgsStyle::StyleEntity entity, const QString &name, bool isFavorite)
Emitted whenever an entity is either favorited or un-favorited.
void entityRemoved(QgsStyle::StyleEntity entity, const QString &name)
Emitted whenever an entity of the specified type is removed from the style and the database has been ...
void entityAdded(QgsStyle::StyleEntity entity, const QString &name)
Emitted every time a new entity has been added to the database.
TextFormatContext
Text format context.
Definition qgsstyle.h:769
@ Labeling
Text format used in labeling.
void symbolRemoved(const QString &name)
Emitted whenever a symbol has been removed from the style and the database has been updated as a resu...
void symbolChanged(const QString &name)
Emitted whenever a symbol's definition is changed.
void textFormatRemoved(const QString &name)
Emitted whenever a text format has been removed from the style and the database has been updated as a...
Abstract base class for all rendered symbols.
Definition qgssymbol.h:94
Container for all settings relating to text rendering.
Unique pointer for sqlite3 databases, which automatically closes the database when the pointer goes o...
QMultiMap< QString, QString > QgsSmartConditionMap
A multimap to hold the smart group conditions as constraint and parameter pairs.
Definition qgsstyle.h:79
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
Definition qgis_sip.h:186
#define SIP_DEPRECATED
Definition qgis_sip.h:106
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53
#define SIP_SKIP
Definition qgis_sip.h:126
#define SIP_TRANSFER
Definition qgis_sip.h:36
#define SIP_FACTORY
Definition qgis_sip.h:76
#define SIP_END
Definition qgis_sip.h:203
QMap< QString, QgsSymbol * > QgsSymbolMap
Definition qgsrenderer.h:45
QMap< QString, QgsPalLayerSettings > QgsLabelSettingsMap
Map of name to label settings.
Definition qgsstyle.h:54
TextFormatTable
Columns available in the text format table.
Definition qgsstyle.h:127
@ TextFormatFavoriteId
Text format is favorite flag.
Definition qgsstyle.h:131
@ TextFormatName
Text format name.
Definition qgsstyle.h:129
@ TextFormatId
Text format ID.
Definition qgsstyle.h:128
@ TextFormatXML
Text format definition (as XML)
Definition qgsstyle.h:130
QMap< QString, QgsTextFormat > QgsTextFormatMap
Map of name to text format.
Definition qgsstyle.h:48
SymbolTable
Columns available in the Symbols table.
Definition qgsstyle.h:87
@ SymbolId
Symbol ID.
Definition qgsstyle.h:88
@ SymbolName
Symbol Name.
Definition qgsstyle.h:89
@ SymbolFavoriteId
Symbol is favorite flag.
Definition qgsstyle.h:91
@ SymbolXML
Symbol definition (as XML)
Definition qgsstyle.h:90
TagmapTable
Columns available in the tag to symbol table.
Definition qgsstyle.h:107
@ TagmapTagId
Tag ID.
Definition qgsstyle.h:108
@ TagmapSymbolId
Symbol ID.
Definition qgsstyle.h:109
QMap< QString, QgsColorRamp * > QgsVectorColorRampMap
Definition qgsstyle.h:41
TagTable
Columns available in the Tags table.
Definition qgsstyle.h:98
@ TagName
Tag name.
Definition qgsstyle.h:100
@ TagId
Tag ID.
Definition qgsstyle.h:99
SmartgroupTable
Columns available in the smart group table.
Definition qgsstyle.h:149
@ SmartgroupXML
Smart group definition (as XML)
Definition qgsstyle.h:152
@ SmartgroupName
Smart group name.
Definition qgsstyle.h:151
@ SmartgroupId
Smart group ID.
Definition qgsstyle.h:150
QMap< int, QString > QgsSymbolGroupMap
Definition qgsstyle.h:42
LabelSettingsTable
Columns available in the label settings table.
Definition qgsstyle.h:138
@ LabelSettingsName
Label settings name.
Definition qgsstyle.h:140
@ LabelSettingsXML
Label settings definition (as XML)
Definition qgsstyle.h:141
@ LabelSettingsFavoriteId
Label settings is favorite flag.
Definition qgsstyle.h:142
@ LabelSettingsId
Label settings ID.
Definition qgsstyle.h:139
ColorrampTable
Columns available in the color ramp table.
Definition qgsstyle.h:116
@ ColorrampId
Color ramp ID.
Definition qgsstyle.h:117
@ ColorrampName
Color ramp name.
Definition qgsstyle.h:118
@ ColorrampFavoriteId
Color ramp is favorite flag.
Definition qgsstyle.h:120
@ ColorrampXML
Color ramp definition (as XML)
Definition qgsstyle.h:119