QGIS API Documentation 3.37.0-Master (fdefdf9c27f)
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 isInitialized() const { return mInitialized; }
216
226 bool isReadOnly() const;
227
237 void setReadOnly( bool readOnly );
238
250 bool addEntity( const QString &name, const QgsStyleEntityInterface *entity, bool update = false );
251
261 bool addSymbol( const QString &name, QgsSymbol *symbol SIP_TRANSFER, bool update = false );
262
271 bool addColorRamp( const QString &name, QgsColorRamp *colorRamp SIP_TRANSFER, bool update = false );
272
283 bool addTextFormat( const QString &name, const QgsTextFormat &format, bool update = false );
284
295 bool addLabelSettings( const QString &name, const QgsPalLayerSettings &settings, bool update = false );
296
307 bool addLegendPatchShape( const QString &name, const QgsLegendPatchShape &shape, bool update = false );
308
319 bool addSymbol3D( const QString &name, QgsAbstract3DSymbol *symbol SIP_TRANSFER, bool update = false );
320
327 int addTag( const QString &tagName );
328
338 int addSmartgroup( const QString &name, const QString &op, const QgsSmartConditionMap &conditions ) SIP_SKIP;
339
352 int addSmartgroup( const QString &name, const QString &op, const QStringList &matchTag, const QStringList &noMatchTag,
353 const QStringList &matchName, const QStringList &noMatchName );
354
360 QStringList tags() const;
361
363 void clear();
364
369 QgsColorRamp *colorRamp( const QString &name ) const SIP_FACTORY;
370
372 int colorRampCount();
373
375 QStringList colorRampNames() const;
376
378 const QgsColorRamp *colorRampRef( const QString &name ) const;
379
384 int colorrampId( const QString &name );
385
391 QgsTextFormat textFormat( const QString &name ) const;
392
397 int textFormatCount() const;
398
403 QStringList textFormatNames() const;
404
411 int textFormatId( const QString &name );
412
418 QgsPalLayerSettings labelSettings( const QString &name ) const;
419
425 QgsLegendPatchShape legendPatchShape( const QString &name ) const;
426
431 int legendPatchShapesCount() const;
432
440 Qgis::SymbolType legendPatchShapeSymbolType( const QString &name ) const;
441
447 QgsAbstract3DSymbol *symbol3D( const QString &name ) const SIP_FACTORY;
448
453 int symbol3DCount() const;
454
461 QList< Qgis::GeometryType > symbol3DCompatibleGeometryTypes( const QString &name ) const;
462
470 Qgis::GeometryType labelSettingsLayerType( const QString &name ) const;
471
476 int labelSettingsCount() const;
477
482 QStringList labelSettingsNames() const;
483
490 int labelSettingsId( const QString &name );
491
500 static QgsStyle *defaultStyle( bool initialize = true );
501
503 static void cleanDefaultStyle() SIP_SKIP;
504
514 bool tagSymbol( StyleEntity type, const QString &symbol, const QStringList &tags );
515
525 bool detagSymbol( StyleEntity type, const QString &symbol, const QStringList &tags );
526
535 bool detagSymbol( StyleEntity type, const QString &symbol );
536
538 bool removeSymbol( const QString &name );
539
547 bool renameEntity( StyleEntity type, const QString &oldName, const QString &newName );
548
554 bool renameSymbol( const QString &oldName, const QString &newName );
555
557 QgsSymbol *symbol( const QString &name ) SIP_FACTORY;
558
560 const QgsSymbol *symbolRef( const QString &name ) const;
561
563 int symbolCount();
564
566 QStringList symbolNames() const;
567
572 int symbolId( const QString &name );
573
578 int entityId( StyleEntity type, const QString &name );
579
581 int tagId( const QString &tag );
583 int smartgroupId( const QString &smartgroup );
584
589 QStringList allNames( StyleEntity type ) const;
590
597 QStringList symbolsOfFavorite( StyleEntity type ) const;
598
606 QStringList symbolsWithTag( StyleEntity type, int tagid ) const;
607
615 bool addFavorite( StyleEntity type, const QString &name );
616
624 bool removeFavorite( StyleEntity type, const QString &name );
625
633 bool rename( StyleEntity type, int id, const QString &newName );
634
643 bool remove( StyleEntity type, int id );
644
651 bool removeEntityByName( StyleEntity type, const QString &name );
652
662 bool saveSymbol( const QString &name, QgsSymbol *symbol, bool favorite, const QStringList &tags );
663
673 bool saveColorRamp( const QString &name, QgsColorRamp *ramp, bool favorite, const QStringList &tags );
674
676 bool removeColorRamp( const QString &name );
677
679 bool renameColorRamp( const QString &oldName, const QString &newName );
680
690 bool saveTextFormat( const QString &name, const QgsTextFormat &format, bool favorite, const QStringList &tags );
691
696 bool removeTextFormat( const QString &name );
697
703 bool renameTextFormat( const QString &oldName, const QString &newName );
704
714 bool saveLabelSettings( const QString &name, const QgsPalLayerSettings &settings, bool favorite, const QStringList &tags );
715
720 bool removeLabelSettings( const QString &name );
721
727 bool renameLabelSettings( const QString &oldName, const QString &newName );
728
740 bool saveLegendPatchShape( const QString &name, const QgsLegendPatchShape &shape, bool favorite, const QStringList &tags );
741
747 bool renameLegendPatchShape( const QString &oldName, const QString &newName );
748
753 QStringList legendPatchShapeNames() const;
754
762 const QgsSymbol *previewSymbolForPatchShape( const QgsLegendPatchShape &shape ) const;
763
770 QgsLegendPatchShape defaultPatch( Qgis::SymbolType type, QSizeF size ) const;
771
778 QList< QList< QPolygonF > > defaultPatchAsQPolygonF( Qgis::SymbolType type, QSizeF size ) const;
779
785 enum class TextFormatContext : int
786 {
787 Labeling,
788 };
789
796
802 static QgsTextFormat defaultTextFormatForProject( QgsProject *project, QgsStyle::TextFormatContext context = QgsStyle::TextFormatContext::Labeling );
803
815 bool saveSymbol3D( const QString &name, QgsAbstract3DSymbol *symbol SIP_TRANSFER, bool favorite, const QStringList &tags );
816
822 bool renameSymbol3D( const QString &oldName, const QString &newName );
823
828 QStringList symbol3DNames() const;
829
837 bool createDatabase( const QString &filename );
838
846 bool createMemoryDatabase();
847
855 void createTables();
856
867 bool load( const QString &filename );
868
883 Q_DECL_DEPRECATED bool save( const QString &filename = QString() ) SIP_DEPRECATED;
884
890 QString errorString() const { return mErrorString; }
891
901 QString fileName() const { return mFileName; }
902
914 void setFileName( const QString &filename );
915
923 QStringList findSymbols( StyleEntity type, const QString &qword );
924
932 QStringList tagsOfSymbol( StyleEntity type, const QString &symbol );
933
940 bool isFavorite( StyleEntity type, const QString &name );
941
950 bool symbolHasTag( StyleEntity type, const QString &symbol, const QString &tag );
951
953 QString tag( int id ) const;
954
956 QgsSymbolGroupMap smartgroupsListMap();
957
959 QStringList smartgroupNames() const;
960
962 QgsSmartConditionMap smartgroup( int id );
963
967 QString smartgroupOperator( int id );
968
970 QStringList symbolsOfSmartgroup( StyleEntity type, int id );
971
973 bool exportXml( const QString &filename );
974
976 bool importXml( const QString &filename );
977
986 static bool isXmlStyleFile( const QString &path );
987
988 public slots:
989#ifndef SIP_RUN
990
998 void triggerIconRebuild();
999#endif
1000
1001 signals:
1002
1012
1023
1032 void symbolSaved( const QString &name, QgsSymbol *symbol );
1033
1042 void symbolChanged( const QString &name );
1043
1046
1052 void entityTagsChanged( QgsStyle::StyleEntity entity, const QString &name, const QStringList &newTags );
1053
1059 void favoritedChanged( QgsStyle::StyleEntity entity, const QString &name, bool isFavorite );
1060
1066 void entityAdded( QgsStyle::StyleEntity entity, const QString &name );
1067
1074 void entityRemoved( QgsStyle::StyleEntity entity, const QString &name );
1075
1080 void entityRenamed( QgsStyle::StyleEntity entity, const QString &oldName, const QString &newName );
1081
1088 void entityChanged( QgsStyle::StyleEntity entity, const QString &name );
1089
1097 void symbolRemoved( const QString &name );
1098
1104 void symbolRenamed( const QString &oldName, const QString &newName );
1105
1111 void rampRenamed( const QString &oldName, const QString &newName );
1112
1120 void rampAdded( const QString &name );
1121
1129 void rampRemoved( const QString &name );
1130
1139 void rampChanged( const QString &name );
1140
1146 void textFormatRenamed( const QString &oldName, const QString &newName );
1147
1155 void textFormatAdded( const QString &name );
1156
1164 void textFormatRemoved( const QString &name );
1165
1174 void textFormatChanged( const QString &name );
1175
1181 void labelSettingsRenamed( const QString &oldName, const QString &newName );
1182
1190 void labelSettingsAdded( const QString &name );
1191
1199 void labelSettingsRemoved( const QString &name );
1200
1209 void labelSettingsChanged( const QString &name );
1210
1217
1218 private:
1219
1220 bool mInitialized = true;
1221 QString mName;
1222 bool mReadOnly = false;
1223
1224 QgsSymbolMap mSymbols;
1225 QgsVectorColorRampMap mColorRamps;
1226 QgsTextFormatMap mTextFormats;
1227 QgsLabelSettingsMap mLabelSettings;
1228 QMap<QString, QgsLegendPatchShape > mLegendPatchShapes;
1229 QMap<QString, QgsAbstract3DSymbol * > m3dSymbols;
1230
1231 QHash< QgsStyle::StyleEntity, QHash< QString, QStringList > > mCachedTags;
1232 QHash< QgsStyle::StyleEntity, QHash< QString, bool > > mCachedFavorites;
1233
1234 QString mErrorString;
1235 QString mFileName;
1236
1237 sqlite3_database_unique_ptr mCurrentDB;
1238
1239 std::unique_ptr< QgsSymbol > mPatchMarkerSymbol;
1240 std::unique_ptr< QgsSymbol > mPatchLineSymbol;
1241 std::unique_ptr< QgsSymbol > mPatchFillSymbol;
1242
1243 mutable QHash< int, QHash< QSizeF, QgsLegendPatchShape > > mDefaultPatchCache;
1244 mutable QHash< int, QHash< QSizeF, QList< QList< QPolygonF > > > > mDefaultPatchQPolygonFCache;
1245
1246 QMap< QString, QDomElement > mDeferred3DsymbolElements;
1247 void handleDeferred3DSymbolCreation();
1248
1249 static QgsStyle *sDefaultStyle;
1250
1256 void initializeDefaultStyle( const QString &filename );
1257
1259 bool openDatabase( const QString &filename );
1260
1262 bool importXml( const QString &filename, int sinceVersion );
1263
1270 bool runEmptyQuery( const QString &query );
1271
1273 int getId( const QString &table, const QString &name );
1274
1276 QString getName( const QString &table, int id ) const;
1277
1286 bool updateSymbol( StyleEntity type, const QString &name );
1287
1288 void clearCachedTags( StyleEntity type, const QString &name );
1289
1293 bool createStyleMetadataTableIfNeeded();
1294 void upgradeIfRequired();
1295
1299 static QString entityTableName( StyleEntity type );
1300
1304 static QString tagmapTableName( StyleEntity type );
1305
1309 static QString tagmapEntityIdFieldName( StyleEntity type );
1310
1311 friend class Qgs3D;
1312 friend class TestStyle;
1313
1314 Q_DISABLE_COPY( QgsStyle )
1315};
1316
1324{
1325
1326#ifdef SIP_RUN
1328 switch ( sipCpp->type() )
1329 {
1331 sipType = sipType_QgsStyleSymbolEntity;
1332 break;
1333
1335 sipType = sipType_QgsStyleColorRampEntity;
1336 break;
1337
1339 sipType = sipType_QgsStyleTextFormatEntity;
1340 break;
1341
1343 sipType = sipType_QgsStyleLabelSettingsEntity;
1344 break;
1345
1348 sipType = 0;
1349 break;
1350 }
1351 SIP_END
1352#endif
1353
1354 public:
1355
1356 virtual ~QgsStyleEntityInterface() = default;
1357
1361 virtual QgsStyle::StyleEntity type() const = 0;
1362
1363};
1364
1372{
1373 public:
1374
1381 : mSymbol( symbol )
1382 {}
1383
1384 QgsStyle::StyleEntity type() const override;
1385
1389 QgsSymbol *symbol() const { return mSymbol; }
1390
1391 private:
1392
1393 QgsSymbol *mSymbol = nullptr;
1394
1395};
1396
1404{
1405 public:
1406
1413 : mRamp( ramp )
1414 {}
1415
1416 QgsStyle::StyleEntity type() const override;
1417
1421 QgsColorRamp *ramp() const { return mRamp; }
1422
1423 private:
1424
1425 QgsColorRamp *mRamp = nullptr;
1426};
1427
1435{
1436 public:
1437
1442 : mFormat( format )
1443 {}
1444
1445 QgsStyle::StyleEntity type() const override;
1446
1450 QgsTextFormat format() const { return mFormat; }
1451
1452 private:
1453
1454 QgsTextFormat mFormat;
1455
1456};
1457
1465{
1466 public:
1467
1472 : mSettings( settings )
1473 {}
1474
1475 QgsStyle::StyleEntity type() const override;
1476
1477
1481 const QgsPalLayerSettings &settings() const { return mSettings; }
1482
1483 private:
1484
1485 QgsPalLayerSettings mSettings;
1486};
1487
1495{
1496 public:
1497
1502 : mShape( shape )
1503 {}
1504
1505 QgsStyle::StyleEntity type() const override;
1506
1507
1511 const QgsLegendPatchShape &shape() const { return mShape; }
1512
1513 private:
1514
1515 QgsLegendPatchShape mShape;
1516};
1517
1525{
1526 public:
1527
1534 : mSymbol( symbol )
1535 {}
1536
1537 QgsStyle::StyleEntity type() const override;
1538
1542 const QgsAbstract3DSymbol *symbol() const { return mSymbol; }
1543
1544 private:
1545
1546 const QgsAbstract3DSymbol *mSymbol = nullptr;
1547};
1548
1549#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
Symbol types.
Definition: qgis.h:401
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:29
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:1404
QgsStyleColorRampEntity(QgsColorRamp *ramp)
Constructor for QgsStyleColorRampEntity, with the specified color ramp.
Definition: qgsstyle.h:1412
QgsColorRamp * ramp() const
Returns the entity's color ramp.
Definition: qgsstyle.h:1421
An interface for entities which can be placed in a QgsStyle database.
Definition: qgsstyle.h:1324
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:1465
const QgsPalLayerSettings & settings() const
Returns the entity's label settings.
Definition: qgsstyle.h:1481
QgsStyleLabelSettingsEntity(const QgsPalLayerSettings &settings)
Constructor for QgsStyleLabelSettingsEntity, with the specified label settings.
Definition: qgsstyle.h:1471
A legend patch shape entity for QgsStyle databases.
Definition: qgsstyle.h:1495
const QgsLegendPatchShape & shape() const
Returns the entity's legend patch shape.
Definition: qgsstyle.h:1511
QgsStyleLegendPatchShapeEntity(const QgsLegendPatchShape &shape)
Constructor for QgsStyleLegendPatchShapeEntity, with the specified legend patch shape.
Definition: qgsstyle.h:1501
A 3d symbol entity for QgsStyle databases.
Definition: qgsstyle.h:1525
const QgsAbstract3DSymbol * symbol() const
Returns the entity's symbol.
Definition: qgsstyle.h:1542
QgsStyleSymbol3DEntity(const QgsAbstract3DSymbol *symbol)
Constructor for QgsStyleSymbol3DEntity, with the specified symbol.
Definition: qgsstyle.h:1533
A symbol entity for QgsStyle databases.
Definition: qgsstyle.h:1372
QgsStyleSymbolEntity(QgsSymbol *symbol)
Constructor for QgsStyleSymbolEntity, with the specified symbol.
Definition: qgsstyle.h:1380
QgsSymbol * symbol() const
Returns the entity's symbol.
Definition: qgsstyle.h:1389
A text format entity for QgsStyle databases.
Definition: qgsstyle.h:1435
QgsTextFormat format() const
Returns the entity's text format.
Definition: qgsstyle.h:1450
QgsStyleTextFormatEntity(const QgsTextFormat &format)
Constructor for QgsStyleTextFormatEntity, with the specified text format.
Definition: qgsstyle.h:1441
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.
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:901
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:215
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:786
@ 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.
Definition: qgstextformat.h:41
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: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