QGIS API Documentation  3.22.4-Białowieża (ce8e65e95e)
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 
33 class QgsSymbol;
34 class QgsSymbolLayer;
35 class QgsColorRamp;
38 class QDomDocument;
39 class QDomElement;
40 
41 typedef QMap<QString, QgsColorRamp * > QgsVectorColorRampMap;
42 typedef QMap<int, QString> QgsSymbolGroupMap;
43 
48 typedef QMap<QString, QgsTextFormat > QgsTextFormatMap;
49 
54 typedef 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 
79 typedef 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 
159 class CORE_EXPORT QgsStyle : public QObject
160 {
161  Q_OBJECT
162 
163  public:
164 
168  QgsStyle();
169  ~QgsStyle() override;
170 
179  {
188  };
189 
201  bool addEntity( const QString &name, const QgsStyleEntityInterface *entity, bool update = false );
202 
212  bool addSymbol( const QString &name, QgsSymbol *symbol SIP_TRANSFER, bool update = false );
213 
222  bool addColorRamp( const QString &name, QgsColorRamp *colorRamp SIP_TRANSFER, bool update = false );
223 
234  bool addTextFormat( const QString &name, const QgsTextFormat &format, bool update = false );
235 
246  bool addLabelSettings( const QString &name, const QgsPalLayerSettings &settings, bool update = false );
247 
258  bool addLegendPatchShape( const QString &name, const QgsLegendPatchShape &shape, bool update = false );
259 
270  bool addSymbol3D( const QString &name, QgsAbstract3DSymbol *symbol SIP_TRANSFER, bool update = false );
271 
278  int addTag( const QString &tagName );
279 
289  int addSmartgroup( const QString &name, const QString &op, const QgsSmartConditionMap &conditions ) SIP_SKIP;
290 
303  int addSmartgroup( const QString &name, const QString &op, const QStringList &matchTag, const QStringList &noMatchTag,
304  const QStringList &matchName, const QStringList &noMatchName );
305 
312  QStringList tags() const;
313 
315  void clear();
316 
321  QgsColorRamp *colorRamp( const QString &name ) const SIP_FACTORY;
322 
324  int colorRampCount();
325 
327  QStringList colorRampNames() const;
328 
330  const QgsColorRamp *colorRampRef( const QString &name ) const;
331 
336  int colorrampId( const QString &name );
337 
343  QgsTextFormat textFormat( const QString &name ) const;
344 
349  int textFormatCount() const;
350 
355  QStringList textFormatNames() const;
356 
363  int textFormatId( const QString &name );
364 
370  QgsPalLayerSettings labelSettings( const QString &name ) const;
371 
377  QgsLegendPatchShape legendPatchShape( const QString &name ) const;
378 
383  int legendPatchShapesCount() const;
384 
392  Qgis::SymbolType legendPatchShapeSymbolType( const QString &name ) const;
393 
399  QgsAbstract3DSymbol *symbol3D( const QString &name ) const SIP_FACTORY;
400 
405  int symbol3DCount() const;
406 
413  QList< QgsWkbTypes::GeometryType > symbol3DCompatibleGeometryTypes( const QString &name ) const;
414 
422  QgsWkbTypes::GeometryType labelSettingsLayerType( const QString &name ) const;
423 
428  int labelSettingsCount() const;
429 
434  QStringList labelSettingsNames() const;
435 
442  int labelSettingsId( const QString &name );
443 
445  static QgsStyle *defaultStyle();
446 
448  static void cleanDefaultStyle() SIP_SKIP;
449 
459  bool tagSymbol( StyleEntity type, const QString &symbol, const QStringList &tags );
460 
470  bool detagSymbol( StyleEntity type, const QString &symbol, const QStringList &tags );
471 
480  bool detagSymbol( StyleEntity type, const QString &symbol );
481 
483  bool removeSymbol( const QString &name );
484 
492  bool renameEntity( StyleEntity type, const QString &oldName, const QString &newName );
493 
499  bool renameSymbol( const QString &oldName, const QString &newName );
500 
502  QgsSymbol *symbol( const QString &name ) SIP_FACTORY;
503 
505  const QgsSymbol *symbolRef( const QString &name ) const;
506 
508  int symbolCount();
509 
511  QStringList symbolNames() const;
512 
517  int symbolId( const QString &name );
518 
523  int entityId( StyleEntity type, const QString &name );
524 
526  int tagId( const QString &tag );
528  int smartgroupId( const QString &smartgroup );
529 
534  QStringList allNames( StyleEntity type ) const;
535 
542  QStringList symbolsOfFavorite( StyleEntity type ) const;
543 
551  QStringList symbolsWithTag( StyleEntity type, int tagid ) const;
552 
560  bool addFavorite( StyleEntity type, const QString &name );
561 
569  bool removeFavorite( StyleEntity type, const QString &name );
570 
578  bool rename( StyleEntity type, int id, const QString &newName );
579 
588  bool remove( StyleEntity type, int id );
589 
596  bool removeEntityByName( StyleEntity type, const QString &name );
597 
607  bool saveSymbol( const QString &name, QgsSymbol *symbol, bool favorite, const QStringList &tags );
608 
618  bool saveColorRamp( const QString &name, QgsColorRamp *ramp, bool favorite, const QStringList &tags );
619 
621  bool removeColorRamp( const QString &name );
622 
624  bool renameColorRamp( const QString &oldName, const QString &newName );
625 
635  bool saveTextFormat( const QString &name, const QgsTextFormat &format, bool favorite, const QStringList &tags );
636 
641  bool removeTextFormat( const QString &name );
642 
648  bool renameTextFormat( const QString &oldName, const QString &newName );
649 
659  bool saveLabelSettings( const QString &name, const QgsPalLayerSettings &settings, bool favorite, const QStringList &tags );
660 
665  bool removeLabelSettings( const QString &name );
666 
672  bool renameLabelSettings( const QString &oldName, const QString &newName );
673 
685  bool saveLegendPatchShape( const QString &name, const QgsLegendPatchShape &shape, bool favorite, const QStringList &tags );
686 
692  bool renameLegendPatchShape( const QString &oldName, const QString &newName );
693 
698  QStringList legendPatchShapeNames() const;
699 
707  const QgsSymbol *previewSymbolForPatchShape( const QgsLegendPatchShape &shape ) const;
708 
715  QgsLegendPatchShape defaultPatch( Qgis::SymbolType type, QSizeF size ) const;
716 
723  QList< QList< QPolygonF > > defaultPatchAsQPolygonF( Qgis::SymbolType type, QSizeF size ) const;
724 
730  enum class TextFormatContext : int
731  {
732  Labeling,
733  };
734 
741 
753  bool saveSymbol3D( const QString &name, QgsAbstract3DSymbol *symbol SIP_TRANSFER, bool favorite, const QStringList &tags );
754 
760  bool renameSymbol3D( const QString &oldName, const QString &newName );
761 
766  QStringList symbol3DNames() const;
767 
776  bool createDatabase( const QString &filename );
777 
786  bool createMemoryDatabase();
787 
797  void createTables();
798 
806  bool load( const QString &filename );
807 
809  bool save( QString filename = QString() );
810 
812  QString errorString() { return mErrorString; }
813 
815  QString fileName() { return mFileName; }
816 
824  QStringList findSymbols( StyleEntity type, const QString &qword );
825 
833  QStringList tagsOfSymbol( StyleEntity type, const QString &symbol );
834 
841  bool isFavorite( StyleEntity type, const QString &name );
842 
851  bool symbolHasTag( StyleEntity type, const QString &symbol, const QString &tag );
852 
854  QString tag( int id ) const;
855 
857  QgsSymbolGroupMap smartgroupsListMap();
858 
860  QStringList smartgroupNames() const;
861 
863  QgsSmartConditionMap smartgroup( int id );
864 
868  QString smartgroupOperator( int id );
869 
871  QStringList symbolsOfSmartgroup( StyleEntity type, int id );
872 
874  bool exportXml( const QString &filename );
875 
877  bool importXml( const QString &filename );
878 
887  static bool isXmlStyleFile( const QString &path );
888 
889  signals:
890 
899  void symbolSaved( const QString &name, QgsSymbol *symbol );
900 
909  void symbolChanged( const QString &name );
910 
913 
919  void entityTagsChanged( QgsStyle::StyleEntity entity, const QString &name, const QStringList &newTags );
920 
926  void favoritedChanged( QgsStyle::StyleEntity entity, const QString &name, bool isFavorite );
927 
933  void entityAdded( QgsStyle::StyleEntity entity, const QString &name );
934 
941  void entityRemoved( QgsStyle::StyleEntity entity, const QString &name );
942 
947  void entityRenamed( QgsStyle::StyleEntity entity, const QString &oldName, const QString &newName );
948 
955  void entityChanged( QgsStyle::StyleEntity entity, const QString &name );
956 
964  void symbolRemoved( const QString &name );
965 
971  void symbolRenamed( const QString &oldName, const QString &newName );
972 
978  void rampRenamed( const QString &oldName, const QString &newName );
979 
987  void rampAdded( const QString &name );
988 
996  void rampRemoved( const QString &name );
997 
1006  void rampChanged( const QString &name );
1007 
1008 
1014  void textFormatRenamed( const QString &oldName, const QString &newName );
1015 
1023  void textFormatAdded( const QString &name );
1024 
1032  void textFormatRemoved( const QString &name );
1033 
1042  void textFormatChanged( const QString &name );
1043 
1049  void labelSettingsRenamed( const QString &oldName, const QString &newName );
1050 
1058  void labelSettingsAdded( const QString &name );
1059 
1067  void labelSettingsRemoved( const QString &name );
1068 
1077  void labelSettingsChanged( const QString &name );
1078 
1079  private:
1080 
1081  QgsSymbolMap mSymbols;
1082  QgsVectorColorRampMap mColorRamps;
1083  QgsTextFormatMap mTextFormats;
1084  QgsLabelSettingsMap mLabelSettings;
1085  QMap<QString, QgsLegendPatchShape > mLegendPatchShapes;
1086  QMap<QString, QgsAbstract3DSymbol * > m3dSymbols;
1087 
1088  QHash< QgsStyle::StyleEntity, QHash< QString, QStringList > > mCachedTags;
1089  QHash< QgsStyle::StyleEntity, QHash< QString, bool > > mCachedFavorites;
1090 
1091  QString mErrorString;
1092  QString mFileName;
1093 
1094  sqlite3_database_unique_ptr mCurrentDB;
1095 
1096  std::unique_ptr< QgsSymbol > mPatchMarkerSymbol;
1097  std::unique_ptr< QgsSymbol > mPatchLineSymbol;
1098  std::unique_ptr< QgsSymbol > mPatchFillSymbol;
1099 
1100  mutable QHash< int, QHash< QSizeF, QgsLegendPatchShape > > mDefaultPatchCache;
1101  mutable QHash< int, QHash< QSizeF, QList< QList< QPolygonF > > > > mDefaultPatchQPolygonFCache;
1102 
1103  QMap< QString, QDomElement > mDeferred3DsymbolElements;
1104  void handleDeferred3DSymbolCreation();
1105 
1106  static QgsStyle *sDefaultStyle;
1107 
1109  bool openDatabase( const QString &filename );
1110 
1112  bool importXml( const QString &filename, int sinceVersion );
1113 
1120  bool runEmptyQuery( const QString &query );
1121 
1123  int getId( const QString &table, const QString &name );
1124 
1126  QString getName( const QString &table, int id ) const;
1127 
1136  bool updateSymbol( StyleEntity type, const QString &name );
1137 
1138  void clearCachedTags( StyleEntity type, const QString &name );
1139 
1140 
1141  void upgradeIfRequired();
1142 
1146  static QString entityTableName( StyleEntity type );
1147 
1151  static QString tagmapTableName( StyleEntity type );
1152 
1156  static QString tagmapEntityIdFieldName( StyleEntity type );
1157 
1158  friend class Qgs3D;
1159  friend class TestStyle;
1160 
1161  Q_DISABLE_COPY( QgsStyle )
1162 };
1163 
1170 class CORE_EXPORT QgsStyleEntityInterface
1171 {
1172 
1173 #ifdef SIP_RUN
1175  switch ( sipCpp->type() )
1176  {
1178  sipType = sipType_QgsStyleSymbolEntity;
1179  break;
1180 
1182  sipType = sipType_QgsStyleColorRampEntity;
1183  break;
1184 
1186  sipType = sipType_QgsStyleTextFormatEntity;
1187  break;
1188 
1190  sipType = sipType_QgsStyleLabelSettingsEntity;
1191  break;
1192 
1194  case QgsStyle::TagEntity:
1195  sipType = 0;
1196  break;
1197  }
1198  SIP_END
1199 #endif
1200 
1201  public:
1202 
1203  virtual ~QgsStyleEntityInterface() = default;
1204 
1208  virtual QgsStyle::StyleEntity type() const = 0;
1209 
1210 };
1211 
1219 {
1220  public:
1221 
1228  : mSymbol( symbol )
1229  {}
1230 
1231  QgsStyle::StyleEntity type() const override;
1232 
1236  QgsSymbol *symbol() const { return mSymbol; }
1237 
1238  private:
1239 
1240  QgsSymbol *mSymbol = nullptr;
1241 
1242 };
1243 
1251 {
1252  public:
1253 
1260  : mRamp( ramp )
1261  {}
1262 
1263  QgsStyle::StyleEntity type() const override;
1264 
1268  QgsColorRamp *ramp() const { return mRamp; }
1269 
1270  private:
1271 
1272  QgsColorRamp *mRamp = nullptr;
1273 };
1274 
1282 {
1283  public:
1284 
1289  : mFormat( format )
1290  {}
1291 
1292  QgsStyle::StyleEntity type() const override;
1293 
1297  QgsTextFormat format() const { return mFormat; }
1298 
1299  private:
1300 
1301  QgsTextFormat mFormat;
1302 
1303 };
1304 
1312 {
1313  public:
1314 
1319  : mSettings( settings )
1320  {}
1321 
1322  QgsStyle::StyleEntity type() const override;
1323 
1324 
1328  const QgsPalLayerSettings &settings() const { return mSettings; }
1329 
1330  private:
1331 
1332  QgsPalLayerSettings mSettings;
1333 };
1334 
1342 {
1343  public:
1344 
1349  : mShape( shape )
1350  {}
1351 
1352  QgsStyle::StyleEntity type() const override;
1353 
1354 
1358  const QgsLegendPatchShape &shape() const { return mShape; }
1359 
1360  private:
1361 
1362  QgsLegendPatchShape mShape;
1363 };
1364 
1372 {
1373  public:
1374 
1381  : mSymbol( symbol )
1382  {}
1383 
1384  QgsStyle::StyleEntity type() const override;
1385 
1389  const QgsAbstract3DSymbol *symbol() const { return mSymbol; }
1390 
1391  private:
1392 
1393  const QgsAbstract3DSymbol *mSymbol = nullptr;
1394 };
1395 
1396 #endif
The Qgis class provides global constants for use throughout the application.
Definition: qgis.h:63
SymbolType
Symbol types.
Definition: qgis.h:169
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:32
Represents a patch shape for use in map legends.
Contains settings for how a map layer will be labeled.
A color ramp entity for QgsStyle databases.
Definition: qgsstyle.h:1251
QgsStyleColorRampEntity(QgsColorRamp *ramp)
Constructor for QgsStyleColorRampEntity, with the specified color ramp.
Definition: qgsstyle.h:1259
QgsColorRamp * ramp() const
Returns the entity's color ramp.
Definition: qgsstyle.h:1268
An interface for entities which can be placed in a QgsStyle database.
Definition: qgsstyle.h:1171
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:1312
const QgsPalLayerSettings & settings() const
Returns the entity's label settings.
Definition: qgsstyle.h:1328
QgsStyleLabelSettingsEntity(const QgsPalLayerSettings &settings)
Constructor for QgsStyleLabelSettingsEntity, with the specified label settings.
Definition: qgsstyle.h:1318
A legend patch shape entity for QgsStyle databases.
Definition: qgsstyle.h:1342
const QgsLegendPatchShape & shape() const
Returns the entity's legend patch shape.
Definition: qgsstyle.h:1358
QgsStyleLegendPatchShapeEntity(const QgsLegendPatchShape &shape)
Constructor for QgsStyleLegendPatchShapeEntity, with the specified legend patch shape.
Definition: qgsstyle.h:1348
A 3d symbol entity for QgsStyle databases.
Definition: qgsstyle.h:1372
const QgsAbstract3DSymbol * symbol() const
Returns the entity's symbol.
Definition: qgsstyle.h:1389
QgsStyleSymbol3DEntity(const QgsAbstract3DSymbol *symbol)
Constructor for QgsStyleSymbol3DEntity, with the specified symbol.
Definition: qgsstyle.h:1380
A symbol entity for QgsStyle databases.
Definition: qgsstyle.h:1219
QgsStyleSymbolEntity(QgsSymbol *symbol)
Constructor for QgsStyleSymbolEntity, with the specified symbol.
Definition: qgsstyle.h:1227
QgsSymbol * symbol() const
Returns the entity's symbol.
Definition: qgsstyle.h:1236
A text format entity for QgsStyle databases.
Definition: qgsstyle.h:1282
QgsTextFormat format() const
Returns the entity's text format.
Definition: qgsstyle.h:1297
QgsStyleTextFormatEntity(const QgsTextFormat &format)
Constructor for QgsStyleTextFormatEntity, with the specified text format.
Definition: qgsstyle.h:1288
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 symbolSaved(const QString &name, QgsSymbol *symbol)
Emitted every time a new symbol has been added to the database.
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.
QString errorString()
Returns last error from load/save operation.
Definition: qgsstyle.h:812
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 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:731
@ 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.
QString fileName()
Returns current file name of the style.
Definition: qgsstyle.h:815
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:38
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:177
#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:194
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:39
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