QGIS API Documentation  3.26.3-Buenos Aires (65e4edfdad)
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( 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 
999  void aboutToBeDestroyed();
1000 
1009  void symbolSaved( const QString &name, QgsSymbol *symbol );
1010 
1019  void symbolChanged( const QString &name );
1020 
1022  void groupsModified();
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 
1194  void rebuildIconPreviews();
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 
1293 class CORE_EXPORT QgsStyleEntityInterface
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 
1317  case QgsStyle::TagEntity:
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
QgsColorRamp
Abstract base class for color ramps.
Definition: qgscolorramp.h:29
ColorrampXML
@ ColorrampXML
Color ramp definition (as XML)
Definition: qgsstyle.h:119
qgspallabeling.h
QgsStyleSymbolEntity::symbol
QgsSymbol * symbol() const
Returns the entity's symbol.
Definition: qgsstyle.h:1359
QgsStyle::ColorrampEntity
@ ColorrampEntity
Color ramps.
Definition: qgsstyle.h:182
QgsTextFormatMap
QMap< QString, QgsTextFormat > QgsTextFormatMap
Map of name to text format.
Definition: qgsstyle.h:48
SymbolId
@ SymbolId
Symbol ID.
Definition: qgsstyle.h:88
ColorrampId
@ ColorrampId
Color ramp ID.
Definition: qgsstyle.h:117
QgsStyleSymbolEntity
A symbol entity for QgsStyle databases.
Definition: qgsstyle.h:1341
QgsPalLayerSettings
Contains settings for how a map layer will be labeled.
Definition: qgspallabeling.h:86
QgsStyle::fileName
QString fileName() const
Returns the current file name of the style database.
Definition: qgsstyle.h:888
TextFormatTable
TextFormatTable
Columns available in the text format table.
Definition: qgsstyle.h:126
QgsSymbolMap
QMap< QString, QgsSymbol * > QgsSymbolMap
Definition: qgsrenderer.h:45
QgsStyleColorRampEntity
A color ramp entity for QgsStyle databases.
Definition: qgsstyle.h:1373
QgsStyleLegendPatchShapeEntity::shape
const QgsLegendPatchShape & shape() const
Returns the entity's legend patch shape.
Definition: qgsstyle.h:1481
SmartgroupId
@ SmartgroupId
Smart group ID.
Definition: qgsstyle.h:150
qgssymbollayerutils.h
QgsStyleSymbol3DEntity::symbol
const QgsAbstract3DSymbol * symbol() const
Returns the entity's symbol.
Definition: qgsstyle.h:1512
QgsStyleEntityInterface
An interface for entities which can be placed in a QgsStyle database.
Definition: qgsstyle.h:1293
QgsVectorColorRampMap
QMap< QString, QgsColorRamp * > QgsVectorColorRampMap
Definition: qgsstyle.h:39
qgis.h
QgsStyleTextFormatEntity::format
QgsTextFormat format() const
Returns the entity's text format.
Definition: qgsstyle.h:1420
TextFormatXML
@ TextFormatXML
Text format definition (as XML)
Definition: qgsstyle.h:130
QgsSymbol
Abstract base class for all rendered symbols.
Definition: qgssymbol.h:92
QgsStyle::LegendPatchShapeEntity
@ LegendPatchShapeEntity
Legend patch shape (since QGIS 3.14)
Definition: qgsstyle.h:186
TagName
@ TagName
Tag name.
Definition: qgsstyle.h:100
QgsLegendPatchShape
Represents a patch shape for use in map legends.
Definition: qgslegendpatchshape.h:33
QgsStyle::SymbolEntity
@ SymbolEntity
Symbols.
Definition: qgsstyle.h:180
QgsProject
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
Definition: qgsproject.h:103
SymbolTable
SymbolTable
Columns available in the Symbols table.
Definition: qgsstyle.h:86
QgsStyle::TagEntity
@ TagEntity
Tags.
Definition: qgsstyle.h:181
LabelSettingsId
@ LabelSettingsId
Label settings ID.
Definition: qgsstyle.h:139
SmartgroupXML
@ SmartgroupXML
Smart group definition (as XML)
Definition: qgsstyle.h:152
SIP_FACTORY
#define SIP_FACTORY
Definition: qgis_sip.h:76
TagmapTagId
@ TagmapTagId
Tag ID.
Definition: qgsstyle.h:108
QgsStyle::LabelSettingsEntity
@ LabelSettingsEntity
Label settings.
Definition: qgsstyle.h:185
TextFormatFavoriteId
@ TextFormatFavoriteId
Text format is favorite flag.
Definition: qgsstyle.h:131
SIP_DEPRECATED
#define SIP_DEPRECATED
Definition: qgis_sip.h:106
SIP_CONVERT_TO_SUBCLASS_CODE
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
Definition: qgis_sip.h:186
ColorrampName
@ ColorrampName
Color ramp name.
Definition: qgsstyle.h:118
SymbolFavoriteId
@ SymbolFavoriteId
Symbol is favorite flag.
Definition: qgsstyle.h:91
QgsTextFormat
Container for all settings relating to text rendering.
Definition: qgstextformat.h:40
QgsAbstract3DSymbol
Abstract base class for 3D symbols that are used by VectorLayer3DRenderer objects.
Definition: qgsabstract3dsymbol.h:46
QgsStyleLabelSettingsEntity::QgsStyleLabelSettingsEntity
QgsStyleLabelSettingsEntity(const QgsPalLayerSettings &settings)
Constructor for QgsStyleLabelSettingsEntity, with the specified label settings.
Definition: qgsstyle.h:1441
QgsSymbolLayer
Definition: qgssymbollayer.h:54
SIP_SKIP
#define SIP_SKIP
Definition: qgis_sip.h:126
QgsStyleSymbol3DEntity
A 3d symbol entity for QgsStyle databases.
Definition: qgsstyle.h:1494
SmartgroupTable
SmartgroupTable
Columns available in the smart group table.
Definition: qgsstyle.h:148
Qgis::SymbolType
SymbolType
Symbol types.
Definition: qgis.h:205
QgsStyle::Symbol3DEntity
@ Symbol3DEntity
3D symbol entity (since QGIS 3.14)
Definition: qgsstyle.h:187
LabelSettingsName
@ LabelSettingsName
Label settings name.
Definition: qgsstyle.h:140
TagId
@ TagId
Tag ID.
Definition: qgsstyle.h:99
QgsStyleTextFormatEntity::QgsStyleTextFormatEntity
QgsStyleTextFormatEntity(const QgsTextFormat &format)
Constructor for QgsStyleTextFormatEntity, with the specified text format.
Definition: qgsstyle.h:1411
SIP_TRANSFER
#define SIP_TRANSFER
Definition: qgis_sip.h:36
QgsStyleEntityInterface::type
virtual QgsStyle::StyleEntity type() const =0
Returns the type of style entity.
QgsStyleTextFormatEntity
A text format entity for QgsStyle databases.
Definition: qgsstyle.h:1404
QgsStyle::SmartgroupEntity
@ SmartgroupEntity
Smart groups.
Definition: qgsstyle.h:183
QgsStyleSymbol3DEntity::QgsStyleSymbol3DEntity
QgsStyleSymbol3DEntity(const QgsAbstract3DSymbol *symbol)
Constructor for QgsStyleSymbol3DEntity, with the specified symbol.
Definition: qgsstyle.h:1503
qgslegendpatchshape.h
QgsStyleColorRampEntity::ramp
QgsColorRamp * ramp() const
Returns the entity's color ramp.
Definition: qgsstyle.h:1391
ColorrampFavoriteId
@ ColorrampFavoriteId
Color ramp is favorite flag.
Definition: qgsstyle.h:120
QgsStyleLabelSettingsEntity
A label settings entity for QgsStyle databases.
Definition: qgsstyle.h:1434
QgsStyleLegendPatchShapeEntity::QgsStyleLegendPatchShapeEntity
QgsStyleLegendPatchShapeEntity(const QgsLegendPatchShape &shape)
Constructor for QgsStyleLegendPatchShapeEntity, with the specified legend patch shape.
Definition: qgsstyle.h:1471
LabelSettingsTable
LabelSettingsTable
Columns available in the label settings table.
Definition: qgsstyle.h:137
QgsStyleSymbolEntity::QgsStyleSymbolEntity
QgsStyleSymbolEntity(QgsSymbol *symbol)
Constructor for QgsStyleSymbolEntity, with the specified symbol.
Definition: qgsstyle.h:1350
QgsWkbTypes::GeometryType
GeometryType
The geometry types are used to group QgsWkbTypes::Type in a coarse way.
Definition: qgswkbtypes.h:140
QgsStyle
Definition: qgsstyle.h:159
QgsStyle::TextFormatEntity
@ TextFormatEntity
Text formats.
Definition: qgsstyle.h:184
TextFormatName
@ TextFormatName
Text format name.
Definition: qgsstyle.h:129
QgsLabelSettingsMap
QMap< QString, QgsPalLayerSettings > QgsLabelSettingsMap
Map of name to label settings.
Definition: qgsstyle.h:54
QgsSymbolGroupMap
QMap< int, QString > QgsSymbolGroupMap
Definition: qgsstyle.h:42
SymbolXML
@ SymbolXML
Symbol definition (as XML)
Definition: qgsstyle.h:90
SymbolName
@ SymbolName
Symbol Name.
Definition: qgsstyle.h:89
QgsStyle::TextFormatContext::Labeling
@ Labeling
Text format used in labeling.
qgssqliteutils.h
Qgis
The Qgis class provides global constants for use throughout the application.
Definition: qgis.h:71
LabelSettingsXML
@ LabelSettingsXML
Label settings definition (as XML)
Definition: qgsstyle.h:141
TagmapTable
TagmapTable
Columns available in the tag to symbol table.
Definition: qgsstyle.h:106
QgsStyleLegendPatchShapeEntity
A legend patch shape entity for QgsStyle databases.
Definition: qgsstyle.h:1464
qgstextformat.h
ColorrampTable
ColorrampTable
Columns available in the color ramp table.
Definition: qgsstyle.h:115
QgsStyleLabelSettingsEntity::settings
const QgsPalLayerSettings & settings() const
Returns the entity's label settings.
Definition: qgsstyle.h:1451
SmartgroupName
@ SmartgroupName
Smart group name.
Definition: qgsstyle.h:151
QgsStyle::TextFormatContext
TextFormatContext
Text format context.
Definition: qgsstyle.h:768
sqlite3_database_unique_ptr
Unique pointer for sqlite3 databases, which automatically closes the database when the pointer goes o...
Definition: qgssqliteutils.h:118
SIP_END
#define SIP_END
Definition: qgis_sip.h:203
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition: qgis_sip.h:53
LabelSettingsFavoriteId
@ LabelSettingsFavoriteId
Label settings is favorite flag.
Definition: qgsstyle.h:142
QgsSmartConditionMap
QMultiMap< QString, QString > QgsSmartConditionMap
Definition: qgsstyle.h:79
Qgs3D
Qgs3D is a singleton class containing various registries and other global members related to 3D class...
Definition: qgs3d.h:32
TagmapSymbolId
@ TagmapSymbolId
Symbol ID.
Definition: qgsstyle.h:109
TagTable
TagTable
Columns available in the Tags table.
Definition: qgsstyle.h:97
TextFormatId
@ TextFormatId
Text format ID.
Definition: qgsstyle.h:128
QgsStyleColorRampEntity::QgsStyleColorRampEntity
QgsStyleColorRampEntity(QgsColorRamp *ramp)
Constructor for QgsStyleColorRampEntity, with the specified color ramp.
Definition: qgsstyle.h:1382
QgsStyle::StyleEntity
StyleEntity
Enum for Entities involved in a style.
Definition: qgsstyle.h:178