16 #ifndef QGSLAYERTREENODE_H
17 #define QGSLAYERTREENODE_H
82 QList<QgsLayerTreeNode*>
children() {
return mChildren; }
87 virtual void writeXML( QDomElement& parentElement ) = 0;
90 virtual QString dump()
const = 0;
96 bool isExpanded()
const;
98 void setExpanded(
bool expanded );
101 void setCustomProperty(
const QString& key,
const QVariant& value );
103 QVariant customProperty(
const QString& key,
const QVariant& defaultValue = QVariant() )
const;
105 void removeCustomProperty(
const QString& key );
107 QStringList customProperties()
const;
116 void willRemoveChildren(
QgsLayerTreeNode* node,
int indexFrom,
int indexTo );
133 void readCommonXML( QDomElement& element );
134 void writeCommonXML( QDomElement& element );
137 void insertChildrenPrivate(
int index, QList<QgsLayerTreeNode*> nodes );
139 void removeChildrenPrivate(
int from,
int count );
158 #endif // QGSLAYERTREENODE_H