+ rmenu_specs=[("View","makeView"),
+ ("Edit","makeEdit"),
+ ]
+
+ def __init__(self,appli, labeltext, object, setfunction):
+ MACROTreeItem.__init__(self,appli, labeltext, object, setfunction)
+
+ def iscopiable(self):
+ """
+ Retourne 1 si l'objet est copiable, 0 sinon
+ """
+ return 0
+
+ def makeEdit(self,appli,node):
+ #print "makeEdit",self.object,self.object.nom
+ #print "makeEdit",self.object.jdc_aux,self.object.jdc_aux.nom
+ #print "makeEdit",self.object.jdc_aux.context_ini
+ self.parent_node=node
+ # On cree un nouvel onglet dans le bureau
+ appli.bureau.ShowJDC(self.object.jdc_aux,self.object.jdc_aux.nom,
+ label_onglet=None,
+ JDCDISPLAY=macrodisplay.MACRODISPLAY)
+ self.myjdc=appli.bureau.JDCDisplay_courant
+ self.myjdc.fichier=self.object.fichier_ini
+
+ def makeView(self,appli,node):