QGIS API Documentation 3.29.0-Master (006c3c0232)
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
87{
92};
93
98{
101};
102
107{
110};
111
116{
121};
122
127{
132};
133
138{
143};
144
149{
153};
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
179 {
188 };
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< QgsWkbTypes::GeometryType > symbol3DCompatibleGeometryTypes( const QString &name ) const;
452
460 QgsWkbTypes::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
842 void createTables();
843
854 bool load( const QString &filename );
855
870 Q_DECL_DEPRECATED bool save( const QString &filename = QString() ) SIP_DEPRECATED;
871
877 QString errorString() const { return mErrorString; }
878
888 QString fileName() const { return mFileName; }
889
901 void setFileName( const QString &filename );
902
910 QStringList findSymbols( StyleEntity type, const QString &qword );
911
919 QStringList tagsOfSymbol( StyleEntity type, const QString &symbol );
920
927 bool isFavorite( StyleEntity type, const QString &name );
928
937 bool symbolHasTag( StyleEntity type, const QString &symbol, const QString &tag );
938
940 QString tag( int id ) const;
941
943 QgsSymbolGroupMap smartgroupsListMap();
944
946 QStringList smartgroupNames() const;
947
949 QgsSmartConditionMap smartgroup( int id );
950
954 QString smartgroupOperator( int id );
955
957 QStringList symbolsOfSmartgroup( StyleEntity type, int id );
958
960 bool exportXml( const QString &filename );
961
963 bool importXml( const QString &filename );
964
973 static bool isXmlStyleFile( const QString &path );
974
975 public slots:
976#ifndef SIP_RUN
977
985 void triggerIconRebuild();
986#endif
987
988 signals:
989
1000
1009 void symbolSaved( const QString &name, QgsSymbol *symbol );
1010
1019 void symbolChanged( const QString &name );
1020
1023
1029 void entityTagsChanged( QgsStyle::StyleEntity entity, const QString &name, const QStringList &newTags );
1030
1036 void favoritedChanged( QgsStyle::StyleEntity entity, const QString &name, bool isFavorite );
1037
1043 void entityAdded( QgsStyle::StyleEntity entity, const QString &name );
1044
1051 void entityRemoved( QgsStyle::StyleEntity entity, const QString &name );
1052
1057 void entityRenamed( QgsStyle::StyleEntity entity, const QString &oldName, const QString &newName );
1058
1065 void entityChanged( QgsStyle::StyleEntity entity, const QString &name );
1066
1074 void symbolRemoved( const QString &name );
1075
1081 void symbolRenamed( const QString &oldName, const QString &newName );
1082
1088 void rampRenamed( const QString &oldName, const QString &newName );
1089
1097 void rampAdded( const QString &name );
1098
1106 void rampRemoved( const QString &name );
1107
1116 void rampChanged( const QString &name );
1117
1118
1124 void textFormatRenamed( const QString &oldName, const QString &newName );
1125
1133 void textFormatAdded( const QString &name );
1134
1142 void textFormatRemoved( const QString &name );
1143
1152 void textFormatChanged( const QString &name );
1153
1159 void labelSettingsRenamed( const QString &oldName, const QString &newName );
1160
1168 void labelSettingsAdded( const QString &name );
1169
1177 void labelSettingsRemoved( const QString &name );
1178
1187 void labelSettingsChanged( const QString &name );
1188
1195
1196 private:
1197
1198 QString mName;
1199 bool mReadOnly = false;
1200
1201 QgsSymbolMap mSymbols;
1202 QgsVectorColorRampMap mColorRamps;
1203 QgsTextFormatMap mTextFormats;
1204 QgsLabelSettingsMap mLabelSettings;
1205 QMap<QString, QgsLegendPatchShape > mLegendPatchShapes;
1206 QMap<QString, QgsAbstract3DSymbol * > m3dSymbols;
1207
1208 QHash< QgsStyle::StyleEntity, QHash< QString, QStringList > > mCachedTags;
1209 QHash< QgsStyle::StyleEntity, QHash< QString, bool > > mCachedFavorites;
1210
1211 QString mErrorString;
1212 QString mFileName;
1213
1214 sqlite3_database_unique_ptr mCurrentDB;
1215
1216 std::unique_ptr< QgsSymbol > mPatchMarkerSymbol;
1217 std::unique_ptr< QgsSymbol > mPatchLineSymbol;
1218 std::unique_ptr< QgsSymbol > mPatchFillSymbol;
1219
1220 mutable QHash< int, QHash< QSizeF, QgsLegendPatchShape > > mDefaultPatchCache;
1221 mutable QHash< int, QHash< QSizeF, QList< QList< QPolygonF > > > > mDefaultPatchQPolygonFCache;
1222
1223 QMap< QString, QDomElement > mDeferred3DsymbolElements;
1224 void handleDeferred3DSymbolCreation();
1225
1226 static QgsStyle *sDefaultStyle;
1227
1229 bool openDatabase( const QString &filename );
1230
1232 bool importXml( const QString &filename, int sinceVersion );
1233
1240 bool runEmptyQuery( const QString &query );
1241
1243 int getId( const QString &table, const QString &name );
1244
1246 QString getName( const QString &table, int id ) const;
1247
1256 bool updateSymbol( StyleEntity type, const QString &name );
1257
1258 void clearCachedTags( StyleEntity type, const QString &name );
1259
1263 bool createStyleMetadataTableIfNeeded();
1264 void upgradeIfRequired();
1265
1269 static QString entityTableName( StyleEntity type );
1270
1274 static QString tagmapTableName( StyleEntity type );
1275
1279 static QString tagmapEntityIdFieldName( StyleEntity type );
1280
1281 friend class Qgs3D;
1282 friend class TestStyle;
1283
1284 Q_DISABLE_COPY( QgsStyle )
1285};
1286
1294{
1295
1296#ifdef SIP_RUN
1298 switch ( sipCpp->type() )
1299 {
1301 sipType = sipType_QgsStyleSymbolEntity;
1302 break;
1303
1305 sipType = sipType_QgsStyleColorRampEntity;
1306 break;
1307
1309 sipType = sipType_QgsStyleTextFormatEntity;
1310 break;
1311
1313 sipType = sipType_QgsStyleLabelSettingsEntity;
1314 break;
1315
1318 sipType = 0;
1319 break;
1320 }
1321 SIP_END
1322#endif
1323
1324 public:
1325
1326 virtual ~QgsStyleEntityInterface() = default;
1327
1331 virtual QgsStyle::StyleEntity type() const = 0;
1332
1333};
1334
1342{
1343 public:
1344
1351 : mSymbol( symbol )
1352 {}
1353
1354 QgsStyle::StyleEntity type() const override;
1355
1359 QgsSymbol *symbol() const { return mSymbol; }
1360
1361 private:
1362
1363 QgsSymbol *mSymbol = nullptr;
1364
1365};
1366
1374{
1375 public:
1376
1383 : mRamp( ramp )
1384 {}
1385
1386 QgsStyle::StyleEntity type() const override;
1387
1391 QgsColorRamp *ramp() const { return mRamp; }
1392
1393 private:
1394
1395 QgsColorRamp *mRamp = nullptr;
1396};
1397
1405{
1406 public:
1407
1412 : mFormat( format )
1413 {}
1414
1415 QgsStyle::StyleEntity type() const override;
1416
1420 QgsTextFormat format() const { return mFormat; }
1421
1422 private:
1423
1424 QgsTextFormat mFormat;
1425
1426};
1427
1435{
1436 public:
1437
1442 : mSettings( settings )
1443 {}
1444
1445 QgsStyle::StyleEntity type() const override;
1446
1447
1451 const QgsPalLayerSettings &settings() const { return mSettings; }
1452
1453 private:
1454
1455 QgsPalLayerSettings mSettings;
1456};
1457
1465{
1466 public:
1467
1472 : mShape( shape )
1473 {}
1474
1475 QgsStyle::StyleEntity type() const override;
1476
1477
1481 const QgsLegendPatchShape &shape() const { return mShape; }
1482
1483 private:
1484
1485 QgsLegendPatchShape mShape;
1486};
1487
1495{
1496 public:
1497
1504 : mSymbol( symbol )
1505 {}
1506
1507 QgsStyle::StyleEntity type() const override;
1508
1512 const QgsAbstract3DSymbol *symbol() const { return mSymbol; }
1513
1514 private:
1515
1516 const QgsAbstract3DSymbol *mSymbol = nullptr;
1517};
1518
1519#endif
The Qgis class provides global constants for use throughout the application.
Definition: qgis.h:72
SymbolType
Symbol types.
Definition: qgis.h:206
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.
Definition: qgscolorramp.h:30
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:105
A color ramp entity for QgsStyle databases.
Definition: qgsstyle.h:1374
QgsStyleColorRampEntity(QgsColorRamp *ramp)
Constructor for QgsStyleColorRampEntity, with the specified color ramp.
Definition: qgsstyle.h:1382
QgsColorRamp * ramp() const
Returns the entity's color ramp.
Definition: qgsstyle.h:1391
An interface for entities which can be placed in a QgsStyle database.
Definition: qgsstyle.h:1294
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:1435
const QgsPalLayerSettings & settings() const
Returns the entity's label settings.
Definition: qgsstyle.h:1451
QgsStyleLabelSettingsEntity(const QgsPalLayerSettings &settings)
Constructor for QgsStyleLabelSettingsEntity, with the specified label settings.
Definition: qgsstyle.h:1441
A legend patch shape entity for QgsStyle databases.
Definition: qgsstyle.h:1465
const QgsLegendPatchShape & shape() const
Returns the entity's legend patch shape.
Definition: qgsstyle.h:1481
QgsStyleLegendPatchShapeEntity(const QgsLegendPatchShape &shape)
Constructor for QgsStyleLegendPatchShapeEntity, with the specified legend patch shape.
Definition: qgsstyle.h:1471
A 3d symbol entity for QgsStyle databases.
Definition: qgsstyle.h:1495
const QgsAbstract3DSymbol * symbol() const
Returns the entity's symbol.
Definition: qgsstyle.h:1512
QgsStyleSymbol3DEntity(const QgsAbstract3DSymbol *symbol)
Constructor for QgsStyleSymbol3DEntity, with the specified symbol.
Definition: qgsstyle.h:1503
A symbol entity for QgsStyle databases.
Definition: qgsstyle.h:1342
QgsStyleSymbolEntity(QgsSymbol *symbol)
Constructor for QgsStyleSymbolEntity, with the specified symbol.
Definition: qgsstyle.h:1350
QgsSymbol * symbol() const
Returns the entity's symbol.
Definition: qgsstyle.h:1359
A text format entity for QgsStyle databases.
Definition: qgsstyle.h:1405
QgsTextFormat format() const
Returns the entity's text format.
Definition: qgsstyle.h:1420
QgsStyleTextFormatEntity(const QgsTextFormat &format)
Constructor for QgsStyleTextFormatEntity, with the specified text format.
Definition: qgsstyle.h:1411
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:888
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:93
Container for all settings relating to text rendering.
Definition: qgstextformat.h:41
GeometryType
The geometry types are used to group QgsWkbTypes::Type in a coarse way.
Definition: qgswkbtypes.h:141
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