16#ifndef QGSSETTINGSTREENODE_H
17#define QGSSETTINGSTREENODE_H
50 sipType = sipType_QgsSettingsTreeNamedListNode;
52 sipType = sipType_QgsSettingsTreeNode;
103 void unregisterChildSetting(
const QgsSettingsEntryBase *setting,
bool deleteSettingValues =
false,
const QStringList &parentsNamedItems = QStringList() );
124 QString
key()
const {
return mKey;}
133 SIP_PYOBJECT __repr__();
135 const QMetaEnum metaEnum = QMetaEnum::fromType<Qgis::SettingsTreeNodeType>();
137 QString
str = QStringLiteral(
"<QgsSettingsTreeNode (%1): %2>" ).arg( metaEnum.valueToKey(
static_cast<int>( sipCpp->type() ) ), sipCpp->key() );
138 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
166 QList<QgsSettingsTreeNode *> mChildrenNodes;
167 QList<const QgsSettingsEntryBase *> mChildrenSettings;
171 QString mCompleteKey;
172 int mNamedNodesCount = 0;
261 QString completeKeyWithNamedItems(
const QString &key,
const QStringList &namedItems )
const;
265 QString mItemsCompleteKey;
SettingsTreeNodeType
Type of tree node.
QFlags< SettingsTreeNodeOption > SettingsTreeNodeOptions
SettingsOrigin
The setting origin describes where a setting is stored.
Represent settings entry and provides methods for reading and writing settings values.
Custom exception class for settings related exceptions.
QgsSettingsTreeNamedListNode is a named list tree node for the settings tree to help organizing and i...
const QgsSettingsEntryString * selectedItemSetting() const
Returns the setting used to store the selected item.
QgsSettingsTreeNode is a tree node for the settings tree to help organizing and introspecting the tre...
QList< const QgsSettingsEntryBase * > childrenSettings() const
Returns the children settings.
QList< QgsSettingsTreeNode * > childrenNodes() const
Returns the children nodes.
Qgis::SettingsTreeNodeType type() const
Returns the type of node.
QString completeKey() const
Returns the complete key of the node (including its parents)
int namedNodesCount() const
Returns the number of named nodes in the complete key.
QString key() const
Returns the key of the node (without its parents)
QgsSettingsTreeNode * parent() const
Returns the parent of the node or nullptr if it does not exists.
QgsSettingsTree holds the tree structure for the settings in QGIS core.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
#define SIP_KEEPREFERENCE
#define SIP_THROW(name,...)