QGIS API Documentation 3.99.0-Master (a8882ad4560)
Loading...
Searching...
No Matches
qgssettingstree.h
Go to the documentation of this file.
1/***************************************************************************
2 qgssettingstree.h
3 --------------------------------------
4 Date : February 2023
5 Copyright : (C) 2023 by Denis Rouzaud
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 QGSSETTINGSTREE_H
17#define QGSSETTINGSTREE_H
18
19#include "qgssettingstreenode.h"
20
30class CORE_EXPORT QgsSettingsTree
31{
32
33 public:
34
39
40#ifndef SIP_RUN
41
42 // only create first level here
43 static inline QgsSettingsTreeNode *sTreeApp = treeRoot()->createChildNode( u"app"_s );
44 static inline QgsSettingsTreeNode *sTreeConnections = treeRoot()->createChildNode( u"connections"_s );
45 static inline QgsSettingsTreeNode *sTreeCore = treeRoot()->createChildNode( u"core"_s );
46 static inline QgsSettingsTreeNode *sTreeDigitizing = treeRoot()->createChildNode( u"digitizing"_s );
47 static inline QgsSettingsTreeNode *sTreeElevationProfile = treeRoot()->createChildNode( u"elevation-profile"_s );
48 static inline QgsSettingsTreeNode *sTreeFonts = treeRoot()->createChildNode( u"fonts"_s );
49 static inline QgsSettingsTreeNode *sTreeGeometryValidation = treeRoot()->createChildNode( u"geometry_validation"_s );
50 static inline QgsSettingsTreeNode *sTreeGps = treeRoot()->createChildNode( u"gps"_s );
51 static inline QgsSettingsTreeNode *sTreeGui = treeRoot()->createChildNode( u"gui"_s );
52 static inline QgsSettingsTreeNode *sTreeLayerTree = treeRoot()->createChildNode( u"layer-tree"_s );
53 static inline QgsSettingsTreeNode *sTreeLayout = treeRoot()->createChildNode( u"layout"_s );
54 static inline QgsSettingsTreeNode *sTreeLocale = treeRoot()->createChildNode( u"locale"_s );
55 static inline QgsSettingsTreeNode *sTreeMap = treeRoot()->createChildNode( u"map"_s );
56 static inline QgsSettingsTreeNode *sTreeNetwork = treeRoot()->createChildNode( u"network"_s );
57 static inline QgsSettingsTreeNode *sTreeQgis = treeRoot()->createChildNode( u"qgis"_s );
58 static inline QgsSettingsTreeNode *sTreePlugins = treeRoot()->createChildNode( u"plugins"_s );
59 static inline QgsSettingsTreeNode *sTreeProcessing = treeRoot()->createChildNode( u"processing"_s );
60 static inline QgsSettingsTreeNode *sTreeRaster = treeRoot()->createChildNode( u"raster"_s );
61 static inline QgsSettingsTreeNode *sTreeRendering = treeRoot()->createChildNode( u"rendering"_s );
62 static inline QgsSettingsTreeNode *sTreeSvg = treeRoot()->createChildNode( u"svg"_s );
63 static inline QgsSettingsTreeNode *sTreeWms = treeRoot()->createChildNode( u"wms"_s );
64 static inline QgsSettingsTreeNode *sTreeMeasure = treeRoot()->createChildNode( u"measure"_s );
65 static inline QgsSettingsTreeNode *sTreeAnnotations = treeRoot()->createChildNode( u"annotations"_s );
66 static inline QgsSettingsTreeNode *sTreeNetworkCache = treeRoot()->createChildNode( u"cache"_s );
67 static inline QgsSettingsTreeNode *sTreeAttributeTable = treeRoot()->createChildNode( u"attribute-table"_s );
68 static inline QgsSettingsTreeNode *sTreeWindowState = sTreeGui->createChildNode( u"window-state"_s );
69 static inline QgsSettingsTreeNode *sTreeAuthentication = treeRoot()->createChildNode( u"authentication"_s );
70 static inline QgsSettingsTreeNode *sTreeDatabase = treeRoot()->createChildNode( u"database"_s );
71 static inline QgsSettingsTreeNode *sTree3DMap = treeRoot()->createChildNode( u"3dmap"_s );
72
73#endif
74
79 static const QgsSettingsTreeNode *node( const QString &key ) {return treeRoot()->childNode( key );}
80
84 static QgsSettingsTreeNode *createPluginTreeNode( const QString &pluginName );
85
86
90 static void unregisterPluginTreeNode( const QString &pluginName );
91};
92
93#endif // QGSSETTINGSTREE_H
A tree node for the settings tree to help organizing and introspecting the tree.
Holds the tree structure for the settings in QGIS core.
static QgsSettingsTreeNode * sTreeApp
static QgsSettingsTreeNode * sTreeLocale
static QgsSettingsTreeNode * sTree3DMap
static QgsSettingsTreeNode * sTreeDigitizing
static QgsSettingsTreeNode * sTreeWms
static QgsSettingsTreeNode * sTreeProcessing
static const QgsSettingsTreeNode * node(const QString &key)
Returns the tree node at the given key.
static QgsSettingsTreeNode * sTreeFonts
static QgsSettingsTreeNode * sTreePlugins
static QgsSettingsTreeNode * treeRoot()
Returns the tree root node for the settings tree.
static QgsSettingsTreeNode * sTreeElevationProfile
static QgsSettingsTreeNode * sTreeAuthentication
static QgsSettingsTreeNode * sTreeSvg
static QgsSettingsTreeNode * sTreeLayerTree
static QgsSettingsTreeNode * sTreeMeasure
static QgsSettingsTreeNode * sTreeLayout
static QgsSettingsTreeNode * sTreeGeometryValidation
static QgsSettingsTreeNode * sTreeGui
static QgsSettingsTreeNode * sTreeNetworkCache
static QgsSettingsTreeNode * sTreeConnections
static QgsSettingsTreeNode * sTreeRaster
static QgsSettingsTreeNode * sTreeGps
static QgsSettingsTreeNode * sTreeAttributeTable
static QgsSettingsTreeNode * sTreeQgis
static QgsSettingsTreeNode * sTreeNetwork
static QgsSettingsTreeNode * sTreeWindowState
static QgsSettingsTreeNode * sTreeAnnotations
static QgsSettingsTreeNode * sTreeRendering
static QgsSettingsTreeNode * sTreeMap
static QgsSettingsTreeNode * sTreeCore
static QgsSettingsTreeNode * sTreeDatabase