]> SALOME platform Git repositories - tools/eficas.git/blobdiff - InterfaceQT4/gereIcones.py
Salome HOME
onItem=Deplie
[tools/eficas.git] / InterfaceQT4 / gereIcones.py
index a0053c900a897261c834879e5004d3a40a8291b2..8a5f69abbd8277afa217bd0c6847f48442686ccd 100644 (file)
@@ -31,15 +31,18 @@ listeSuffixe=('bmp','png','jpg' ,'txt','med')
 class FacultatifOuOptionnel:
 
   def setReglesEtAide(self):
-      from monWidgetCommande import MonWidgetCommande
       listeRegles=()
       try :
          listeRegles     = self.node.item.get_regles()
       except :
          pass
-      if listeRegles==() and hasattr(self,"RBRegle"): self.RBRegle.close() 
+      if hasattr(self,"RBRegle"):
+        if listeRegles==() : self.RBRegle.close() 
+        else : self.connect( self.RBRegle,SIGNAL("clicked()"),self.viewRegles)
+
       cle_doc=None
       if not hasattr(self,"RBInfo"):return
+      from monWidgetCommande import MonWidgetCommande
       if isinstance(self,MonWidgetCommande) and self.editor.code =="MAP":
          self.cle_doc = self.chercheDocMAP()
       else :
@@ -69,6 +72,9 @@ class FacultatifOuOptionnel:
       except:
           QMessageBox.warning( self,tr( "Aide Indisponible"),tr( "l'aide n est pas installee "))
 
+  def viewRegles(self):
+      self.node.AppelleBuildLBRegles()
+
 
   def setIconePoubelle(self):
       if not(hasattr(self,"RBPoubelle")):return
@@ -200,7 +206,7 @@ class ContientIcones:
          ulfile = os.path.abspath(unicode(fichier))
          self.appliEficas.CONFIGURATION.savedir=os.path.split(ulfile)[0]
          self.lineEditVal.setText(fichier)
-         self.editor.affiche_infos(tr("Fichier selectionne"))
+         self.editor.affiche_commentaire(tr("Fichier selectionne"))
          self.LEValeurPressed()
          if (QFileInfo(fichier).suffix() in listeSuffixe ):
              self.image=fichier
@@ -234,7 +240,7 @@ class ContientIcones:
           
 
   def BSalomePressed(self):
-        self.editor.affiche_infos(QString(""))
+        self.editor.affiche_commentaire(QString(""))
         selection=[]
         commentaire=""
         genea=self.node.item.get_genealogie()
@@ -283,7 +289,7 @@ class ContientIcones:
         if valeur :
            ok, msgError = self.appliEficas.displayShape(valeur)
            if not ok:
-              self.appliEficas.affiche_infos(msgError,Qt.red)
+              self.editor.affiche_infos(msgError,Qt.red)
 
   def BParametresPressed(self):
         liste=self.node.item.get_liste_param_possible()