- def setIcones(self):
-
- mctype = self.monSimpDef.type[0]
- # selon
- if ( hasattr(self,"BFichier")):
- if mctype == "Repertoire":
- self.BRepertoire=self.BFichier
- #icon = QIcon(self.repIcon+"/fichier.png")
- #self.BRepertoire.setIcon(icon)
- self.connect(self.BRepertoire,SIGNAL("clicked()"),self.BRepertoirePressed)
- #self.BVisuFichier.close()
- else :
- #icon = QIcon(self.repIcon+"/visuFichier.png")
- #self.BVisuFichier.setIcon(icon)
- 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)
- #icon = QIcon(self.repIcon+"/flecheSalome.png")
- #self.BSalome.setIcon(icon)
-
- if not(('grma' in repr(mctype)) or ('grno' in repr(mctype))) or not(self.editor.salome):
- self.BView2D.close()
- else :
- #icon = QIcon(self.repIcon+"/salomeLoupe.png")
- #self.BView2D.setIcon(icon)
- self.connect(self.BView2D,SIGNAL("clicked()"),self.BView2DPressed)
- else:
- self.BSalome.close()
- self.BView2D.close()