QGIS API Documentation 3.39.0-Master (3aed037ce22)
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
193
200 QString name() const;
201
208 void setName( const QString &name );
209
219 bool isInitialized() const { return mInitialized; }
220
230 bool isReadOnly() const;
231
241 void setReadOnly( bool readOnly );
242
254 bool addEntity( const QString &name, const QgsStyleEntityInterface *entity, bool update = false );
255
265 bool addSymbol( const QString &name, QgsSymbol *symbol SIP_TRANSFER, bool update = false );
266
275 bool addColorRamp( const QString &name, QgsColorRamp *colorRamp SIP_TRANSFER, bool update = false );
276
287 bool addTextFormat( const QString &name, const QgsTextFormat &format, bool update = false );
288
299 bool addLabelSettings( const QString &name, const QgsPalLayerSettings &settings, bool update = false );
300
311 bool addLegendPatchShape( const QString &name, const QgsLegendPatchShape &shape, bool update = false );
312
323 bool addSymbol3D( const QString &name, QgsAbstract3DSymbol *symbol SIP_TRANSFER, bool update = false );
324
331 int addTag( const QString &tagName );
332
342 int addSmartgroup( const QString &name, const QString &op, const QgsSmartConditionMap &conditions ) SIP_SKIP;
343
356 int addSmartgroup( const QString &name, const QString &op, const QStringList &matchTag, const QStringList &noMatchTag,
357 const QStringList &matchName, const QStringList &noMatchName );
358
364 QStringList tags() const;
365
367 void clear();
368
373 QgsColorRamp *colorRamp( const QString &name ) const SIP_FACTORY;
374
376 int colorRampCount();
377
379 QStringList colorRampNames() const;
380
382 const QgsColorRamp *colorRampRef( const QString &name ) const;
383
388 int colorrampId( const QString &name );
389
395 QgsTextFormat textFormat( const QString &name ) const;
396
401 int textFormatCount() const;
402
407 QStringList textFormatNames() const;
408
415 int textFormatId( const QString &name );
416
422 QgsPalLayerSettings labelSettings( const QString &name ) const;
423
429 QgsLegendPatchShape legendPatchShape( const QString &name ) const;
430
435 int legendPatchShapesCount() const;
436
444 Qgis::SymbolType legendPatchShapeSymbolType( const QString &name ) const;
445
451 QgsAbstract3DSymbol *symbol3D( const QString &name ) const SIP_FACTORY;
452
457 int symbol3DCount() const;
458
465 QList< Qgis::GeometryType > symbol3DCompatibleGeometryTypes( const QString &name ) const;
466
474 Qgis::GeometryType labelSettingsLayerType( const QString &name ) const;
475
480 int labelSettingsCount() const;
481
486 QStringList labelSettingsNames() const;
487
494 int labelSettingsId( const QString &name );
495
504 static QgsStyle *defaultStyle( bool initialize = true );
505
507 static void cleanDefaultStyle() SIP_SKIP;
508
518 bool tagSymbol( StyleEntity type, const QString &symbol, const QStringList &tags );
519
529 bool detagSymbol( StyleEntity type, const QString &symbol, const QStringList &tags );
530
539 bool detagSymbol( StyleEntity type, const QString &symbol );
540
542 bool removeSymbol( const QString &name );
543
551 bool renameEntity( StyleEntity type, const QString &oldName, const QString &newName );
552
558 bool renameSymbol( const QString &oldName, const QString &newName );
559
561 QgsSymbol *symbol( const QString &name ) SIP_FACTORY;
562
564 const QgsSymbol *symbolRef( const QString &name ) const;
565
567 int symbolCount();
568
570 QStringList symbolNames() const;
571
576 int symbolId( const QString &name );
577
582 int entityId( StyleEntity type, const QString &name );
583
585 int tagId( const QString &tag );
587 int smartgroupId( const QString &smartgroup );
588
593 QStringList allNames( StyleEntity type ) const;
594
601 QStringList symbolsOfFavorite( StyleEntity type ) const;
602
610 QStringList symbolsWithTag( StyleEntity type, int tagid ) const;
611
619 bool addFavorite( StyleEntity type, const QString &name );
620
628 bool removeFavorite( StyleEntity type, const QString &name );
629
637 bool rename( StyleEntity type, int id, const QString &newName );
638
647 bool remove( StyleEntity type, int id );
648
655 bool removeEntityByName( StyleEntity type, const QString &name );
656
666 bool saveSymbol( const QString &name, QgsSymbol *symbol, bool favorite, const QStringList &tags );
667
677 bool saveColorRamp( const QString &name, QgsColorRamp *ramp, bool favorite, const QStringList &tags );
678
680 bool removeColorRamp( const QString &name );
681
683 bool renameColorRamp( const QString &oldName, const QString &newName );
684
694 bool saveTextFormat( const QString &name, const QgsTextFormat &format, bool favorite, const QStringList &tags );
695
700 bool removeTextFormat( const QString &name );
701
707 bool renameTextFormat( const QString &oldName, const QString &newName );
708
718 bool saveLabelSettings( const QString &name, const QgsPalLayerSettings &settings, bool favorite, const QStringList &tags );
719
724 bool removeLabelSettings( const QString &name );
725
731 bool renameLabelSettings( const QString &oldName, const QString &newName );
732
744 bool saveLegendPatchShape( const QString &name, const QgsLegendPatchShape &shape, bool favorite, const QStringList &tags );
745
751 bool renameLegendPatchShape( const QString &oldName, const QString &newName );
752
757 QStringList legendPatchShapeNames() const;
758
766 const QgsSymbol *previewSymbolForPatchShape( const QgsLegendPatchShape &shape ) const;
767
774 QgsLegendPatchShape defaultPatch( Qgis::SymbolType type, QSizeF size ) const;
775
782 QList< QList< QPolygonF > > defaultPatchAsQPolygonF( Qgis::SymbolType type, QSizeF size ) const;
783
789 enum class TextFormatContext : int
790 {
791 Labeling,
792 };
793
800
806 static QgsTextFormat defaultTextFormatForProject( QgsProject *project, QgsStyle::TextFormatContext context = QgsStyle::TextFormatContext::Labeling );
807
819 bool saveSymbol3D( const QString &name, QgsAbstract3DSymbol *symbol SIP_TRANSFER, bool favorite, const QStringList &tags );
820
826 bool renameSymbol3D( const QString &oldName, const QString &newName );
827
832 QStringList symbol3DNames() const;
833
841 bool createDatabase( const QString &filename );
842
850 bool createMemoryDatabase();
851
859 void createTables();
860
871 bool load( const QString &filename );
872
887 Q_DECL_DEPRECATED bool save( const QString &filename = QString() ) SIP_DEPRECATED;
888
894 QString errorString() const { return mErrorString; }
895
905 QString fileName() const { return mFileName; }
906
918 void setFileName( const QString &filename );
919
927 QStringList findSymbols( StyleEntity type, const QString &qword );
928
936 QStringList tagsOfSymbol( StyleEntity type, const QString &symbol );
937
944 bool isFavorite( StyleEntity type, const QString &name );
945
954 bool symbolHasTag( StyleEntity type, const QString &symbol, const QString &tag );
955
957 QString tag( int id ) const;
958
960 QgsSymbolGroupMap smartgroupsListMap();
961
963 QStringList smartgroupNames() const;
964
966 QgsSmartConditionMap smartgroup( int id );
967
971 QString smartgroupOperator( int id );
972
974 QStringList symbolsOfSmartgroup( StyleEntity type, int id );
975
977 bool exportXml( const QString &filename );
978
980 bool importXml( const QString &filename );
981
990 static bool isXmlStyleFile( const QString &path );
991
992 public slots:
993#ifndef SIP_RUN
994
1002 void triggerIconRebuild();
1003#endif
1004
1005 signals:
1006
1016
1027
1036 void symbolSaved( const QString &name, QgsSymbol *symbol );
1037
1046 void symbolChanged( const QString &name );
1047
1050
1056 void entityTagsChanged( QgsStyle::StyleEntity entity, const QString &name, const QStringList &newTags );
1057
1063 void favoritedChanged( QgsStyle::StyleEntity entity, const QString &name, bool isFavorite );
1064
1070 void entityAdded( QgsStyle::StyleEntity entity, const QString &name );
1071
1078 void entityRemoved( QgsStyle::StyleEntity entity, const QString &name );
1079
1084 void entityRenamed( QgsStyle::StyleEntity entity, const QString &oldName, const QString &newName );
1085
1092 void entityChanged( QgsStyle::StyleEntity entity, const QString &name );
1093
1101 void symbolRemoved( const QString &name );
1102
1108 void symbolRenamed( const QString &oldName, const QString &newName );
1109
1115 void rampRenamed( const QString &oldName, const QString &newName );
1116
1124 void rampAdded( const QString &name );
1125
1133 void rampRemoved( const QString &name );
1134
1143 void rampChanged( const QString &name );
1144
1150 void textFormatRenamed( const QString &oldName, const QString &newName );
1151
1159 void textFormatAdded( const QString &name );
1160
1168 void textFormatRemoved( const QString &name );
1169
1178 void textFormatChanged( const QString &name );
1179
1185 void labelSettingsRenamed( const QString &oldName, const QString &newName );
1186
1194 void labelSettingsAdded( const QString &name );
1195
1203 void labelSettingsRemoved( const QString &name );
1204
1213 void labelSettingsChanged( const QString &name );
1214
1221
1222 private:
1223
1224 bool mInitialized = true;
1225 QString mName;
1226 bool mReadOnly = false;
1227
1228 QgsSymbolMap mSymbols;
1229 QgsVectorColorRampMap mColorRamps;
1230 QgsTextFormatMap mTextFormats;
1231 QgsLabelSettingsMap mLabelSettings;
1232 QMap<QString, QgsLegendPatchShape > mLegendPatchShapes;
1233 QMap<QString, QgsAbstract3DSymbol * > m3dSymbols;
1234
1235 QHash< QgsStyle::StyleEntity, QHash< QString, QStringList > > mCachedTags;
1236 QHash< QgsStyle::StyleEntity, QHash< QString, bool > > mCachedFavorites;
1237
1238 QString mErrorString;
1239 QString mFileName;
1240
1241 sqlite3_database_unique_ptr mCurrentDB;
1242
1243 std::unique_ptr< QgsSymbol > mPatchMarkerSymbol;
1244 std::unique_ptr< QgsSymbol > mPatchLineSymbol;
1245 std::unique_ptr< QgsSymbol > mPatchFillSymbol;
1246
1247 mutable QHash< int, QHash< QSizeF, QgsLegendPatchShape > > mDefaultPatchCache;
1248 mutable QHash< int, QHash< QSizeF, QList< QList< QPolygonF > > > > mDefaultPatchQPolygonFCache;
1249
1250 QMap< QString, QDomElement > mDeferred3DsymbolElements;
1251 void handleDeferred3DSymbolCreation();
1252
1253 static QgsStyle *sDefaultStyle;
1254
1260 void initializeDefaultStyle( const QString &filename );
1261
1263 bool openDatabase( const QString &filename );
1264
1266 bool importXml( const QString &filename, int sinceVersion );
1267
1274 bool runEmptyQuery( const QString &query );
1275
1277 int getId( const QString &table, const QString &name );
1278
1280 QString getName( const QString &table, int id ) const;
1281
1290 bool updateSymbol( StyleEntity type, const QString &name );
1291
1292 void clearCachedTags( StyleEntity type, const QString &name );
1293
1297 bool createStyleMetadataTableIfNeeded();
1298 void upgradeIfRequired();
1299
1303 static QString entityTableName( StyleEntity type );
1304
1308 static QString tagmapTableName( StyleEntity type );
1309
1313 static QString tagmapEntityIdFieldName( StyleEntity type );
1314
1315 friend class Qgs3D;
1316 friend class TestStyle;
1317
1318 Q_DISABLE_COPY( QgsStyle )
1319};
1320
1328{
1329
1330#ifdef SIP_RUN
1332 switch ( sipCpp->type() )
1333 {
1335 sipType = sipType_QgsStyleSymbolEntity;
1336 break;
1337
1339 sipType = sipType_QgsStyleColorRampEntity;
1340 break;
1341
1343 sipType = sipType_QgsStyleTextFormatEntity;
1344 break;
1345
1347 sipType = sipType_QgsStyleLabelSettingsEntity;
1348 break;
1349
1352 sipType = 0;
1353 break;
1354 }
1355 SIP_END
1356#endif
1357
1358 public:
1359
1360 virtual ~QgsStyleEntityInterface() = default;
1361
1365 virtual QgsStyle::StyleEntity type() const = 0;
1366
1367};
1368
1376{
1377 public:
1378
1385 : mSymbol( symbol )
1386 {}
1387
1388 QgsStyle::StyleEntity type() const override;
1389
1393 QgsSymbol *symbol() const { return mSymbol; }
1394
1395 private:
1396
1397 QgsSymbol *mSymbol = nullptr;
1398
1399};
1400
1408{
1409 public:
1410
1417 : mRamp( ramp )
1418 {}
1419
1420 QgsStyle::StyleEntity type() const override;
1421
1425 QgsColorRamp *ramp() const { return mRamp; }
1426
1427 private:
1428
1429 QgsColorRamp *mRamp = nullptr;
1430};
1431
1439{
1440 public:
1441
1446 : mFormat( format )
1447 {}
1448
1449 QgsStyle::StyleEntity type() const override;
1450
1454 QgsTextFormat format() const { return mFormat; }
1455
1456 private:
1457
1458 QgsTextFormat mFormat;
1459
1460};
1461
1469{
1470 public:
1471
1476 : mSettings( settings )
1477 {}
1478
1479 QgsStyle::StyleEntity type() const override;
1480
1481
1485 const QgsPalLayerSettings &settings() const { return mSettings; }
1486
1487 private:
1488
1489 QgsPalLayerSettings mSettings;
1490};
1491
1499{
1500 public:
1501
1506 : mShape( shape )
1507 {}
1508
1509 QgsStyle::StyleEntity type() const override;
1510
1511
1515 const QgsLegendPatchShape &shape() const { return mShape; }
1516
1517 private:
1518
1519 QgsLegendPatchShape mShape;
1520};
1521
1529{
1530 public:
1531
1538 : mSymbol( symbol )
1539 {}
1540
1541 QgsStyle::StyleEntity type() const override;
1542
1546 const QgsAbstract3DSymbol *symbol() const { return mSymbol; }
1547
1548 private:
1549
1550 const QgsAbstract3DSymbol *mSymbol = nullptr;
1551};
1552
1553#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:274
SymbolType
Symbol types.
Definition qgis.h:500
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:1408
QgsStyleColorRampEntity(QgsColorRamp *ramp)
Constructor for QgsStyleColorRampEntity, with the specified color ramp.
Definition qgsstyle.h:1416
QgsColorRamp * ramp() const
Returns the entity's color ramp.
Definition qgsstyle.h:1425
An interface for entities which can be placed in a QgsStyle database.
Definition qgsstyle.h:1328
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:1469
const QgsPalLayerSettings & settings() const
Returns the entity's label settings.
Definition qgsstyle.h:1485
QgsStyleLabelSettingsEntity(const QgsPalLayerSettings &settings)
Constructor for QgsStyleLabelSettingsEntity, with the specified label settings.
Definition qgsstyle.h:1475
A legend patch shape entity for QgsStyle databases.
Definition qgsstyle.h:1499
const QgsLegendPatchShape & shape() const
Returns the entity's legend patch shape.
Definition qgsstyle.h:1515
QgsStyleLegendPatchShapeEntity(const QgsLegendPatchShape &shape)
Constructor for QgsStyleLegendPatchShapeEntity, with the specified legend patch shape.
Definition qgsstyle.h:1505
A 3d symbol entity for QgsStyle databases.
Definition qgsstyle.h:1529
const QgsAbstract3DSymbol * symbol() const
Returns the entity's symbol.
Definition qgsstyle.h:1546
QgsStyleSymbol3DEntity(const QgsAbstract3DSymbol *symbol)
Constructor for QgsStyleSymbol3DEntity, with the specified symbol.
Definition qgsstyle.h:1537
A symbol entity for QgsStyle databases.
Definition qgsstyle.h:1376
QgsStyleSymbolEntity(QgsSymbol *symbol)
Constructor for QgsStyleSymbolEntity, with the specified symbol.
Definition qgsstyle.h:1384
QgsSymbol * symbol() const
Returns the entity's symbol.
Definition qgsstyle.h:1393
A text format entity for QgsStyle databases.
Definition qgsstyle.h:1439
QgsTextFormat format() const
Returns the entity's text format.
Definition qgsstyle.h:1454
QgsStyleTextFormatEntity(const QgsTextFormat &format)
Constructor for QgsStyleTextFormatEntity, with the specified text format.
Definition qgsstyle.h:1445
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:183
@ LabelSettingsEntity
Label settings.
Definition qgsstyle.h:189
@ TextFormatEntity
Text formats.
Definition qgsstyle.h:188
@ SmartgroupEntity
Smart groups.
Definition qgsstyle.h:187
@ Symbol3DEntity
3D symbol entity (since QGIS 3.14)
Definition qgsstyle.h:191
@ SymbolEntity
Symbols.
Definition qgsstyle.h:184
@ TagEntity
Tags.
Definition qgsstyle.h:185
@ ColorrampEntity
Color ramps.
Definition qgsstyle.h:186
@ LegendPatchShapeEntity
Legend patch shape (since QGIS 3.14)
Definition qgsstyle.h:190
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.
void initialized()
Emitted when the style database has been fully initialized.
QString fileName() const
Returns the current file name of the style database.
Definition qgsstyle.h:905
void rampRenamed(const QString &oldName, const QString &newName)
Emitted whenever a color ramp has been renamed from oldName to newName.
bool isInitialized() const
Returns true if the style is initialized and ready for use.
Definition qgsstyle.h:219
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:790
@ 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:191
#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:208
QMap< QString, QgsSymbol * > QgsSymbolMap
Definition qgsrenderer.h:48
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