]> SALOME platform Git repositories - modules/eficas.git/commitdiff
Salome HOME
*** empty log message ***
authorPascale Noyret <pascale.noyret@edf.fr>
Thu, 3 Sep 2009 14:12:37 +0000 (14:12 +0000)
committerPascale Noyret <pascale.noyret@edf.fr>
Thu, 3 Sep 2009 14:12:37 +0000 (14:12 +0000)
16 files changed:
InterfaceQT4/browser.py
InterfaceQT4/compooper.py
InterfaceQT4/monMatricePanel.py [new file with mode: 0644]
InterfaceQT4/monOptionsEditeur.py [deleted file]
InterfaceQT4/monOptions_ASTER.py [new file with mode: 0644]
InterfaceQT4/monOptions_OPENTURNS_STUDY.py [new file with mode: 0644]
InterfaceQT4/monOptions_OPENTURNS_WRAPPER.py [new file with mode: 0644]
InterfaceQT4/monPlusieursBasePanel.py
InterfaceQT4/monRacinePanel.py
InterfaceQT4/politiquesValidation.py
InterfaceQT4/qtCommun.py
InterfaceQT4/qtEficas.py
InterfaceQT4/readercata.py
UiQT4/OptionsOT.ui [new file with mode: 0644]
UiQT4/desMatrice.ui
UiQT4/makefile

index a4789d9227fc4292bd87fd292a3bf29c5a3c24b1..6ef023f4db2b1e6f4dfdf025f021931b62ecf580 100644 (file)
@@ -136,7 +136,6 @@ class JDCNode(QTreeWidgetItem):
             ind=ind+1
 
     def affichePanneau(self) :
-        print self
         if self.item.isactif():
            panel=self.getPanel()
         else:
index bfbe5af89e7147b7fbb65fbb13b01bfe8500684c..c833cc839cab83f110e8761ef8cb5966db9d0f36 100644 (file)
@@ -67,16 +67,16 @@ class Node(browser.JDCNode, typeNode.PopUpMenuNode):
     def viewPng(self) :
         from monPixmap import MonLabelPixmap
         fichier=self.appliEficas.getName()
-        try:
-        #if 1:
+        try :
+           os.remove(fichier)
+        except :
+           pass     
+        #try:
+        if 1:
             import generator
             g = generator.plugins[self.appliEficas.format_fichier]()
-            print dir(self.item)
             g.gener(self.item.object, format='beautifie')
             stdGener = g.getGenerateur()
-            print g
-            print g.__class__
-            print dir(stdGener)
             if len(g.dictMCLois) != 1:
                 QMessageBox.warning(
                     None,
@@ -87,20 +87,18 @@ class Node(browser.JDCNode, typeNode.PopUpMenuNode):
             loi = g.dictMCLois.keys()[0]
             nomLoi = loi.get_name()
             script = stdGener.GraphiquePDF(loi, fichier)
-            print script
+            #print script
             d = {}
             exec script in d
-        except:
-        #else:
-            traceback.print_exc()
+            widgetPng=MonLabelPixmap(self.appliEficas,fichier,nomLoi)
+            widgetPng.show()
+        #except:
+        else:
             QMessageBox.warning(
                 None,
                 self.appliEficas.trUtf8("Erreur interne"),
                 self.appliEficas.trUtf8("La PDF de la loi ne peut pas etre affichee."),
                 self.appliEficas.trUtf8("&Annuler"))
-        widgetPng=MonLabelPixmap(self.appliEficas,fichier,nomLoi)
-        #ret=widgetPng.exec_()
-        widgetPng.show()
 
 class EtapeTreeItem(Objecttreeitem.ObjectTreeItem):
   """ La classe EtapeTreeItem est un adaptateur des objets ETAPE du noyau
diff --git a/InterfaceQT4/monMatricePanel.py b/InterfaceQT4/monMatricePanel.py
new file mode 100644 (file)
index 0000000..31e48c8
--- /dev/null
@@ -0,0 +1,169 @@
+# -*- coding: utf-8 -*-
+#            CONFIGURATION MANAGEMENT OF EDF VERSION
+# ======================================================================
+# COPYRIGHT (C) 1991 - 2002  EDF R&D                  WWW.CODE-ASTER.ORG
+# THIS PROGRAM IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY
+# IT UNDER THE TERMS OF THE GNU GENERAL PUBLIC LICENSE AS PUBLISHED BY
+# THE FREE SOFTWARE FOUNDATION; EITHER VERSION 2 OF THE LICENSE, OR
+# (AT YOUR OPTION) ANY LATER VERSION.
+#
+# THIS PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT
+# WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF
+# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE GNU
+# GENERAL PUBLIC LICENSE FOR MORE DETAILS.
+#
+# YOU SHOULD HAVE RECEIVED A COPY OF THE GNU GENERAL PUBLIC LICENSE
+# ALONG WITH THIS PROGRAM; IF NOT, WRITE TO EDF R&D CODE_ASTER,
+#    1 AVENUE DU GENERAL DE GAULLE, 92141 CLAMART CEDEX, FRANCE.
+#
+#
+# ======================================================================
+# Modules Python
+import string,types,os
+
+# Modules Eficas
+from PyQt4.QtGui import *
+from PyQt4.QtCore import *
+
+from desMatrice           import Ui_desMatrice
+
+
+class MonMatricePanel(Ui_desMatrice,QDialog):
+  """
+  Classe définissant le panel Matrice
+  Attention n herite pas de QtPanel
+  """
+  def __init__(self,node, parent = None,name = None,fl = 0):
+       QDialog.__init__(self,parent)
+       self.node=node
+       self.editor = parent
+       self.nbLigs=0
+       self.nbCols=0
+       self.monType= self.node.item.object.definition.type[0]
+       if hasattr(parent,"leLayout"):
+          parent.leLayout.removeWidget(parent.leLayout.widgetActive)
+          parent.leLayout.widgetActive.close()
+          parent.leLayout.addWidget(self)
+          parent.leLayout.widgetActive=self
+       else:
+          parent.partieDroite=QWidget()
+          parent.leLayout=QGridLayout(parent.partieDroite)
+          parent.leLayout.addWidget(self)
+          parent.addWidget(parent.partieDroite)
+          parent.leLayout.widgetActive=self
+       self.setupUi(self)
+       self.initVal()
+       self.creeColonnes()
+       self.connecterSignaux()
+       if self.node.item.get_valeur()== None:
+          self.initialSsValeur()
+       else :
+          self.initialValeur()
+
+  def initVal(self):
+      self.nomVariables={}
+
+  def connecterSignaux(self) :
+      self.connect(self.TBMatrice,SIGNAL("itemChanged(QTableWidgetItem *)"),self.itemChanged)
+      self.connect(self.BOk,SIGNAL("clicked()"),self.acceptVal)
+
+  def itemChanged(self):
+      monItem=self.TBMatrice.currentItem()
+      if monItem==None : return
+      texte=monItem.text()
+      if texte=="" : return
+      val,ok=texte.toDouble() 
+      if ok == False :
+       self.editor.affiche_infos("Entrer un float SVP")
+        monItem.setText("")
+        return
+      if self.monType.valSup != None :
+         if val > self.monType.valSup :
+           self.editor.affiche_infos("Entrer un float inférieur à " + repr(self.monType.valSup))
+            monItem.setText("")
+            return
+      if self.monType.valMin != None :
+         if val < self.monType.valMin :
+           self.editor.affiche_infos("Entrer un float superieur à " + repr(self.monType.valMin))
+            monItem.setText("")
+            return
+      self.editor.affiche_infos("")
+      if self.monType.structure != None:
+           apply (MonMatricePanel.__dict__[self.monType.structure],(self,))
+
+
+  def symetrique(self):
+      monItem=self.TBMatrice.currentItem()
+      texte=monItem.text()
+      if monItem.row() != monItem.column():
+         monItemSym=self.TBMatrice.item(monItem.column(), monItem.row())
+         monItemSym.setText(texte)
+
+  def creeColonnes(self):
+      if self.monType.methodeCalculTaille != None :
+        #try:
+         if 1 :
+           apply (MonMatricePanel.__dict__[self.monType.methodeCalculTaille],(self,))
+         else :
+         #except :
+           QMessageBox.critical( self, "Mauvaise execution ", "impossible d executer la méthode " + monType.methodeCalculTaille )
+           return
+      else :
+         self.nbLigs=self.monType.nbLigs
+         self.nbCols=self.monType.nbCols
+
+
+  def  NbDeVariables(self):
+       jdc=self.node.item.object.jdc
+       etape=self.node.item.object.etape
+       self.listeVariables=jdc.get_variables()
+       if self.listeVariables == [] :
+           QMessageBox.critical( self, "Mauvaise Commande ", "Aucune variable connue")
+           return
+       header=QStringList()
+       for var in self.listeVariables :
+          header << var
+       self.TBMatrice.setColumnCount(len(self.listeVariables))
+       self.TBMatrice.setRowCount(len(self.listeVariables))
+       self.TBMatrice.setVerticalHeaderLabels(header)
+       self.TBMatrice.setHorizontalHeaderLabels(header)
+       self.nbLigs=len(self.listeVariables)
+       self.nbCols=len(self.listeVariables)
+
+  def  initialSsValeur(self):
+       for row in range(self.nbLigs):
+          for column in range(self.nbCols):
+              if row == column :
+                 initialFloat=0
+               else :
+                 initialFloat=1
+               self.TBMatrice.setItem(row,column,QTableWidgetItem(str(initialFloat)))
+
+  def  initialValeur(self):
+      liste=self.node.item.get_valeur()
+      if (len(liste)) != self.nbLigs :
+         QMessageBox.critical( self, "Mauvaise dimension de matrice", "le nombre de ligne n est pas egal a " + str(self.nbLigs))
+      for i in range(self.nbLigs):
+          inter=liste[i]
+          if (len(inter)) != self.nbCols :
+             QMessageBox.critical( self, "Mauvaise dimension de matrice", "le nombre de colonne n est pas egal a " + str(self.nbCols))
+          for j in range(self.nbCols):
+              self.TBMatrice.setItem(i,j,QTableWidgetItem(str(liste[i][j])))
+              
+  def acceptVal(self):
+      liste=[]
+      if self.TBMatrice.rowCount() != self.nbLigs :
+         QMessageBox.critical( self, "Mauvaise dimension de matrice", "le nombre de ligne n est pas egal a " + str(self.nbLigs))
+      if self.TBMatrice.columnCount() != self.nbCols :
+         QMessageBox.critical( self, "Mauvaise dimension de matrice", "le nombre de colonne n est pas egal a " + str(self.nbCols))
+      for i in range(self.nbLigs):
+          listeCol=[]
+          for j in range(self.nbCols):
+              monItem=self.TBMatrice.item(i,j)       
+              texte=monItem.text()
+              val,ok=texte.toDouble() 
+              if ok == False :
+                 QMessageBox.critical( self, "Mauvaise Valeur", "l element " + str(i) + "," +str(j) +"n est pas correct")
+              listeCol.append(val)
+          liste.append(listeCol)
+      self.node.item.set_valeur(liste)
diff --git a/InterfaceQT4/monOptionsEditeur.py b/InterfaceQT4/monOptionsEditeur.py
deleted file mode 100644 (file)
index f136509..0000000
+++ /dev/null
@@ -1,172 +0,0 @@
-# -*- coding: utf-8 -*-
-
-import os, re
-
-from PyQt4.QtGui  import *
-from PyQt4.QtCore import *
-
-from OptionsEditeur import Ui_desOptions
-
-
-class desOptions(Ui_desOptions,QDialog):
-   def __init__(self,parent ,modal ) :
-       QDialog.__init__(self,parent)
-       self.setupUi(self)
-       self.setModal(modal)
-
-class Options(desOptions):
-   def __init__(self,parent = None,modal = 0,configuration=None):
-       #print "Options"
-       desOptions.__init__(self,parent,modal)
-       self.configuration=configuration
-       self.viewMan=parent
-       self.dVersion={}
-       self.dRepMat={}
-       self.dRepCat={}
-       self.connecterSignaux()
-       self.initAll()
-  
-   def connecterSignaux(self) :
-       self.connect(self.CBVersions,SIGNAL("activated(int)"),self.VersionChoisie)
-       self.connect(self.Bdefaut,SIGNAL("clicked()"),self.BdefautChecked)
-       self.connect(self.LEVersionAjout,SIGNAL("returnPressed()"),self.AjoutVersion)
-       self.connect(self.LERepDoc,SIGNAL("returnPressed()"),self.ChangePathDoc)
-       self.connect(self.Bok,SIGNAL("clicked()"),self.BokClicked)
-       self.connect(self.LEVersionSup,SIGNAL("returnPressed()"),self.SupVersion)
-       self.connect(self.PBajout,SIGNAL("clicked()"),self.AjoutVersion)
-       self.connect(self.PBQuit,SIGNAL("clicked()"),self.close)
-       self.connect(self.LERepDoc,SIGNAL("textChanged(const QString&)"),self.ChangePathDoc)
-
-
-   def initAll(self):
-       self.CBVersions.clear()
-       for item in self.configuration.catalogues :
-           try :
-              (code,version,cata,format,defaut)=item
-           except :
-              (code,version,cata,format)=item
-           self.dVersion[version]=(item)
-           self.dRepCat[version]=str(cata)
-           self.CBVersions.addItem(QString(version))
-
-           codeSansPoint=re.sub("\.","",version)
-           chaine="rep_mat_"+codeSansPoint
-           if hasattr(self.configuration,chaine):
-              rep_mat=getattr(self.configuration,chaine)
-              self.dRepMat[version]=str(rep_mat)
-           else :
-              self.dRepMat[version]=""
-       self.LERepMat.setText(self.dRepMat[version])
-       self.LERepCata.setText(self.dRepCat[version])
-       if hasattr(self.configuration,"path_doc"):
-          self.LERepDoc.setText(self.configuration.path_doc)
-
-        
-   def VersionChoisie(self):
-       version=str(self.CBVersions.currentText())
-       if self.dRepMat.has_key(version):
-          self.LERepMat.setText(self.dRepMat[version])
-       if self.dRepCat.has_key(version):
-          self.LERepCata.setText(self.dRepCat[version])
-
-   def BokClicked(self):
-       version=str(self.CBVersions.currentText())
-       if self.LERepCata.text() == "" :
-          QMessageBox.critical( self, "Champ non rempli","Le champs Catalogue  doit etre rempli" )
-          return
-
-       self.dRepMat[version]=self.LERepMat.text()
-       if str(self.dRepMat[version] != "") != "" :
-          codeSansPoint=re.sub("\.","",version)
-          chaine="rep_mat_"+codeSansPoint
-          setattr(self.configuration,chaine,self.dRepMat[version])
-
-       self.dRepCat[version]=str(self.LERepCata.text())
-       if version in self.dVersion.keys():
-          item=list(self.dVersion[version])
-          item[2]=self.dRepCat[version]
-          self.dVersion[version]=tuple(item)
-       else :
-          self.dVersion[version]=('ASTER',version,self.dRepCat[version],'python')
-          
-       lItem=[]
-       for version in self.dVersion.keys() :
-          lItem.append(self.dVersion[version])
-       self.configuration.catalogues=lItem
-       self.configuration.save_params()
-
-   def AjoutVersion(self):
-       version=self.LEVersionAjout.text()
-       if str(version) == "" : return
-       self.CBVersions.addItem(version)
-       self.LERepMat.setText("")
-       self.LERepCata.setText("")
-       self.LEVersionAjout.setText("")
-       self.CBVersions.setCurrentIndex(self.CBVersions.count()-1)
-
-   def SupVersion(self):
-       version=str(self.LEVersionSup.text())
-       if version == "" : return
-       i =0
-       while i < self.CBVersions.count() :
-           if  self.CBVersions.itemText(i) == version :
-               self.CBVersions.removeItem(i)
-               break
-           i=i+1
-       try :
-          del self.dVersion[version]
-          del self.dRepMat[version]
-          del self.dRepCat[version]
-       except :
-          self.LEVersionSup.setText("")
-          return
-       codeSansPoint=re.sub("\.","",version)
-       chaine="rep_mat_"+codeSansPoint
-       if hasattr(self.configuration,chaine):
-          delattr(self.configuration,chaine)
-       self.LEVersionSup.setText("")
-
-       lItem=[]
-       for version in self.dVersion.keys() :
-           lItem.append(self.dVersion[version])
-       self.LERepMat.setText("")
-       self.LERepCata.setText("")
-       self.configuration.catalogues=lItem
-       self.configuration.save_params()
-       self.CBVersions.setCurrentIndex(0)
-       self.VersionChoisie()
-
-
-   def BdefautChecked(self):
-       res = QMessageBox.warning(
-                 None,
-                 self.trUtf8("Restauration des parametres par defaut "),
-                 self.trUtf8("Votre fichier editeur sera ecrase."),
-                 self.trUtf8("&Ok"),
-                 self.trUtf8("&Abandonner"))
-       self.Bdefaut.setState(QButton.Off)
-       if res == 1 : return 
-
-       appli=self.configuration.appli
-       repIni=self.configuration.REPINI
-       fic_ini_util=self.configuration.fic_ini_utilisateur
-       old_fic_ini_util=fic_ini_util+"_old"
-       commande="mv "+fic_ini_util+" "+old_fic_ini_util
-       os.system(commande)
-       import prefs
-       nameConf='configuration_'+prefs.code
-       configuration=__import__(nameConf)
-
-       configNew=configuration.CONFIG(appli,repIni)
-       self.configuration=configNew
-       appli.CONFIGURATION=configNew
-       self.configuration.save_params()
-       self.dVersion={}
-       self.dRepMat={}
-       self.dRepCat={}
-       self.initAll()
-
-   def ChangePathDoc(self):
-       self.configuration.path_doc=str(self.LERepDoc.text())
-       self.configuration.save_params()
-
diff --git a/InterfaceQT4/monOptions_ASTER.py b/InterfaceQT4/monOptions_ASTER.py
new file mode 100644 (file)
index 0000000..eff040a
--- /dev/null
@@ -0,0 +1,173 @@
+# -*- coding: utf-8 -*-
+
+import os, re
+
+from PyQt4.QtGui  import *
+from PyQt4.QtCore import *
+
+from OptionsEditeur import Ui_desOptions
+
+
+class desOptions(Ui_desOptions,QDialog):
+   def __init__(self,parent ,modal ) :
+       QDialog.__init__(self,parent)
+       self.setupUi(self)
+       self.setModal(modal)
+
+class Options(desOptions):
+   def __init__(self,parent = None,modal = 0,configuration=None):
+       desOptions.__init__(self,parent,modal)
+       self.configuration=configuration
+       self.viewMan=parent
+       self.dVersion={}
+       self.dRepMat={}
+       self.dRepCat={}
+       self.connecterSignaux()
+       self.initAll()
+  
+   def connecterSignaux(self) :
+       self.connect(self.CBVersions,SIGNAL("activated(int)"),self.VersionChoisie)
+       self.connect(self.Bdefaut,SIGNAL("clicked()"),self.BdefautChecked)
+       self.connect(self.LEVersionAjout,SIGNAL("returnPressed()"),self.AjoutVersion)
+       self.connect(self.LERepDoc,SIGNAL("returnPressed()"),self.ChangePathDoc)
+       self.connect(self.Bok,SIGNAL("clicked()"),self.BokClicked)
+       self.connect(self.LEVersionSup,SIGNAL("returnPressed()"),self.SupVersion)
+       self.connect(self.PBajout,SIGNAL("clicked()"),self.AjoutVersion)
+       self.connect(self.PBSup,SIGNAL("clicked()"),self.SupVersion)
+       self.connect(self.PBQuit,SIGNAL("clicked()"),self.close)
+
+
+   def initAll(self):
+       self.CBVersions.clear()
+       for item in self.configuration.catalogues :
+           try :
+              (code,version,cata,format,defaut)=item
+           except :
+              (code,version,cata,format)=item
+           self.dVersion[version]=(item)
+           self.dRepCat[version]=str(cata)
+           self.CBVersions.addItem(QString(version))
+
+           codeSansPoint=re.sub("\.","",version)
+           chaine="rep_mat_"+codeSansPoint
+           if hasattr(self.configuration,chaine):
+              rep_mat=getattr(self.configuration,chaine)
+              self.dRepMat[version]=str(rep_mat)
+           else :
+              self.dRepMat[version]=""
+       self.LERepMat.setText(self.dRepMat[version])
+       self.LERepCata.setText(self.dRepCat[version])
+       if hasattr(self.configuration,"path_doc"):
+          self.LERepDoc.setText(self.configuration.path_doc)
+
+        
+   def VersionChoisie(self):
+       version=str(self.CBVersions.currentText())
+       if self.dRepMat.has_key(version):
+          self.LERepMat.setText(self.dRepMat[version])
+       if self.dRepCat.has_key(version):
+          self.LERepCata.setText(self.dRepCat[version])
+
+   def BokClicked(self):
+       version=str(self.CBVersions.currentText())
+       if self.LERepCata.text() == "" :
+          QMessageBox.critical( self, "Champ non rempli","Le champs Catalogue  doit etre rempli" )
+          return
+
+       self.dRepMat[version]=self.LERepMat.text()
+       if str(self.dRepMat[version] != "") != "" :
+          codeSansPoint=re.sub("\.","",version)
+          chaine="rep_mat_"+codeSansPoint
+          setattr(self.configuration,chaine,self.dRepMat[version])
+
+       self.dRepCat[version]=str(self.LERepCata.text())
+       if version in self.dVersion.keys():
+          item=list(self.dVersion[version])
+          item[2]=self.dRepCat[version]
+          self.dVersion[version]=tuple(item)
+       else :
+          self.dVersion[version]=('ASTER',version,self.dRepCat[version],'python')
+          
+       lItem=[]
+       for version in self.dVersion.keys() :
+          lItem.append(self.dVersion[version])
+       self.configuration.catalogues=lItem
+       self.configuration.save_params()
+
+   def AjoutVersion(self):
+       version=self.LEVersionAjout.text()
+       if str(version) == "" : return
+       self.CBVersions.addItem(version)
+       self.LERepMat.setText("")
+       self.LERepCata.setText("")
+       self.LEVersionAjout.setText("")
+       self.CBVersions.setCurrentIndex(self.CBVersions.count()-1)
+
+   def SupVersion(self):
+       version=str(self.LEVersionSup.text())
+       if version == "" : return
+       i =0
+       while i < self.CBVersions.count() :
+           if  self.CBVersions.itemText(i) == version :
+               self.CBVersions.removeItem(i)
+               break
+           i=i+1
+       try :
+          del self.dVersion[version]
+          del self.dRepMat[version]
+          del self.dRepCat[version]
+       except :
+          self.LEVersionSup.setText("")
+          return
+       codeSansPoint=re.sub("\.","",version)
+       chaine="rep_mat_"+codeSansPoint
+       if hasattr(self.configuration,chaine):
+          delattr(self.configuration,chaine)
+       self.LEVersionSup.setText("")
+
+       lItem=[]
+       for version in self.dVersion.keys() :
+           lItem.append(self.dVersion[version])
+       self.LERepMat.setText("")
+       self.LERepCata.setText("")
+       self.configuration.catalogues=lItem
+       self.configuration.save_params()
+       self.CBVersions.setCurrentIndex(0)
+       self.VersionChoisie()
+
+
+   def BdefautChecked(self):
+       res = QMessageBox.warning(
+                 None,
+                 self.trUtf8("Restauration des parametres par defaut "),
+                 self.trUtf8("Votre fichier editeur sera ecrase."),
+                 self.trUtf8("&Ok"),
+                 self.trUtf8("&Abandonner"))
+       self.Bdefaut.setCheckState(Qt.Unchecked)
+       if res == 1 : return 
+
+       appli=self.configuration.appli
+       fic_ini_util=self.configuration.fic_ini_utilisateur
+       old_fic_ini_util=fic_ini_util+"_old"
+       commande="mv "+fic_ini_util+" "+old_fic_ini_util
+       os.system(commande)
+       import prefs
+       name='prefs_'+prefs.code
+       prefsCode=__import__(name)
+       repIni=prefsCode.REPINI
+       nameConf='configuration_'+prefs.code
+       configuration=__import__(nameConf)
+
+       configNew=configuration.CONFIG(appli,repIni)
+       self.configuration=configNew
+       appli.CONFIGURATION=configNew
+       self.configuration.save_params()
+       self.dVersion={}
+       self.dRepMat={}
+       self.dRepCat={}
+       self.initAll()
+
+   def ChangePathDoc(self):
+       self.configuration.path_doc=str(self.LERepDoc.text())
+       self.configuration.save_params()
+
diff --git a/InterfaceQT4/monOptions_OPENTURNS_STUDY.py b/InterfaceQT4/monOptions_OPENTURNS_STUDY.py
new file mode 100644 (file)
index 0000000..95db943
--- /dev/null
@@ -0,0 +1,220 @@
+# -*- coding: utf-8 -*-
+
+import os, re, sys
+
+from PyQt4.QtGui  import *
+from PyQt4.QtCore import *
+
+from OptionsOT import Ui_desOptions
+
+
+class desOptions(Ui_desOptions,QDialog):
+   def __init__(self,parent ,modal ) :
+       QDialog.__init__(self,parent)
+       self.setupUi(self)
+       self.setModal(modal)
+
+class Options(desOptions):
+   def __init__(self,parent = None,modal = 0,configuration=None):
+       desOptions.__init__(self,parent,modal)
+       self.configuration=configuration
+       self.viewMan=parent
+       self.dVersion={}
+       self.dRepCat={}
+       self.connecterSignaux()
+       self.initAll()
+  
+   def connecterSignaux(self) :
+       self.connect(self.CBVersions,SIGNAL("activated(int)"),self.VersionChoisie)
+       self.connect(self.Bdefaut,SIGNAL("clicked()"),self.BdefautChecked)
+       self.connect(self.LEVersionAjout,SIGNAL("returnPressed()"),self.AjoutVersion)
+       self.connect(self.PBajout,SIGNAL("clicked()"),self.AjoutVersion)
+       self.connect(self.LEVersionSup,SIGNAL("returnPressed()"),self.SupVersion)
+       self.connect(self.PBSup,SIGNAL("clicked()"),self.SupVersion)
+       self.connect(self.LERepDoc,SIGNAL("returnPressed()"),self.ChangePathDoc)
+       self.connect(self.LERepOT,SIGNAL("returnPressed()"),self.ChangePathOT)
+       self.connect(self.LERepCata,SIGNAL("returnPressed()"),self.BokClicked)
+       self.connect(self.LESaveDir,SIGNAL("returnPressed()"),self.ChangeSaveDir)
+       self.connect(self.Bok,SIGNAL("clicked()"),self.BokClicked)
+       self.connect(self.PBQuit,SIGNAL("clicked()"),self.close)
+
+
+   def initAll(self):
+       self.CBVersions.clear()
+       for item in self.configuration.catalogues :
+           try :
+              (code,version,cata,format,defaut)=item
+           except :
+              (code,version,cata,format)=item
+           self.dVersion[version]=(item)
+           self.dRepCat[version]=str(cata)
+           self.CBVersions.addItem(QString(version))
+       self.LERepCata.setText(self.dRepCat[version])
+
+       if hasattr(self.configuration,"path_doc"):
+          self.LERepDoc.setText(self.configuration.path_doc)
+       if hasattr(self.configuration,"OpenTURNS_path"):
+          self.LERepOT.setText(self.configuration.OpenTURNS_path)
+       if hasattr(self.configuration,"savedir"):
+          self.LESaveDir.setText(self.configuration.savedir)
+
+
+        
+   def VersionChoisie(self):
+       version=str(self.CBVersions.currentText())
+       if self.dRepCat.has_key(version):
+          self.LERepCata.setText(self.dRepCat[version])
+
+   def BokClicked(self):
+       version=str(self.CBVersions.currentText())
+       if self.LERepCata.text() == "" :
+          QMessageBox.critical( self, "Champ non rempli","Le champ Catalogue  doit etre rempli" )
+          return
+       if not os.path.isfile(self.LERepCata.text()) :
+          res = QMessageBox.warning( None,
+                 self.trUtf8("Fichier Catalogue "),
+                 self.trUtf8("Le Fichier  n existe pas. Voulez-vous supprimer cette version ?"),
+                 self.trUtf8("&Oui"),
+                 self.trUtf8("&Non"))
+          if res == 0 :
+             self.LEVersionSup.setText(version)
+             self.SupVersion()
+             return
+
+       self.dRepCat[version]=str(self.LERepCata.text())
+       if version in self.dVersion.keys():
+          item=list(self.dVersion[version])
+          item[2]=self.dRepCat[version]
+          self.dVersion[version]=tuple(item)
+       else :
+          import prefs
+          code=prefs.code
+          self.dVersion[version]=(code,version,self.dRepCat[version],code.lower())
+          
+       lItem=[]
+       for version in self.dVersion.keys() :
+          lItem.append(self.dVersion[version])
+       self.configuration.catalogues=lItem
+       self.configuration.save_params()
+
+   def AjoutVersion(self):
+       version=self.LEVersionAjout.text()
+       if str(version) == "" : return
+       self.CBVersions.addItem(version)
+       self.LERepCata.setText("")
+       self.LEVersionAjout.setText("")
+       self.CBVersions.setCurrentIndex(self.CBVersions.count()-1)
+
+   def SupVersion(self):
+       version=str(self.LEVersionSup.text())
+       if version == "" : return
+       i =0
+       while i < self.CBVersions.count() :
+           if  self.CBVersions.itemText(i) == version :
+               self.CBVersions.removeItem(i)
+               break
+           i=i+1
+       try :
+          del self.dVersion[version]
+          del self.dRepCat[version]
+       except :
+          self.LEVersionSup.setText("")
+          try :
+             self.CBVersions.setCurrentIndex(self.CBVersions.count()-1)
+             self.VersionChoisie()
+          except :
+             pass
+          return
+       codeSansPoint=re.sub("\.","",version)
+       chaine="rep_mat_"+codeSansPoint
+       if hasattr(self.configuration,chaine):
+          delattr(self.configuration,chaine)
+       self.LEVersionSup.setText("")
+
+       lItem=[]
+       for version in self.dVersion.keys() :
+           lItem.append(self.dVersion[version])
+       self.LERepCata.setText("")
+       self.configuration.catalogues=lItem
+       self.configuration.save_params()
+       self.CBVersions.setCurrentIndex(0)
+       self.VersionChoisie()
+
+
+   def BdefautChecked(self):
+       res = QMessageBox.warning( None,
+                 self.trUtf8("Restauration des parametres par defaut "),
+                 self.trUtf8("Votre fichier editeur sera ecrase."),
+                 self.trUtf8("&Ok"),
+                 self.trUtf8("&Abandonner"))
+       self.Bdefaut.setCheckState(Qt.Unchecked)
+       if res == 1 : return 
+
+       appli=self.configuration.appli
+       fic_ini_util=self.configuration.fic_ini_utilisateur
+       old_fic_ini_util=fic_ini_util+"_old"
+       commande="mv "+fic_ini_util+" "+old_fic_ini_util
+       os.system(commande)
+       import prefs
+       name='prefs_'+prefs.code
+       prefsCode=__import__(name)
+       repIni=prefsCode.REPINI
+       nameConf='configuration_'+prefs.code
+       configuration=__import__(nameConf)
+
+       configNew=configuration.CONFIG(appli,repIni)
+       self.configuration=configNew
+       appli.CONFIGURATION=configNew
+       self.configuration.save_params()
+       self.dVersion={}
+       self.dRepCat={}
+       self.initAll()
+
+   def ChangePathDoc(self):
+       if self.LERepDoc.text()=="" : return
+       if not os.path.isdir(self.LERepDoc.text()) :
+          res = QMessageBox.warning( None,
+                 self.trUtf8("Repertoire de Documentation "),
+                 self.trUtf8("Le Repertoire  n existe pas."),
+                 self.trUtf8("&Ok"),
+                 self.trUtf8("&Abandonner"))
+          if res == 1 :
+             if hasattr(self.configuration,"path_doc"):
+                self.LERepDoc.setText(self.configuration.path_doc)
+             return
+
+       self.configuration.path_doc=str(self.LERepDoc.text())
+       self.configuration.save_params()
+
+   def ChangePathOT(self):
+       if not os.path.isdir(self.LERepOT.text()) :
+          res = QMessageBox.warning( None,
+                 self.trUtf8("Repertoire Open TURNS "),
+                 self.trUtf8("Le Repertoire  n existe pas."),
+                 self.trUtf8("&Ok"),
+                 self.trUtf8("&Abandonner"))
+          if res == 1 :
+             if hasattr(self.configuration,"OpenTURNS_path"):
+                self.LERepOT.setText(self.configuration.OpenTURNS_path)
+             return
+
+       if hasattr(self.configuration,"OpenTURNS_path"):
+          sys.path.remove(self.configuration.OpenTURNS_path)
+       self.configuration.OpenTURNS_path=str(self.LERepOT.text())
+       self.configuration.save_params()
+       if self.configuration.OpenTURNS_path == "" : return
+       sys.path[:0]=[self.configuration.OpenTURNS_path]
+
+   def ChangeSaveDir(self):
+       if not os.path.isdir(self.LESaveDir.text()) :
+          res = QMessageBox.warning( None,
+                 self.trUtf8("Repertoire Open TURNS "),
+                 self.trUtf8("Le Repertoire  n existe pas."),
+                 self.trUtf8("&Ok"),
+                 self.trUtf8("&Abandonner"))
+          if res == 1 :
+             if hasattr(self.configuration,"savedir"):
+                self.LESaveDir.setText(self.configuration.savedir)
+       self.configuration.savedir=str(self.LESaveDir.text())
+       self.configuration.save_params()
+
diff --git a/InterfaceQT4/monOptions_OPENTURNS_WRAPPER.py b/InterfaceQT4/monOptions_OPENTURNS_WRAPPER.py
new file mode 100644 (file)
index 0000000..95db943
--- /dev/null
@@ -0,0 +1,220 @@
+# -*- coding: utf-8 -*-
+
+import os, re, sys
+
+from PyQt4.QtGui  import *
+from PyQt4.QtCore import *
+
+from OptionsOT import Ui_desOptions
+
+
+class desOptions(Ui_desOptions,QDialog):
+   def __init__(self,parent ,modal ) :
+       QDialog.__init__(self,parent)
+       self.setupUi(self)
+       self.setModal(modal)
+
+class Options(desOptions):
+   def __init__(self,parent = None,modal = 0,configuration=None):
+       desOptions.__init__(self,parent,modal)
+       self.configuration=configuration
+       self.viewMan=parent
+       self.dVersion={}
+       self.dRepCat={}
+       self.connecterSignaux()
+       self.initAll()
+  
+   def connecterSignaux(self) :
+       self.connect(self.CBVersions,SIGNAL("activated(int)"),self.VersionChoisie)
+       self.connect(self.Bdefaut,SIGNAL("clicked()"),self.BdefautChecked)
+       self.connect(self.LEVersionAjout,SIGNAL("returnPressed()"),self.AjoutVersion)
+       self.connect(self.PBajout,SIGNAL("clicked()"),self.AjoutVersion)
+       self.connect(self.LEVersionSup,SIGNAL("returnPressed()"),self.SupVersion)
+       self.connect(self.PBSup,SIGNAL("clicked()"),self.SupVersion)
+       self.connect(self.LERepDoc,SIGNAL("returnPressed()"),self.ChangePathDoc)
+       self.connect(self.LERepOT,SIGNAL("returnPressed()"),self.ChangePathOT)
+       self.connect(self.LERepCata,SIGNAL("returnPressed()"),self.BokClicked)
+       self.connect(self.LESaveDir,SIGNAL("returnPressed()"),self.ChangeSaveDir)
+       self.connect(self.Bok,SIGNAL("clicked()"),self.BokClicked)
+       self.connect(self.PBQuit,SIGNAL("clicked()"),self.close)
+
+
+   def initAll(self):
+       self.CBVersions.clear()
+       for item in self.configuration.catalogues :
+           try :
+              (code,version,cata,format,defaut)=item
+           except :
+              (code,version,cata,format)=item
+           self.dVersion[version]=(item)
+           self.dRepCat[version]=str(cata)
+           self.CBVersions.addItem(QString(version))
+       self.LERepCata.setText(self.dRepCat[version])
+
+       if hasattr(self.configuration,"path_doc"):
+          self.LERepDoc.setText(self.configuration.path_doc)
+       if hasattr(self.configuration,"OpenTURNS_path"):
+          self.LERepOT.setText(self.configuration.OpenTURNS_path)
+       if hasattr(self.configuration,"savedir"):
+          self.LESaveDir.setText(self.configuration.savedir)
+
+
+        
+   def VersionChoisie(self):
+       version=str(self.CBVersions.currentText())
+       if self.dRepCat.has_key(version):
+          self.LERepCata.setText(self.dRepCat[version])
+
+   def BokClicked(self):
+       version=str(self.CBVersions.currentText())
+       if self.LERepCata.text() == "" :
+          QMessageBox.critical( self, "Champ non rempli","Le champ Catalogue  doit etre rempli" )
+          return
+       if not os.path.isfile(self.LERepCata.text()) :
+          res = QMessageBox.warning( None,
+                 self.trUtf8("Fichier Catalogue "),
+                 self.trUtf8("Le Fichier  n existe pas. Voulez-vous supprimer cette version ?"),
+                 self.trUtf8("&Oui"),
+                 self.trUtf8("&Non"))
+          if res == 0 :
+             self.LEVersionSup.setText(version)
+             self.SupVersion()
+             return
+
+       self.dRepCat[version]=str(self.LERepCata.text())
+       if version in self.dVersion.keys():
+          item=list(self.dVersion[version])
+          item[2]=self.dRepCat[version]
+          self.dVersion[version]=tuple(item)
+       else :
+          import prefs
+          code=prefs.code
+          self.dVersion[version]=(code,version,self.dRepCat[version],code.lower())
+          
+       lItem=[]
+       for version in self.dVersion.keys() :
+          lItem.append(self.dVersion[version])
+       self.configuration.catalogues=lItem
+       self.configuration.save_params()
+
+   def AjoutVersion(self):
+       version=self.LEVersionAjout.text()
+       if str(version) == "" : return
+       self.CBVersions.addItem(version)
+       self.LERepCata.setText("")
+       self.LEVersionAjout.setText("")
+       self.CBVersions.setCurrentIndex(self.CBVersions.count()-1)
+
+   def SupVersion(self):
+       version=str(self.LEVersionSup.text())
+       if version == "" : return
+       i =0
+       while i < self.CBVersions.count() :
+           if  self.CBVersions.itemText(i) == version :
+               self.CBVersions.removeItem(i)
+               break
+           i=i+1
+       try :
+          del self.dVersion[version]
+          del self.dRepCat[version]
+       except :
+          self.LEVersionSup.setText("")
+          try :
+             self.CBVersions.setCurrentIndex(self.CBVersions.count()-1)
+             self.VersionChoisie()
+          except :
+             pass
+          return
+       codeSansPoint=re.sub("\.","",version)
+       chaine="rep_mat_"+codeSansPoint
+       if hasattr(self.configuration,chaine):
+          delattr(self.configuration,chaine)
+       self.LEVersionSup.setText("")
+
+       lItem=[]
+       for version in self.dVersion.keys() :
+           lItem.append(self.dVersion[version])
+       self.LERepCata.setText("")
+       self.configuration.catalogues=lItem
+       self.configuration.save_params()
+       self.CBVersions.setCurrentIndex(0)
+       self.VersionChoisie()
+
+
+   def BdefautChecked(self):
+       res = QMessageBox.warning( None,
+                 self.trUtf8("Restauration des parametres par defaut "),
+                 self.trUtf8("Votre fichier editeur sera ecrase."),
+                 self.trUtf8("&Ok"),
+                 self.trUtf8("&Abandonner"))
+       self.Bdefaut.setCheckState(Qt.Unchecked)
+       if res == 1 : return 
+
+       appli=self.configuration.appli
+       fic_ini_util=self.configuration.fic_ini_utilisateur
+       old_fic_ini_util=fic_ini_util+"_old"
+       commande="mv "+fic_ini_util+" "+old_fic_ini_util
+       os.system(commande)
+       import prefs
+       name='prefs_'+prefs.code
+       prefsCode=__import__(name)
+       repIni=prefsCode.REPINI
+       nameConf='configuration_'+prefs.code
+       configuration=__import__(nameConf)
+
+       configNew=configuration.CONFIG(appli,repIni)
+       self.configuration=configNew
+       appli.CONFIGURATION=configNew
+       self.configuration.save_params()
+       self.dVersion={}
+       self.dRepCat={}
+       self.initAll()
+
+   def ChangePathDoc(self):
+       if self.LERepDoc.text()=="" : return
+       if not os.path.isdir(self.LERepDoc.text()) :
+          res = QMessageBox.warning( None,
+                 self.trUtf8("Repertoire de Documentation "),
+                 self.trUtf8("Le Repertoire  n existe pas."),
+                 self.trUtf8("&Ok"),
+                 self.trUtf8("&Abandonner"))
+          if res == 1 :
+             if hasattr(self.configuration,"path_doc"):
+                self.LERepDoc.setText(self.configuration.path_doc)
+             return
+
+       self.configuration.path_doc=str(self.LERepDoc.text())
+       self.configuration.save_params()
+
+   def ChangePathOT(self):
+       if not os.path.isdir(self.LERepOT.text()) :
+          res = QMessageBox.warning( None,
+                 self.trUtf8("Repertoire Open TURNS "),
+                 self.trUtf8("Le Repertoire  n existe pas."),
+                 self.trUtf8("&Ok"),
+                 self.trUtf8("&Abandonner"))
+          if res == 1 :
+             if hasattr(self.configuration,"OpenTURNS_path"):
+                self.LERepOT.setText(self.configuration.OpenTURNS_path)
+             return
+
+       if hasattr(self.configuration,"OpenTURNS_path"):
+          sys.path.remove(self.configuration.OpenTURNS_path)
+       self.configuration.OpenTURNS_path=str(self.LERepOT.text())
+       self.configuration.save_params()
+       if self.configuration.OpenTURNS_path == "" : return
+       sys.path[:0]=[self.configuration.OpenTURNS_path]
+
+   def ChangeSaveDir(self):
+       if not os.path.isdir(self.LESaveDir.text()) :
+          res = QMessageBox.warning( None,
+                 self.trUtf8("Repertoire Open TURNS "),
+                 self.trUtf8("Le Repertoire  n existe pas."),
+                 self.trUtf8("&Ok"),
+                 self.trUtf8("&Abandonner"))
+          if res == 1 :
+             if hasattr(self.configuration,"savedir"):
+                self.LESaveDir.setText(self.configuration.savedir)
+       self.configuration.savedir=str(self.LESaveDir.text())
+       self.configuration.save_params()
+
index 4ca3d3e023802c901a082702b79a2d5ebf9ec12d..5a1a81e08fc9424e494bfd40109fe9cdb0f8326e 100644 (file)
@@ -156,7 +156,6 @@ class MonPlusieursBasePanel(DPlusBase,QTPanel,SaisieValeur):
 
   def AjoutNValeur(self,liste) :
       for val in liste :
-        print val
        self.Ajout1Valeur(val)
 
   def BImportPressed(self):
@@ -201,8 +200,6 @@ class MonPlusieursBasePanel(DPlusBase,QTPanel,SaisieValeur):
             if "GROUP_MA" in e: kwType = "GROUP_MA"
 
         #print "BkwType",kwType
-        print "editor", self.editor
-        print "appliEficas", self.editor.appliEficas
         selection, commentaire = self.editor.appliEficas.selectGroupFromSalome(kwType,editor=self.editor)
         if commentaire !="" :
             self.Commentaire.setText(QString(commentaire))
index 1f5b707bda180f6104070d974e4be4a3f2b96436..23480ab769a76ccbaaf53a7757c4db51a095f580 100644 (file)
@@ -102,5 +102,4 @@ class MonRacinePanel(DRac,QTPanelTBW2):
       if name==QString(" "): return
       if name.find("GROUPE :")==0 : return
       self.editor.init_modif()
-      print self.node.__class__
       new_node = self.node.append_child(name,'first')
index 7309c3391343e8ce2627b991103c28fe3a71b0ad..cc0dbf2b2a07e498cd9668db6076cb9f6471fe25 100644 (file)
@@ -104,8 +104,6 @@ class Validation  :
             pass
 
   def AjoutDsDictReelEtape(self):
-      print self.parent.appliEficas.dict_reels
-      print self.node.item.object
       try:
          if self.parent.appliEficas.dict_reels.has_key(self.node.item.object) :
             self.parent.appliEficas.dict_reels[self.node.item.sdnom]=self.parent.appliEficas.dict_reels[self.node.item.object]
index 6c5a557c3d21940ad2dd9ac02968cef9ecf8094d..725877fc13c57589df36f86ed64362958d862fac 100644 (file)
@@ -201,8 +201,6 @@ class QTPanelTBW2(QTPanel):
         if name.find("GROUPE :")==0 :
           return
         self.editor.init_modif()
-        print self.node
-        print name
         new_node = self.node.append_brother(name,'after')
 
 
index f734b0033b26f9c68f13894058e97757d6197f3b..f82afeaee560e984c62a732412e66929d787a3f2 100644 (file)
@@ -19,7 +19,6 @@ class Appli(Ui_Eficas,QMainWindow):
         """
         Constructor
         """
-        print self
         self.VERSION_EFICAS="Eficas QT4 V1.17"
         self.ihm="QT"
         self.code=code
@@ -234,8 +233,15 @@ class Appli(Ui_Eficas,QMainWindow):
         monAssistant.showPage(docsPath+QDir.separator()+QString("fichiers_"+QString(self.code)+QString("/index.html")))
 
     def optionEditeur(self) :
-        from monOptionsEditeur import Options
-        monOption=Options(parent=self,modal = 0 ,configuration=self.CONFIGURATION)
+        name='monOptions_'+self.code
+        try :
+        #if 1 :
+           optionCode=__import__(name)
+        except :
+        #else :
+           QMessageBox.critical( self, "Parametrage", "Pas de possibilite de personnalisation de la configuration ")
+           return
+        monOption=optionCode.Options(parent=self,modal = 0 ,configuration=self.CONFIGURATION)
         monOption.show()
         
     def optionPdf(self) :
index 4b257a700f144fe67d82a4f20af6e57856cbaf5f..b76c1e4f6117e8978e1020ca7cfb6a2eea678434 100644 (file)
@@ -50,7 +50,6 @@ class READERCATA:
    def __init__(self,QWParent, appliEficas):
       self.QWParent=QWParent
       self.appliEficas=self.QWParent.appliEficas
-      print self.appliEficas
       self.VERSION_EFICAS=self.appliEficas.VERSION_EFICAS
       self.code=self.QWParent.code
       self.appliEficas.format_fichier='python'
diff --git a/UiQT4/OptionsOT.ui b/UiQT4/OptionsOT.ui
new file mode 100644 (file)
index 0000000..0ed9364
--- /dev/null
@@ -0,0 +1,406 @@
+<ui version="4.0" >
+ <class>desOptions</class>
+ <widget class="QDialog" name="desOptions" >
+  <property name="geometry" >
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>657</width>
+    <height>794</height>
+   </rect>
+  </property>
+  <property name="windowTitle" >
+   <string>Option TURNS</string>
+  </property>
+  <layout class="QGridLayout" name="gridLayout" >
+   <item row="0" column="0" >
+    <widget class="QGroupBox" name="groupBox1" >
+     <property name="minimumSize" >
+      <size>
+       <width>635</width>
+       <height>252</height>
+      </size>
+     </property>
+     <property name="maximumSize" >
+      <size>
+       <width>16777215</width>
+       <height>252</height>
+      </size>
+     </property>
+     <property name="title" >
+      <string>Configurer une Version</string>
+     </property>
+     <widget class="QComboBox" name="CBVersions" >
+      <property name="geometry" >
+       <rect>
+        <x>10</x>
+        <y>30</y>
+        <width>121</width>
+        <height>40</height>
+       </rect>
+      </property>
+      <property name="minimumSize" >
+       <size>
+        <width>0</width>
+        <height>40</height>
+       </size>
+      </property>
+      <property name="maximumSize" >
+       <size>
+        <width>121</width>
+        <height>40</height>
+       </size>
+      </property>
+     </widget>
+     <widget class="QPushButton" name="Bok" >
+      <property name="geometry" >
+       <rect>
+        <x>500</x>
+        <y>30</y>
+        <width>121</width>
+        <height>40</height>
+       </rect>
+      </property>
+      <property name="minimumSize" >
+       <size>
+        <width>90</width>
+        <height>40</height>
+       </size>
+      </property>
+      <property name="maximumSize" >
+       <size>
+        <width>121</width>
+        <height>40</height>
+       </size>
+      </property>
+      <property name="text" >
+       <string>Valider</string>
+      </property>
+      <property name="autoDefault" >
+       <bool>false</bool>
+      </property>
+     </widget>
+     <widget class="QPushButton" name="PBajout" >
+      <property name="geometry" >
+       <rect>
+        <x>10</x>
+        <y>200</y>
+        <width>106</width>
+        <height>43</height>
+       </rect>
+      </property>
+      <property name="minimumSize" >
+       <size>
+        <width>101</width>
+        <height>41</height>
+       </size>
+      </property>
+      <property name="text" >
+       <string>Ajouter
+Version :</string>
+      </property>
+     </widget>
+     <widget class="QLineEdit" name="LEVersionAjout" >
+      <property name="geometry" >
+       <rect>
+        <x>122</x>
+        <y>200</y>
+        <width>154</width>
+        <height>43</height>
+       </rect>
+      </property>
+      <property name="minimumSize" >
+       <size>
+        <width>101</width>
+        <height>41</height>
+       </size>
+      </property>
+     </widget>
+     <widget class="QPushButton" name="PBSup" >
+      <property name="geometry" >
+       <rect>
+        <x>360</x>
+        <y>200</y>
+        <width>106</width>
+        <height>43</height>
+       </rect>
+      </property>
+      <property name="minimumSize" >
+       <size>
+        <width>101</width>
+        <height>41</height>
+       </size>
+      </property>
+      <property name="text" >
+       <string>Supprimer
+Version :</string>
+      </property>
+     </widget>
+     <widget class="QLineEdit" name="LEVersionSup" >
+      <property name="geometry" >
+       <rect>
+        <x>470</x>
+        <y>200</y>
+        <width>155</width>
+        <height>43</height>
+       </rect>
+      </property>
+      <property name="minimumSize" >
+       <size>
+        <width>0</width>
+        <height>41</height>
+       </size>
+      </property>
+     </widget>
+     <widget class="QWidget" name="layoutWidget" >
+      <property name="geometry" >
+       <rect>
+        <x>7</x>
+        <y>100</y>
+        <width>621</width>
+        <height>65</height>
+       </rect>
+      </property>
+      <layout class="QVBoxLayout" name="verticalLayout" >
+       <item>
+        <widget class="QLabel" name="textLabel1_3" >
+         <property name="text" >
+          <string>Fichier catalogue (chemin complet) :</string>
+         </property>
+         <property name="wordWrap" >
+          <bool>false</bool>
+         </property>
+        </widget>
+       </item>
+       <item>
+        <widget class="QLineEdit" name="LERepCata" >
+         <property name="minimumSize" >
+          <size>
+           <width>501</width>
+           <height>41</height>
+          </size>
+         </property>
+         <property name="text" >
+          <string/>
+         </property>
+        </widget>
+       </item>
+      </layout>
+     </widget>
+    </widget>
+   </item>
+   <item row="1" column="0" >
+    <widget class="QGroupBox" name="groupBox2" >
+     <property name="minimumSize" >
+      <size>
+       <width>548</width>
+       <height>90</height>
+      </size>
+     </property>
+     <property name="title" >
+      <string>Configurer la bibliothèque Open TURNS</string>
+     </property>
+     <widget class="QLabel" name="textLabel1_2" >
+      <property name="geometry" >
+       <rect>
+        <x>11</x>
+        <y>28</y>
+        <width>617</width>
+        <height>17</height>
+       </rect>
+      </property>
+      <property name="text" >
+       <string>Répertoire d'installation d'Open TURNS :</string>
+      </property>
+      <property name="wordWrap" >
+       <bool>false</bool>
+      </property>
+     </widget>
+     <widget class="QLineEdit" name="LERepOT" >
+      <property name="geometry" >
+       <rect>
+        <x>11</x>
+        <y>50</y>
+        <width>617</width>
+        <height>41</height>
+       </rect>
+      </property>
+      <property name="minimumSize" >
+       <size>
+        <width>520</width>
+        <height>41</height>
+       </size>
+      </property>
+      <property name="text" >
+       <string/>
+      </property>
+     </widget>
+    </widget>
+   </item>
+   <item row="2" column="0" >
+    <widget class="QGroupBox" name="groupBox3" >
+     <property name="minimumSize" >
+      <size>
+       <width>548</width>
+       <height>90</height>
+      </size>
+     </property>
+     <property name="title" >
+      <string>Doc</string>
+     </property>
+     <widget class="QLabel" name="textLabel1" >
+      <property name="geometry" >
+       <rect>
+        <x>11</x>
+        <y>28</y>
+        <width>617</width>
+        <height>41</height>
+       </rect>
+      </property>
+      <property name="minimumSize" >
+       <size>
+        <width>613</width>
+        <height>41</height>
+       </size>
+      </property>
+      <property name="maximumSize" >
+       <size>
+        <width>16777215</width>
+        <height>41</height>
+       </size>
+      </property>
+      <property name="text" >
+       <string>Répertoire d'accès à la documentation :</string>
+      </property>
+      <property name="wordWrap" >
+       <bool>false</bool>
+      </property>
+     </widget>
+     <widget class="QLineEdit" name="LERepDoc" >
+      <property name="geometry" >
+       <rect>
+        <x>11</x>
+        <y>74</y>
+        <width>617</width>
+        <height>41</height>
+       </rect>
+      </property>
+      <property name="minimumSize" >
+       <size>
+        <width>520</width>
+        <height>41</height>
+       </size>
+      </property>
+      <property name="text" >
+       <string/>
+      </property>
+     </widget>
+    </widget>
+   </item>
+   <item row="3" column="0" >
+    <widget class="QGroupBox" name="groupBox3_2" >
+     <property name="minimumSize" >
+      <size>
+       <width>548</width>
+       <height>90</height>
+      </size>
+     </property>
+     <property name="title" >
+      <string>Espace de travail</string>
+     </property>
+     <widget class="QLabel" name="textLabel1_4" >
+      <property name="geometry" >
+       <rect>
+        <x>11</x>
+        <y>28</y>
+        <width>617</width>
+        <height>41</height>
+       </rect>
+      </property>
+      <property name="minimumSize" >
+       <size>
+        <width>613</width>
+        <height>41</height>
+       </size>
+      </property>
+      <property name="maximumSize" >
+       <size>
+        <width>16777215</width>
+        <height>41</height>
+       </size>
+      </property>
+      <property name="text" >
+       <string>Répertoire de sauvegarde par défaut :</string>
+      </property>
+      <property name="wordWrap" >
+       <bool>false</bool>
+      </property>
+     </widget>
+     <widget class="QLineEdit" name="LESaveDir" >
+      <property name="geometry" >
+       <rect>
+        <x>11</x>
+        <y>74</y>
+        <width>617</width>
+        <height>41</height>
+       </rect>
+      </property>
+      <property name="minimumSize" >
+       <size>
+        <width>520</width>
+        <height>41</height>
+       </size>
+      </property>
+      <property name="text" >
+       <string/>
+      </property>
+     </widget>
+    </widget>
+   </item>
+   <item row="4" column="0" >
+    <widget class="QSplitter" name="splitter_3" >
+     <property name="orientation" >
+      <enum>Qt::Horizontal</enum>
+     </property>
+     <widget class="QCheckBox" name="Bdefaut" >
+      <property name="minimumSize" >
+       <size>
+        <width>340</width>
+        <height>41</height>
+       </size>
+      </property>
+      <property name="maximumSize" >
+       <size>
+        <width>16777215</width>
+        <height>41</height>
+       </size>
+      </property>
+      <property name="font" >
+       <font>
+        <pointsize>12</pointsize>
+       </font>
+      </property>
+      <property name="text" >
+       <string>Réinitialiser avec les valeurs par defaut</string>
+      </property>
+     </widget>
+     <widget class="QPushButton" name="PBQuit" >
+      <property name="minimumSize" >
+       <size>
+        <width>151</width>
+        <height>31</height>
+       </size>
+      </property>
+      <property name="text" >
+       <string>Quitter</string>
+      </property>
+     </widget>
+    </widget>
+   </item>
+  </layout>
+ </widget>
+ <layoutdefault spacing="6" margin="11" />
+ <pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
+ <resources/>
+ <connections/>
+</ui>
index e7b433e7fa206d079b1af8ecb71966cc5296f29e..99a3f22306aa15891de1e244b6c210a718655460 100644 (file)
   <property name="windowTitle" >
    <string>Dialog</string>
   </property>
-  <layout class="QGridLayout" name="gridLayout" >
+  <layout class="QGridLayout" name="gridLayout_2" >
    <item row="0" column="0" >
     <widget class="QTableWidget" name="TBMatrice" />
    </item>
    <item row="1" column="0" >
-    <widget class="QDialogButtonBox" name="buttonBox" >
+    <widget class="QSplitter" name="splitter" >
      <property name="orientation" >
       <enum>Qt::Horizontal</enum>
      </property>
-     <property name="standardButtons" >
-      <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
-     </property>
+     <widget class="QWidget" name="layoutWidget" >
+      <layout class="QGridLayout" name="gridLayout" >
+       <item row="0" column="0" >
+        <spacer name="horizontalSpacer" >
+         <property name="orientation" >
+          <enum>Qt::Horizontal</enum>
+         </property>
+         <property name="sizeHint" stdset="0" >
+          <size>
+           <width>140</width>
+           <height>24</height>
+          </size>
+         </property>
+        </spacer>
+       </item>
+       <item row="0" column="1" >
+        <widget class="QPushButton" name="BOk" >
+         <property name="text" >
+          <string>Valider</string>
+         </property>
+        </widget>
+       </item>
+       <item row="0" column="2" >
+        <spacer name="horizontalSpacer_2" >
+         <property name="orientation" >
+          <enum>Qt::Horizontal</enum>
+         </property>
+         <property name="sizeHint" stdset="0" >
+          <size>
+           <width>138</width>
+           <height>20</height>
+          </size>
+         </property>
+        </spacer>
+       </item>
+      </layout>
+     </widget>
     </widget>
    </item>
   </layout>
  </widget>
  <resources/>
- <connections>
-  <connection>
-   <sender>buttonBox</sender>
-   <signal>accepted()</signal>
-   <receiver>desMatrice</receiver>
-   <slot>accept()</slot>
-   <hints>
-    <hint type="sourcelabel" >
-     <x>248</x>
-     <y>254</y>
-    </hint>
-    <hint type="destinationlabel" >
-     <x>157</x>
-     <y>274</y>
-    </hint>
-   </hints>
-  </connection>
-  <connection>
-   <sender>buttonBox</sender>
-   <signal>rejected()</signal>
-   <receiver>desMatrice</receiver>
-   <slot>reject()</slot>
-   <hints>
-    <hint type="sourcelabel" >
-     <x>316</x>
-     <y>260</y>
-    </hint>
-    <hint type="destinationlabel" >
-     <x>286</x>
-     <y>274</y>
-    </hint>
-   </hints>
-  </connection>
- </connections>
+ <connections/>
 </ui>
index 81bbacf0d18244a218370626ca0ed2bfad5b0290..4426d9b9eb7b8a65c1c3d3a8949b2e1f74a79e28 100644 (file)
@@ -8,7 +8,7 @@ PY_FILES = desChoixCata.py desCommande.py desCommentaire.py desError.py desFormu
        desPlusieursBase.py desPlusieursInto.py desPoursuite.py desRacine.py desSelectVal.py \
        desUniqueASSD.py desUniqueBase.py desUniqueComp.py desUniqueInto.py desUniqueSDCOInto.py \
        desUniqueSDCO.py desVisu.py  aideQT.py OptionsEditeur.py OptionsPdf.py myMain.py \
-       desViewTexte.py desPixmap.py desMatrice.py
+       desViewTexte.py desPixmap.py desMatrice.py OptionsOT.py
 
 %.py:%.ui
        ${PYUIC} -x -o $@ $<