]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Pascale Noyret and rnc :
authorrnc <rnc@opencascade.com>
Fri, 23 Nov 2012 13:57:14 +0000 (13:57 +0000)
committerrnc <rnc@opencascade.com>
Fri, 23 Nov 2012 13:57:14 +0000 (13:57 +0000)
- correction in yams plugin exportGMF has now a boolean argument
- default tab of yams plugin dialog is now the first one
- attempt to enable doc reading with okular besides kpdf

src/Tools/YamsPlug/YamsPlugDialog.ui
src/Tools/YamsPlug/monYamsPlugDialog.py

index b2bc9a6eb76bf8480518d0be03a4a9aa71d18eb4..df7721e9fa9553972a495f57209e0745c996712d 100644 (file)
       </font>
      </property>
      <property name="currentIndex">
-      <number>1</number>
+      <number>0</number>
      </property>
      <widget class="QWidget" name="simple">
       <attribute name="title">
index 653644e21337bd83efdf2203fbc3976ff0a67228..6d293f6f3c0063a5ac676ee9df90cdefc6f14da2 100644 (file)
@@ -62,11 +62,17 @@ class MonYamsPlugDialog(Ui_YamsPlugDialog,QWidget):
   def PBHelpPressed(self):
         try :
           maDoc=os.environ['DISTENE_YAMS_DOC_PDF']
+        except Exception:
+          QMessageBox.warning( self, "Help unavailable", str(maDoc) + " not found")
+        try :  
           commande='kpdf '+maDoc
           os.system (commande)
-        except:
-          QMessageBox.warning( self, "Help unavailable", str(maDoc) + " not found")
-
+        except Exception:
+          old_ld=os.getenv("LD_LIBRARY_PATH")
+          command="unset LD_LIBRARY_PATH;"
+          command+="okular "+maDoc+";"
+          command+="export LD_LIBRARY_PATH=%s"%old_ld
+          os.system(command)
 
   def PBOKPressed(self):
         if not(self.PrepareLigneCommande()) : return
@@ -233,7 +239,7 @@ class MonYamsPlugDialog(Ui_YamsPlugDialog,QWidget):
   def prepareFichier(self):
       self.fichierIn="/tmp/PourYam_"+str(self.num)+".mesh"
       import SMESH
-      self.__selectedMesh.ExportGMF(self.__selectedMesh,self.fichierIn)
+      self.__selectedMesh.ExportGMF(self.__selectedMesh,self.fichierIn, True)
 
   def PrepareLigneCommande(self):
       self.commande="yams "