+ def setIconesSalome(self):
+ if not (hasattr(self,"RBSalome")): return
+ from Accas import SalomeEntry
+ mc = self.node.item.get_definition()
+ mctype = mc.type[0]
+ enable_salome_selection = self.editor.salome and \
+ (('grma' in repr(mctype)) or ('grno' in repr(mctype)) or ('SalomeEntry' in repr(mctype)) or \
+ (hasattr(mctype, "enable_salome_selection") and mctype.enable_salome_selection))
+ if enable_salome_selection:
+ self.connect(self.RBSalome,SIGNAL("pressed()"),self.BSalomePressed)
+ if not(('grma' in repr(mctype)) or ('grno' in repr(mctype))) or not(self.editor.salome): self.BView2D.close()
+ else : self.connect(self.RBSalomeVue,SIGNAL("clicked()"),self.BView2DPressed)
+ else:
+ self.RBSalome.close()
+ self.RBSalomeVue.close()
+
+
+ def setIconesFichier(self):
+ if not ( hasattr(self,"BFichier")): return
+ mc = self.node.item.get_definition()
+ mctype = mc.type[0]
+ if mctype == "Repertoire":
+ self.BRepertoire=self.BFichier
+ self.connect(self.BRepertoire,SIGNAL("clicked()"),self.BRepertoirePressed)
+ self.BVisuFichier.close()
+ else :
+ self.connect(self.BFichier,SIGNAL("clicked()"),self.BFichierPressed)
+ self.connect(self.BVisuFichier,SIGNAL("clicked()"),self.BFichierVisu)
+
+
+
+
+ def setRun(self):
+ if hasattr(self.editor.appliEficas, 'mesScripts'):
+ if self.tree.currentItem().item.get_nom() in self.appliEficas.mesScripts.dict_commandes.keys() :
+ print 'il faut programmer le self.ajoutScript()'
+ print '#PNPNPNPN'
+ return
+ if hasattr(self,"RBRun"): self.RBRun.close()
+
+