-#import compoerror
-
-
-class Node(browser.JDCNode):
- def getPanel(self):
- """
- """
- if self.item.isMCList() :
- if self.item.ajout_possible():
- from monMCListAjoutPanel import MonMCListAjoutPanel
- return MonMCListAjoutPanel(self,parent=self.editor)
- else :
- print "MCList"
- elif self.item.isMCFact() :
- from monMCFactPanel import MonMCFactPanel
- return MonMCFactPanel(self,parent=self.editor)
+
+
+class Node(browser.JDCNode,typeNode.PopUpMenuNodeMinimal):
+
+ def createPopUpMenu(self):
+ typeNode.PopUpMenuNodeMinimal.createPopUpMenu(self)
+
+ def getPanelGroupe(self,parentQt,commande):
+ maDefinition=self.item.get_definition()
+ monObjet=self.item.object
+ monNom=self.item.nom
+ maCommande=commande
+ #print "ds getPanelGroupe" , self.item.nom
+ #if hasattr(self,'plie'): print "self.plie", self.plie
+ # if self.item.nom == "BackgroundError" and not(self.plie): print i
+ #print parentQt
+ if hasattr(parentQt,'niveau'): self.niveau=parentQt.niveau+1
+ else : self.niveau=1
+ if not (monObjet.isMCList()) :
+ if hasattr(self,'plie') and self.plie==True :
+ from monWidgetFactPlie import MonWidgetFactPlie
+ widget=MonWidgetFactPlie(self,self.editor,parentQt,maDefinition,monObjet,self.niveau,maCommande)
+ else:
+ from monWidgetFact import MonWidgetFact
+ widget=MonWidgetFact(self,self.editor,parentQt,maDefinition,monObjet,self.niveau,maCommande)