16 #ifndef QGSLAYERTREEGROUP_H
17 #define QGSLAYERTREEGROUP_H
35 QgsLayerTreeGroup(
const QString& name = QString(), Qt::CheckState checked = Qt::Checked );
39 QString
name()
const {
return mName; }
41 void setName(
const QString& n ) { mName = n; }
53 void insertChildNodes(
int index, QList<QgsLayerTreeNode*> nodes );
64 void removeChildren(
int from,
int count );
66 void removeChildrenGroupWithoutLayers();
68 void removeAllChildren();
73 QList<QgsLayerTreeLayer*> findLayers()
const;
75 QStringList findLayerIds()
const;
82 virtual void writeXML( QDomElement& parentElement );
84 void readChildrenFromXML( QDomElement& element );
87 virtual QString
dump()
const;
93 Qt::CheckState
isVisible()
const {
return mChecked; }
95 void setVisible( Qt::CheckState state );
98 void layerDestroyed();
102 void updateVisibilityFromChildren();
112 #endif // QGSLAYERTREEGROUP_H