16#ifndef QGSSETTINGSTREENODE_H
17#define QGSSETTINGSTREENODE_H
49 sipType = sipType_QgsSettingsTreeNamedListNode;
51 sipType = sipType_QgsSettingsTreeNode;
102 void unregisterChildSetting(
const QgsSettingsEntryBase *setting,
bool deleteSettingValues =
false,
const QStringList &parentsNamedItems = QStringList() );
123 QString
key()
const {
return mKey;}
132 SIP_PYOBJECT __repr__();
134 const QMetaEnum metaEnum = QMetaEnum::fromType<Qgis::SettingsTreeNodeType>();
136 QString
str = QStringLiteral(
"<QgsSettingsTreeNode (%1): %2>" ).arg( metaEnum.valueToKey(
static_cast<int>( sipCpp->type() ) ), sipCpp->key() );
137 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
165 QList<QgsSettingsTreeNode *> mChildrenNodes;
166 QList<const QgsSettingsEntryBase *> mChildrenSettings;
170 QString mCompleteKey;
171 int mNamedNodesCount = 0;
260 QString completeKeyWithNamedItems(
const QString &key,
const QStringList &namedItems )
const;
264 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,...)