- def setIcones(self):
-
- mctype = self.monSimpDef.type[0]
- # selon
- if ( hasattr(self,"BFichier")):
- if mctype == "Repertoire":
- self.BRepertoire=self.BFichier
- self.connect(self.BRepertoire,SIGNAL("clicked()"),self.BRepertoirePressed)
- else :
- #icon = QIcon(self.repIcon+"/visuFichier.png")
- self.connect(self.BFichier,SIGNAL("clicked()"),self.BFichierPressed)
- self.connect(self.BVisuFichier,SIGNAL("clicked()"),self.BFichierVisu)
- return
-
- if ( hasattr(self,"BSalome")):
- 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.BSalome,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.BView2D,SIGNAL("clicked()"),self.BView2DPressed)
- else:
- self.BSalome.close()
- self.BView2D.close()