+ self.plie=True
+ for c in self.children :
+ c.setPlieChildren()
+ #print "dans setPlieChildren appartientAUnNoeudPlie=True ", c, c.item.GetLabelText()[0]
+ c.appartientAUnNoeudPlie=True
+ c.plie=True
+ c.setExpanded(False)
+
+ # Pour les blocs et les motcles list
+ # on affiche un niveau de plus
+ from InterfaceQT4 import compobloc
+ from InterfaceQT4 import compomclist
+ if (isinstance(self,compobloc.Node) or ( isinstance(self,compomclist.Node) and self.item.isMCList())) :
+ niveauPere=self.treeParent
+ while (isinstance(niveauPere,compobloc.Node) or (isinstance(niveauPere,compomclist.Node) and niveauPere.item.isMCList())) :
+ niveauPere=niveauPere.treeParent
+ for c in self.children :
+ c.appartientAUnNoeudPlie=niveauPere.appartientAUnNoeudPlie
+ c.setExpanded(False)
+
+ # on affiche un niveau de plus
+ #if isinstance(self,compomclist.Node) :
+ #if isinstance(self,compobloc.Node) :
+ # niveauPere=self.treeParent
+ # while (isinstance(niveauPere,compobloc.Node)):
+ # niveauPere=niveauPere.treeParent
+ # for c in self.children :
+ # c.appartientAUnNoeudPlie=niveauPere.appartientAUnNoeudPlie