ind=ind+1
def affichePanneau(self) :
- print self
if self.item.isactif():
panel=self.getPanel()
else:
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,
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
--- /dev/null
+# -*- 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)
+++ /dev/null
-# -*- 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()
-
--- /dev/null
+# -*- 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()
+
--- /dev/null
+# -*- 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()
+
--- /dev/null
+# -*- 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()
+
def AjoutNValeur(self,liste) :
for val in liste :
- print val
self.Ajout1Valeur(val)
def BImportPressed(self):
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))
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')
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]
if name.find("GROUPE :")==0 :
return
self.editor.init_modif()
- print self.node
- print name
new_node = self.node.append_brother(name,'after')
"""
Constructor
"""
- print self
self.VERSION_EFICAS="Eficas QT4 V1.17"
self.ihm="QT"
self.code=code
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) :
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'
--- /dev/null
+<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>
<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>
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 $@ $<