16 #ifndef QGSLAYERTREENODE_H
17 #define QGSLAYERTREENODE_H
84 QList<QgsLayerTreeNode*>
children() {
return mChildren; }
89 virtual void writeXML( QDomElement &parentElement ) = 0;
92 virtual QString dump()
const = 0;
98 bool isExpanded()
const;
100 void setExpanded(
bool expanded );
103 void setCustomProperty(
const QString &key,
const QVariant &value );
105 QVariant customProperty(
const QString &key,
const QVariant &defaultValue = QVariant() )
const;
107 void removeCustomProperty(
const QString &key );
109 QStringList customProperties()
const;
120 void willRemoveChildren(
QgsLayerTreeNode *node,
int indexFrom,
int indexTo );
137 void readCommonXML( QDomElement &element );
138 void writeCommonXML( QDomElement &element );
141 void insertChildrenPrivate(
int index, QList<QgsLayerTreeNode*> nodes );
143 void removeChildrenPrivate(
int from,
int count,
bool destroy =
true );
161 #endif // QGSLAYERTREENODE_H