class CatalogDescription(object):
def __init__(self, labelCode, fichierCata, formatFichierOut = "python", formatFichierIn='python',
- default = False, code = None,ss_code=None,):
+ default = False, code = None,ssCode=None, selectable = True, userName=None):
"""
This class can be used to describe an Eficas catalog.
:type code: string
:param code: Used to indicate the code associated to this catalog
- :type ss_code: string
- :param ss_code: scheme associated to this catalog (Map only)
+ :type ssCode: string
+ :param ssCode: scheme associated to this catalog (Map only)
+
+ :type userName: string
+ :param userName: name of the catalog as it will appear in the list
+
+ :type selectable: boolean
+ :param selectable: indicate if this catalog appears in the list.
+ Setting this parameter to False is useful to keep
+ old catalogs to edit existing files but to forbid
+ to use them to create new files.
+
+
"""
self.formatFichierIn = formatFichierIn
self.default = default
self.code = code
+ self.ssCode = ssCode
+ if userName is None:
+ self.userName = labelCode
+ else:
+ self.userName = userName
+ self.selectable = selectable
+
@staticmethod
def createFromTuple(cataTuple):
#print "Warning: Describing a catalog with a tuple is deprecated. " \
# "Please create a CatalogDescription instance directly."
+ if cataTuple[0] == 'TELEMAC':
+ desc = CatalogDescription(code = cataTuple[0],
+ ssCode = cataTuple[1],
+ labelCode = cataTuple[0]+cataTuple[1],
+ fichierCata = cataTuple[2],
+ formatFichierOut = cataTuple[3],
+ formatFichierIn = cataTuple[4])
+ return desc
if cataTuple[0] == 'MAP' :
desc = CatalogDescription(code = cataTuple[0],
labelCode = cataTuple[1],
return self.definition.homo=='information'
-
def validVal(self,valeur):
"""
Verifie que la valeur passee en argument (valeur) est valide
self.withXSD=False
self.afficheIhm=True
+ self.afficheUQ=False
+
self.setIconesGenerales()
self.setCommentaire()
self.setZoneInfo()
+ self.setUnite()
+
+ def setUnite(self):
+ if self.monSimpDef.unite == None :
+ if hasattr( self,'lineEditUnite') : self.lineEditUnite.setText(' ')
+ else :
+ if hasattr( self,'lineEditUnite') : self.lineEditUnite.setText(self.monSimpDef.unite)
+ else : self.editor.informe('Erreur de Catalogue','Champ Unite non prevu pour '+ self.nom + ' correction du catalogue souhaitable, prevenez la maintenance', False)
+
+
def setNom(self):
self.debutToolTip=""
nomTraduit=tr(self.objSimp.nom)
for i in range(self.tailleTuple):
- nomLE="lineEditVal_"+str(i+1)
+ nomLE="lineEditVal"+str(i+1)
courant=getattr(self,nomLE)
courant.num=index
courant.dansUnTuple=True
listeVal=[]
for i in range(self.tailleTuple):
- nomLE="lineEditVal_"+str(i+1)
+ nomLE="lineEditVal"+str(i+1)
courant=getattr(self,nomLE)
val=str(courant.text())
listeVal=[]
valeurNulle=True
for i in range(self.tailleTuple):
- nomLE="lineEditVal_"+str(i+1)
+ nomLE="lineEditVal"+str(i+1)
courant=getattr(self,nomLE)
try :
if str(value[i]) != "" : valeurNulle=False
vide=True
print (self.tailleTuple)
for i in range(self.tailleTuple):
- nomLE="lineEditVal_"+str(i+1)
+ nomLE="lineEditVal"+str(i+1)
courant=getattr(self,nomLE)
self.valeur.append(courant.valeur)
if courant.valeur!= None : vide = False
#-------------------
self.valeur=None
for i in range(self.tailleTuple):
- nomLE="lineEditVal_"+str(i+1)
+ nomLE="lineEditVal"+str(i+1)
courant=getattr(self,nomLE)
courant.setText("")
for i in range(self.nbValeurs) :
num=i+1
- nomLineEdit='lineEditVal_'+str(num)
+ nomLineEdit='lineEditVal'+str(num)
lineEditVal=getattr(nouveauLE,nomLineEdit)
self.listeAffichageWidget.append(lineEditVal)
- #self.listeAffichageWidget.append(nouveauLE.lineEditVal_1)
- #self.listeAffichageWidget.append(nouveauLE.lineEditVal_2)
- #if self.nbValeurs == 3 : self.listeAffichageWidget.append(nouveauLE.lineEditVal_3)
+ #self.listeAffichageWidget.append(nouveauLE.lineEditVal1)
+ #self.listeAffichageWidget.append(nouveauLE.lineEditVal2)
+ #if self.nbValeurs == 3 : self.listeAffichageWidget.append(nouveauLE.lineEditVal3)
self.etablitOrdre()
# deux lignes pour que le ensureVisible fonctionne
- self.estVisible=nouveauLE.lineEditVal_1
+ self.estVisible=nouveauLE.lineEditVal1
if inInit==False :QTimer.singleShot(1, self.rendVisibleLigne)
def etablitOrdre(self):
self.changeValeur(changeDePlace=True)
self.numLineEditEnCours=num2
self.lineEditEnCours=courant2
- courant2.lineEditVal_1.setFocus(True)
+ courant2.lineEditVal1.setFocus(True)
def ajoutNValeur(self,liste):
#----------------------------
nomLEARemplir=self.nomLine+str(indexDernierRempli+1)
LEARemplir=getattr(self,nomLEARemplir)
for n in range(self.nbValeurs) :
- nomLineEdit='lineEditVal_'+str(n+1)
+ nomLineEdit='lineEditVal'+str(n+1)
lineEditVal=getattr(LEARemplir,nomLineEdit)
lineEditVal.setText(str(t[n]))
else :
nouveauLE.setValeur(t)
for n in range(self.nbValeurs) :
- nomLineEdit='lineEditVal_'+str(n+1)
+ nomLineEdit='lineEditVal'+str(n+1)
lineEditVal=getattr(nouveauLE,nomLineEdit)
self.listeAffichageWidget.append(lineEditVal)
indexDernierRempli = indexDernierRempli+1
def __init__(self,node,monSimpDef,nom,objSimp,parentQt,commande):
Feuille.__init__(self,node,monSimpDef,nom,objSimp,parentQt,commande)
+ if 'R' or 'I' in self.monSimpDef.type : self.lineEditVal.setMinimumWidth(525)
self.parentQt.commandesLayout.insertWidget(-1,self,1)
self.setFocusPolicy(Qt.StrongFocus)
if monSimpDef.homo == 'constant' : self.lineEditVal.setReadOnly(True)
elif repr(valeurTexte.__class__).find("PARAMETRE") > 0:
chaine = repr(valeur)
else :
- #PN ????
- #try :
- # chaine=QString("").setNum(valeurTexte)
- #except :
chaine=str(valeurTexte)
self.oldValeurTexte=chaine
self.lineEditVal.setText(chaine)
self.LEReel.returnPressed.connect(self.LEReelRPressed)
self.RBRI.clicked.connect(self.valeurPressed )
self.RBMP.clicked.connect(self.valeurPressed )
- self.LEComp.returnPressed.connect(self.LECompRPressed)
- self.maCommande.listeAffichageWidget.append(self.LEComp)
- #self.maCommande.listeAffichageWidget.append(self.RBRI)
- #self.maCommande.listeAffichageWidget.append(self.RBMP)
- #self.maCommande.listeAffichageWidget.append(self.LEReel)
- #self.maCommande.listeAffichageWidget.append(self.LEImag)
+ self.maCommande.listeAffichageWidget.append(self.RBRI)
+ self.maCommande.listeAffichageWidget.append(self.RBMP)
+ self.maCommande.listeAffichageWidget.append(self.LEReel)
+ self.maCommande.listeAffichageWidget.append(self.LEImag)
def setValeurs(self):
if valeur == None or valeur == '' : return
if type(valeur) not in (list,tuple) :
self.LEComp.setText(str(valeur))
+ commentaire=tr('complexe form deprecated, od value : ', valeur)
+ self.editor.afficheInfos(commentaire,Qt.red)
else :
typ_cplx,x1,x2=valeur
self.LEReel.setText(str(x1))
else :
self.RBMP.setChecked(1)
- def LECompRPressed(self) :
- self.LEReel.clear()
- self.LEImag.clear()
- commentaire=tr("expression valide")
- valeur = str(self.LEComp.text())
- d={}
- try :
- v=eval(valeur,d)
- except :
- commentaire=tr("expression invalide")
- self.editor.afficheInfos(commentaire,Qt.red)
- return
- try :
- i=v.imag
- self.editor.afficheInfos(commentaire)
- self.valeurPressed()
- except :
- commentaire=tr("l expression n est pas de la forme a+bj")
- self.editor.afficheInfos(commentaire,Qt.red)
+ #def LECompRPressed(self) :
+ # self.LEReel.clear()
+ # self.LEImag.clear()
+ # commentaire=tr("expression valide")
+ # valeur = str(self.LEComp.text())
+ # d={}
+ # if 1 :
+ # try :
+ # v=eval(valeur,d)
+ # except :
+ # commentaire=tr("expression invalide")
+ # self.editor.afficheInfos(commentaire,Qt.red)
+ # return
+ # try :
+ # i=v.imag
+ # self.editor.afficheInfos(commentaire)
+ # self.valeurPressed()
+ # except :
+ # commentaire=tr("l expression n est pas de la forme a+bj")
+ # self.editor.afficheInfos(commentaire,Qt.red)
def LEReelRPressed(self):
- self.LEComp.clear()
+ #self.LEComp.clear()
commentaire=tr("expression valide")
valeur = str(self.LEReel.text())
try :
commentaire=tr("expression invalide")
self.editor.afficheInfos(commentaire,Qt.red)
if self.LEImag.text()!="" : self.valeurPressed()
+ else : self.LEImag.setFocus(True)
def LEImagRPressed(self):
- self.LEComp.clear()
commentaire=tr("expression valide")
valeur = str(self.LEImag.text())
try :
commentaire=tr("expression invalide")
self.editor.afficheInfos(commentaire,Qt.red)
if self.LEReel.text()!="" : self.valeurPressed()
+ else : self.LEReel.setFocus(True)
def finCommentaire(self):
commentaire="valeur de type complexe"
return commentaire
- def getValeurComp(self):
- commentaire=tr("expression valide")
- valeur = str(self.LEComp.text())
- d={}
- try :
- v=eval(valeur,d)
- except :
- commentaire=tr("expression invalide")
- self.editor.afficheInfos(commentaire,Qt.red)
- return None
- try :
- i=v.imag
- except :
- commentaire=tr("expression n est pas de la forme a+bj")
- self.editor.afficheInfos(commentaire,Qt.red)
- return None
- return v
+ #def getValeurComp(self):
+ # commentaire=tr("expression valide")
+ # valeur = str(self.LEComp.text())
+ # d={}
+ # try :
+ # v=eval(valeur,d)
+ # except :
+ # commentaire=tr("expression invalide")
+ # self.editor.afficheInfos(commentaire,Qt.red)
+ # return None
+ # try :
+ # i=v.imag
+ # except :
+ # commentaire=tr("expression n est pas de la forme a+bj")
+ # self.editor.afficheInfos(commentaire,Qt.red)
+ # return None
+ # return v
def valeurPressed(self):
- if self.LEComp.text()== "" and (self.LEReel.text()=="" or self.LEImag.text()=="") :
- return
- if self.LEComp.text()== "" : valeur = self.getValeurRI()
- else :
- if self.LEReel.text() != "" or self.LEImag.text() != "" :
- commentaire=tr("entrer une seule valeur SVP")
- self.editor.afficheInfos(commentaire,Qt.red)
- return
- valeur= self.getValeurComp()
+ if (self.LEReel.text()=="" and self.LEImag.text()=="") : self.LEReel.setFocus(True)
+ if (self.LEReel.text()=="" and self.LEImag.text()!="") : self.LEReel.setFocus(True)
+ if (self.LEReel.text()!="" and self.LEImag.text()=="") : self.LEImag.setFocus(True)
+ valeur = self.getValeurRI()
self.politique.recordValeur(valeur)
self.reaffiche()
self.parentQt.donneFocus()
Retourne le complexe saisi par l'utilisateur
"""
l=[]
- if (self.RBMP.isChecked() == 1 ) :
- l.append("MP")
- elif (self.RBRI.isChecked() == 1) :
- l.append("RI")
+ if (self.RBMP.isChecked() == 1 ) : l.append("MP")
+ elif (self.RBRI.isChecked() == 1) : l.append("RI")
else :
- commentaire=tr("saisir le type de complexe")
self.editor.afficheInfos(commentaire,Qt.red)
+ self.RBMP.setFocus(True)
return None
try :
l.append(locale.atof(str(self.LEReel.text())))
def __init__(self,node,monSimpDef,nom,objSimp,parentQt,commande):
self.nbValeurs=2
MonWidgetSimpTuple.__init__(self,node,monSimpDef,nom,objSimp,parentQt,commande)
+ #print (self,node,monSimpDef,nom,objSimp,parentQt,commande)
+ #import traceback
+ #traceback.print_stack()
if self.objSimp.isImmuable() :
self.lineEditVal1.setDisabled(True)
self.lineEditVal2.setDisabled(True)
if self.objSimp.isImmuable() :
self.lineEditVal1.setDisabled(True)
self.lineEditVal2.setDisabled(True)
+ self.lineEditVal3.setDisabled(True)
self.lineEditVal1.setStyleSheet("background:rgb(244,244,244);\n" "border:0px;\n")
self.lineEditVal2.setStyleSheet("background:rgb(244,244,244);\n" "border:0px;\n")
+ self.lineEditVal3.setStyleSheet("background:rgb(244,244,244);\n" "border:0px;\n")
self.lineEditVal1.setToolTip(tr("Valeur non modifiable"))
self.lineEditVal2.setToolTip(tr("Valeur non modifiable"))
+ self.lineEditVal3.setToolTip(tr("Valeur non modifiable"))
else :
self.maCommande.listeAffichageWidget.append(self.lineEditVal1)
class MonWidgetSimpTuple4 (Ui_WidgetTuple4,MonWidgetSimpTuple):
def __init__(self,node,monSimpDef,nom,objSimp,parentQt,commande):
+ #print (self,node,monSimpDef,nom,objSimp,parentQt,commande)
self.nbValeurs=4
MonWidgetSimpTuple.__init__(self,node,monSimpDef,nom,objSimp,parentQt,commande)
"""
Class implementing the main user interface.
"""
- def __init__(self,code=None,salome=1,parent=None,multi=False,langue='fr',ssIhm=True,labelCode=None,genereXSD=False,fichierCata=None):
+ def __init__(self,code=None,salome=1,parent=None,multi=False,langue='fr',ssIhm=True,labelCode=None,genereXSD=False,fichierCata=None,ssCode=None,versionCode=None):
"""
Constructor
"""
self.ssIhm=True
self.code=code
self.genereXSD=genereXSD
+ self.versionCode=versionCode
+ self.ssCode=ssCode
self.dict_reels={}
self.fichierIn=None
if isinstance(catalogue, CatalogDescription): listeTousLesCatas.append(catalogue)
elif isinstance(catalogue, tuple) : listeTousLesCatas.append(CatalogDescription.createFromTuple(catalogue))
else: print(("Catalog description cannot be interpreted: ", catalogue))
+
+ if self.labelCode is None: listeCataPossibles = listeTousLesCatas
+ else :
+ for catalogue in listeTousLesCatas:
+ if catalogue.code == self.code and catalogue.ssCode == self.ssCode:
+ listeCataPossibles.append(catalogue)
+
+ if len(listeCataPossibles)==0:
+ try :
+ QMessageBox.critical(self.QWParent, tr("Import du catalogue"),
+ tr("Pas de catalogue defini pour le code ") + self.code)
+ except :
+ print("Pas de catalogue defini pour le code " + self.code)
+ if self.appliEficas.salome == 0 : sys.exit(1)
+ self.appliEficas.close()
+ return
- # This filter is only useful for codes that have subcodes (like MAP).
- # Otherwise, the "code" attribute of the catalog description can (should) be None.
- if self.ssCode is None: listeCataPossibles = listeTousLesCatas
+ if self.labelCode is not None:
+ # La version a ete fixee
+ for cata in listeCataPossibles:
+ if self.labelCode == cata.identifier:
+ self.fichierCata = cata.fichierCata
+ self.labelCode = cata.labelCode
+ self.appliEficas.formatFichierOut = cata.formatFichierOut
+ self.appliEficas.formatFichierIn = cata.formatFichierIn
else:
- for catalogue in listeTousLesCatas:
- if catalogue.code == self.code and catalogue.ssCode == self.ssCode: listeCataPossibles.append(catalogue)
+ cataChoiceList = []
+ for cata in listeCataPossibles:
+ if cata.selectable:
+ if cata.default : cataChoiceList.insert(0, cata)
+ else : cataChoiceList.append(cata)
# le catalogue est fixe dans la ligne de commande
if self.appliEficas.fichierCata != None :
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_1">
+ <widget class="LECustomTuple" name="lineEditVal1">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_2">
+ <widget class="LECustomTuple" name="lineEditVal2">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_3">
+ <widget class="LECustomTuple" name="lineEditVal3">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_4">
+ <widget class="LECustomTuple" name="lineEditVal4">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_5">
+ <widget class="LECustomTuple" name="lineEditVal5">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_6">
+ <widget class="LECustomTuple" name="lineEditVal6">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_7">
+ <widget class="LECustomTuple" name="lineEditVal7">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_8">
+ <widget class="LECustomTuple" name="lineEditVal8">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_9">
+ <widget class="LECustomTuple" name="lineEditVal9">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_10">
+ <widget class="LECustomTuple" name="lineEditVal10">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_1">
+ <widget class="LECustomTuple" name="lineEditVal1">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_2">
+ <widget class="LECustomTuple" name="lineEditVal2">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_1">
+ <widget class="LECustomTuple" name="lineEditVal1">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_2">
+ <widget class="LECustomTuple" name="lineEditVal2">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_3">
+ <widget class="LECustomTuple" name="lineEditVal3">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_1">
+ <widget class="LECustomTuple" name="lineEditVal1">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_2">
+ <widget class="LECustomTuple" name="lineEditVal2">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_3">
+ <widget class="LECustomTuple" name="lineEditVal3">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_4">
+ <widget class="LECustomTuple" name="lineEditVal4">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_1">
+ <widget class="LECustomTuple" name="lineEditVal1">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_2">
+ <widget class="LECustomTuple" name="lineEditVal2">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_3">
+ <widget class="LECustomTuple" name="lineEditVal3">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_4">
+ <widget class="LECustomTuple" name="lineEditVal4">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_5">
+ <widget class="LECustomTuple" name="lineEditVal5">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_1">
+ <widget class="LECustomTuple" name="lineEditVal1">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_2">
+ <widget class="LECustomTuple" name="lineEditVal2">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_3">
+ <widget class="LECustomTuple" name="lineEditVal3">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_4">
+ <widget class="LECustomTuple" name="lineEditVal4">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_5">
+ <widget class="LECustomTuple" name="lineEditVal5">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_6">
+ <widget class="LECustomTuple" name="lineEditVal6">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_1">
+ <widget class="LECustomTuple" name="lineEditVal1">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_2">
+ <widget class="LECustomTuple" name="lineEditVal2">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_3">
+ <widget class="LECustomTuple" name="lineEditVal3">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_4">
+ <widget class="LECustomTuple" name="lineEditVal4">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_5">
+ <widget class="LECustomTuple" name="lineEditVal5">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_6">
+ <widget class="LECustomTuple" name="lineEditVal6">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_7">
+ <widget class="LECustomTuple" name="lineEditVal7">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_1">
+ <widget class="LECustomTuple" name="lineEditVal1">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_2">
+ <widget class="LECustomTuple" name="lineEditVal2">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_3">
+ <widget class="LECustomTuple" name="lineEditVal3">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_4">
+ <widget class="LECustomTuple" name="lineEditVal4">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_5">
+ <widget class="LECustomTuple" name="lineEditVal5">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_6">
+ <widget class="LECustomTuple" name="lineEditVal6">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_7">
+ <widget class="LECustomTuple" name="lineEditVal7">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_8">
+ <widget class="LECustomTuple" name="lineEditVal8">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_1">
+ <widget class="LECustomTuple" name="lineEditVal1">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_2">
+ <widget class="LECustomTuple" name="lineEditVal2">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_3">
+ <widget class="LECustomTuple" name="lineEditVal3">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_4">
+ <widget class="LECustomTuple" name="lineEditVal4">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_5">
+ <widget class="LECustomTuple" name="lineEditVal5">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_6">
+ <widget class="LECustomTuple" name="lineEditVal6">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_7">
+ <widget class="LECustomTuple" name="lineEditVal7">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_8">
+ <widget class="LECustomTuple" name="lineEditVal8">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_9">
+ <widget class="LECustomTuple" name="lineEditVal9">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<string>...</string>
</property>
<property name="icon">
- <iconset theme="remove"/>
+ <iconset theme="remove">
+ <normaloff>.</normaloff>.</iconset>
</property>
<property name="iconSize">
<size>
<string>...</string>
</property>
<property name="icon">
- <iconset theme="add"/>
+ <iconset theme="add">
+ <normaloff>.</normaloff>.</iconset>
</property>
<property name="iconSize">
<size>
<string>...</string>
</property>
<property name="icon">
- <iconset theme="find"/>
+ <iconset theme="find">
+ <normaloff>.</normaloff>.</iconset>
</property>
<property name="iconSize">
<size>
</item>
</layout>
</item>
+ <item>
+ <widget class="QLabel" name="lineEditUnite">
+ <property name="text">
+ <string>TextLabel</string>
+ </property>
+ </widget>
+ </item>
<item>
<spacer name="verticalSpacer_6">
<property name="orientation">
</layout>
</item>
<item>
- <widget class="QPushButton" name="PBValideFeuille">
+ <widget class="QLabel" name="lineEditUnite">
<property name="text">
- <string>Valide</string>
+ <string>TextLabel</string>
</property>
</widget>
</item>
</property>
</spacer>
</item>
+ <item>
+ <widget class="QPushButton" name="PBValideFeuille">
+ <property name="text">
+ <string>Valide</string>
+ </property>
+ </widget>
+ </item>
</layout>
</item>
</layout>
<rect>
<x>0</x>
<y>0</y>
- <width>743</width>
- <height>60</height>
+ <width>613</width>
+ <height>56</height>
</rect>
</property>
<property name="sizePolicy">
<item>
<widget class="QLineEdit" name="lineEditVal">
<property name="sizePolicy">
- <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
+ <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</widget>
</item>
<item>
- <spacer name="horizontalSpacer_4">
+ <spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</property>
<property name="sizeHint" stdset="0">
<size>
- <width>3</width>
+ <width>5</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
+ <item>
+ <widget class="QLabel" name="lineEditUnite">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="text">
+ <string>TextLabel</string>
+ </property>
+ </widget>
+ </item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
- <enum>QSizePolicy::Expanding</enum>
+ <enum>QSizePolicy::Minimum</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
- <width>58</width>
+ <width>5</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <widget class="QCheckBox" name="checkBoxUQ">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="toolTip">
+ <string>Active le parametre comme variable UQ</string>
+ </property>
+ <property name="text">
+ <string/>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="horizontalSpacer_4">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>QSizePolicy::Fixed</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>3</width>
<height>20</height>
</size>
</property>
<rect>
<x>0</x>
<y>0</y>
- <width>1242</width>
- <height>87</height>
+ <width>940</width>
+ <height>97</height>
</rect>
</property>
<property name="sizePolicy">
<number>0</number>
</property>
<property name="topMargin">
- <number>1</number>
+ <number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
- <number>1</number>
+ <number>0</number>
</property>
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
- <layout class="QHBoxLayout" name="horizontalLayout_4">
- <item>
- <widget class="QLabel" name="label_2">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="minimumSize">
- <size>
- <width>0</width>
- <height>29</height>
- </size>
- </property>
- <property name="maximumSize">
- <size>
- <width>16777215</width>
- <height>29</height>
- </size>
- </property>
- <property name="text">
- <string>Complexe : a+bj</string>
- </property>
- </widget>
- </item>
- <item>
- <spacer name="horizontalSpacer_2">
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>19</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </item>
- </layout>
- </item>
- <item row="1" column="0">
- <widget class="QLineEdit" name="LEComp">
- <property name="frame">
- <bool>false</bool>
- </property>
- </widget>
- </item>
- <item row="0" column="1">
- <widget class="QLabel" name="label_3">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="maximumSize">
- <size>
- <width>50</width>
- <height>24</height>
- </size>
- </property>
- <property name="text">
- <string><html><head/><body><p align="center">OU </p></body></html></string>
- </property>
- </widget>
- </item>
- <item row="0" column="2">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<property name="leftMargin">
<number>4</number>
</item>
</layout>
</item>
- <item row="1" column="2">
+ <item row="1" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QLineEdit" name="LEReel">
</item>
</layout>
</item>
- <item row="1" column="1">
- <spacer name="verticalSpacer_3">
- <property name="orientation">
- <enum>Qt::Vertical</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>17</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </item>
</layout>
</widget>
</item>
+ <item>
+ <spacer name="horizontalSpacer_2">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>QSizePolicy::Fixed</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>10</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <widget class="MonLabelClic" name="lineEditUnite">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="minimumSize">
+ <size>
+ <width>25</width>
+ <height>25</height>
+ </size>
+ </property>
+ <property name="maximumSize">
+ <size>
+ <width>178</width>
+ <height>16777215</height>
+ </size>
+ </property>
+ <property name="frameShape">
+ <enum>QFrame::NoFrame</enum>
+ </property>
+ <property name="text">
+ <string><html><head/><body><p>aaa</p></body></html></string>
+ </property>
+ <property name="scaledContents">
+ <bool>false</bool>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
+ </property>
+ </widget>
+ </item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
</customwidget>
</customwidgets>
<tabstops>
- <tabstop>LEComp</tabstop>
- <tabstop>RBRI</tabstop>
<tabstop>RBMP</tabstop>
<tabstop>RBPoubelle</tabstop>
</tabstops>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout">
+ <property name="topMargin">
+ <number>2</number>
+ </property>
+ <property name="bottomMargin">
+ <number>2</number>
+ </property>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_4">
+ <widget class="QLineEdit" name="lineEditVal4">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_5">
+ <widget class="QLineEdit" name="lineEditVal5">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_6">
+ <widget class="QLineEdit" name="lineEditVal6">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_8">
+ <widget class="QLineEdit" name="lineEditVal8">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_7">
+ <widget class="QLineEdit" name="lineEditVal7">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_9">
+ <widget class="QLineEdit" name="lineEditVal9">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</property>
</widget>
</item>
+ <item>
+ <spacer name="horizontalSpacer_2">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>QSizePolicy::Fixed</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>10</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <widget class="QLabel" name="lineEditUnite">
+ <property name="text">
+ <string>TextLabel</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="horizontalSpacer_4">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>QSizePolicy::Fixed</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>10</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<extends>QLabel</extends>
<header>monLabelClic.h</header>
</customwidget>
- <customwidget>
- <class>LECustomTuple</class>
- <extends>QLineEdit</extends>
- <header>gereListe.h</header>
- </customwidget>
</customwidgets>
<resources/>
<connections/>
<number>0</number>
</property>
<property name="topMargin">
- <number>1</number>
+ <number>2</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
- <number>1</number>
+ <number>2</number>
</property>
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
</property>
<property name="sizeHint" stdset="0">
<size>
- <width>58</width>
+ <width>5</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <widget class="QLabel" name="lineEditUnite">
+ <property name="text">
+ <string>TextLabel</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="horizontalSpacer">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>80</width>
<height>20</height>
</size>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
- <height>5</height>
+ <height>13</height>
</size>
</property>
</spacer>
<number>1</number>
</property>
<property name="topMargin">
- <number>0</number>
+ <number>2</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
- <number>1</number>
+ <number>2</number>
</property>
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
</property>
</widget>
</item>
+ <item>
+ <spacer name="horizontalSpacer_2">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>QSizePolicy::Fixed</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>10</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <widget class="QLabel" name="lineEditUnite">
+ <property name="text">
+ <string>TextLabel</string>
+ </property>
+ </widget>
+ </item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<number>1</number>
</property>
<property name="topMargin">
- <number>0</number>
+ <number>2</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
- <number>1</number>
+ <number>2</number>
</property>
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_4">
+ <widget class="QLineEdit" name="lineEditVal4">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</property>
</widget>
</item>
+ <item>
+ <spacer name="horizontalSpacer_2">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>QSizePolicy::Fixed</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>10</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <widget class="QLabel" name="lineEditUnite">
+ <property name="text">
+ <string>TextLabel</string>
+ </property>
+ </widget>
+ </item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<extends>QLabel</extends>
<header>monLabelClic.h</header>
</customwidget>
- <customwidget>
- <class>LECustomTuple</class>
- <extends>QLineEdit</extends>
- <header>gereListe.h</header>
- </customwidget>
</customwidgets>
<resources/>
<connections/>
<number>1</number>
</property>
<property name="topMargin">
- <number>0</number>
+ <number>2</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
- <number>1</number>
+ <number>2</number>
</property>
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_4">
+ <widget class="QLineEdit" name="lineEditVal4">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_5">
+ <widget class="QLineEdit" name="lineEditVal5">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</property>
</widget>
</item>
+ <item>
+ <spacer name="horizontalSpacer_2">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>QSizePolicy::Fixed</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>10</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <widget class="QLabel" name="lineEditUnite">
+ <property name="text">
+ <string>TextLabel</string>
+ </property>
+ </widget>
+ </item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<extends>QLabel</extends>
<header>monLabelClic.h</header>
</customwidget>
- <customwidget>
- <class>LECustomTuple</class>
- <extends>QLineEdit</extends>
- <header>gereListe.h</header>
- </customwidget>
</customwidgets>
<resources/>
<connections/>
<number>1</number>
</property>
<property name="topMargin">
- <number>0</number>
+ <number>2</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
- <number>1</number>
+ <number>2</number>
</property>
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_4">
+ <widget class="QLineEdit" name="lineEditVal4">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_5">
+ <widget class="QLineEdit" name="lineEditVal5">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_6">
+ <widget class="QLineEdit" name="lineEditVal6">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</property>
</widget>
</item>
+ <item>
+ <spacer name="horizontalSpacer_2">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>QSizePolicy::Fixed</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>10</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <widget class="QLabel" name="lineEditUnite">
+ <property name="text">
+ <string>TextLabel</string>
+ </property>
+ </widget>
+ </item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<extends>QLabel</extends>
<header>monLabelClic.h</header>
</customwidget>
- <customwidget>
- <class>LECustomTuple</class>
- <extends>QLineEdit</extends>
- <header>gereListe.h</header>
- </customwidget>
</customwidgets>
<resources/>
<connections/>
<number>1</number>
</property>
<property name="topMargin">
- <number>0</number>
+ <number>2</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
- <number>1</number>
+ <number>2</number>
</property>
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_4">
+ <widget class="QLineEdit" name="lineEditVal4">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_5">
+ <widget class="QLineEdit" name="lineEditVal5">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_6">
+ <widget class="QLineEdit" name="lineEditVal6">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_7">
+ <widget class="QLineEdit" name="lineEditVal7">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</property>
</spacer>
</item>
+ <item>
+ <spacer name="horizontalSpacer_2">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>QSizePolicy::Fixed</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>10</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <widget class="QLabel" name="lineEditUnite">
+ <property name="text">
+ <string>TextLabel</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="horizontalSpacer_4">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>40</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
<item>
<widget class="QToolButton" name="RBPoubelle">
<property name="minimumSize">
<extends>QLabel</extends>
<header>monLabelClic.h</header>
</customwidget>
- <customwidget>
- <class>LECustomTuple</class>
- <extends>QLineEdit</extends>
- <header>gereListe.h</header>
- </customwidget>
</customwidgets>
<resources/>
<connections/>
<number>1</number>
</property>
<property name="topMargin">
- <number>0</number>
+ <number>2</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
- <number>1</number>
+ <number>2</number>
</property>
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_4">
+ <widget class="QLineEdit" name="lineEditVal4">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_5">
+ <widget class="QLineEdit" name="lineEditVal5">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_6">
+ <widget class="QLineEdit" name="lineEditVal6">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_8">
+ <widget class="QLineEdit" name="lineEditVal8">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_7">
+ <widget class="QLineEdit" name="lineEditVal7">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</property>
</widget>
</item>
+ <item>
+ <spacer name="horizontalSpacer_2">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>QSizePolicy::Fixed</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>10</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
</property>
</spacer>
</item>
+ <item>
+ <widget class="QLabel" name="lineEditUnite">
+ <property name="text">
+ <string>TextLabel</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="horizontalSpacer_4">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>QSizePolicy::Fixed</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>10</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
<item>
<widget class="QToolButton" name="RBPoubelle">
<property name="minimumSize">
<extends>QLabel</extends>
<header>monLabelClic.h</header>
</customwidget>
- <customwidget>
- <class>LECustomTuple</class>
- <extends>QLineEdit</extends>
- <header>gereListe.h</header>
- </customwidget>
</customwidgets>
<resources/>
<connections/>
<number>0</number>
</property>
<property name="leftMargin">
- <number>1</number>
+ <number>0</number>
</property>
<property name="topMargin">
- <number>0</number>
+ <number>2</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
- <number>1</number>
+ <number>2</number>
</property>
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_4">
+ <widget class="QLineEdit" name="lineEditVal4">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_5">
+ <widget class="QLineEdit" name="lineEditVal5">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_6">
+ <widget class="QLineEdit" name="lineEditVal6">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_8">
+ <widget class="QLineEdit" name="lineEditVal8">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_7">
+ <widget class="QLineEdit" name="lineEditVal7">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</widget>
</item>
<item>
- <widget class="LECustomTuple" name="lineEditVal_9">
+ <widget class="QLineEdit" name="lineEditVal9">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
</property>
</widget>
</item>
+ <item>
+ <spacer name="horizontalSpacer_2">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>QSizePolicy::Fixed</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>10</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <widget class="QLabel" name="lineEditUnite">
+ <property name="text">
+ <string>TextLabel</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="horizontalSpacer_4">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>QSizePolicy::Fixed</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>10</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<extends>QLabel</extends>
<header>monLabelClic.h</header>
</customwidget>
- <customwidget>
- <class>LECustomTuple</class>
- <extends>QLineEdit</extends>
- <header>gereListe.h</header>
- </customwidget>
</customwidgets>
<resources/>
<connections/>
--- /dev/null
+texteDebut='<?xml version="1.0" encoding="UTF-8"?>\n<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"\nxmlns="http://chercheurs.edf.com/logiciels/{}"\nxmlns:{}="http://chercheurs.edf.com/logiciels/{}"\ntargetNamespace="http://chercheurs.edf.com/logiciels/{}"\nelementFormDefault="qualified" attributeFormDefault="unqualified" version="0">\n'
+texteDebutNiveau2='<?xml version="1.0" encoding="UTF-8"?>\n<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"\nxmlns="http://chercheurs.edf.com/logiciels/{}"\nxmlns:{}="http://chercheurs.edf.com/logiciels/{}"\nxmlns:{}="http://chercheurs.edf.com/logiciels/{}"\ntargetNamespace="http://chercheurs.edf.com/logiciels/{}"\nelementFormDefault="qualified" attributeFormDefault="unqualified" version="0">\n'
+texteDebutNiveau3='<?xml version="1.0" encoding="UTF-8"?>\n<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"\nxmlns="http://chercheurs.edf.com/logiciels/{}"\nxmlns:{}="http://chercheurs.edf.com/logiciels/{}"\nxmlns:{}="http://chercheurs.edf.com/logiciels/{}"\nxmlns:{}="http://chercheurs.edf.com/logiciels/{}"\ntargetNamespace="http://chercheurs.edf.com/logiciels/{}"\nelementFormDefault="qualified" attributeFormDefault="unqualified" version="0">\n'
+texteFin='</xs:schema>'
+
+#texteAnnotation= '\t<xs:simpleType name="PNEFdico_{}">\n\t\t<xs:annotation>\n\t\t<xs:documentation>{}\n\t\t</xs:documentation>\n\t\t</xs:annotation>\n\t<xs:restriction base="xs:string"></xs:restriction>\n\t</xs:simpleType>\n'
+texteAnnotation= '\t<xs:simpleType name="PNEFdico">\n\t\t<xs:annotation>\n\t\t<xs:documentation>{}\n\t\t</xs:documentation>\n\t\t</xs:annotation>\n\t<xs:restriction base="xs:string"></xs:restriction>\n\t</xs:simpleType>\n'
+
+# SIMP
+debutSimpleType = '\t<xs:simpleType name="{}">\n'
+debutSimpleTypeSsNom = '\t<xs:simpleType>\n'
+fermeSimpleType = '\t</xs:simpleType>\n'
+debutRestrictionBase = '\t\t<xs:restriction base="{}">\n'
+fermeRestrictionBase = '\t\t</xs:restriction>\n'
+enumeration = '\t\t\t<xs:enumeration value="{}"/>\n'
+maxInclusiveBorne = '\t\t\t<xs:maxInclusive value = "{}"/>\n'
+minInclusiveBorne = '\t\t\t<xs:minInclusive value = "{}"/>\n'
+
+debutTypeSimpleListe = '\t\t<xs:restriction>\n\t\t\t<xs:simpleType>\n\t\t\t\t<xs:list>\n\t\t\t\t\t<xs:simpleType>\n'
+finTypeSimpleListe = '\t\t</xs:restriction>\n\t\t\t</xs:simpleType>\n\t\t\t\t</xs:list>\n\t\t\t\t\t</xs:simpleType>\n'
+fermeBalisesMileu = '\t\t\t\t\t\t</xs:restriction>\n\t\t\t\t\t</xs:simpleType>\n\t\t\t\t</xs:list>\n\t\t\t </xs:simpleType>\n'
+
+maxLengthTypeSimple = '\t\t\t<xs:maxLength value = "{}"/>\n'
+minLengthTypeSimple = '\t\t\t<xs:minLength value = "{}"/>\n'
+eltDsSequence = '\t\t\t<xs:element name="{}" type="{}:{}" minOccurs="{}" maxOccurs="{}"/>\n'
+eltDsSequenceWithHelp = '\t\t\t<xs:element name="{}" type="{}:{}" minOccurs="{}" maxOccurs="{}">\n\t\t\t\t<xs:annotation>\n\t\t\t\t\t<xs:documentation>{}</xs:documentation>\n\t\t\t\t</xs:annotation>\n\t\t\t</xs:element>\n'
+eltDsSequenceWithDefautAndHelp = '\t\t\t<xs:element name="{}" type="{}:{}" minOccurs="{}" maxOccurs="{}" default="{}">\n\t\t\t\t<xs:annotation>\n\t\t\t\t\t<xs:documentation>{}</xs:documentation>\n\t\t\t\t</xs:annotation>\n\t\t\t</xs:element>\n'
+eltDsSequenceWithDefaut = '\t\t\t<xs:element name="{}" type="{}:{}" minOccurs="{}" maxOccurs="{}" default="{}"/>\n'
+UsingASSDkeyRefDeclaration = '\n\t<xs:keyref name="{}_Name_ref_a{}" refer="{}:Key_Name_For_{}"> \n\t\t<xs:selector xpath="{}"/>\n\t\t<xs:field xpath="."/>\n\t</xs:keyref>\n'
+# <xs:key name="Key_Name_For_ElementarySurface">
+# <xs:selector xpath="./Vimmp:CDM/Vimmp:Geometric_Domain/Vimmp:Surface"/>
+# <xs:field xpath="./Vimmp:SurfaceName"/>
+# </xs:key>
+
+ #<xs:keyref name="MyField_Ref_A_CreateMesh" refer="Test1:Key_Name_In_ReadMesh_CreateMesh">
+ #<xs:selector xpath="./Test1:MyField/Test1:onMesh"/>
+
+
+
+
+# COMPO
+debutTypeCompo = '\t<xs:complexType name="{}" >\n'
+debutTypeCompoEtape = '\t <xs:complexContent>\n\t <xs:extension base="T_step_{}">\n'
+finTypeCompoEtape = '\t </xs:extension>\n\t </xs:complexContent>\n'
+debutTypeCompoSeq = '\t\t<xs:sequence>\n'
+finTypeCompoSeq = '\t\t</xs:sequence>\n'
+finTypeCompo = '\t</xs:complexType>\n'
+eltCompoDsSequence = '\t\t\t<xs:element name="{}" type="{}:{}" minOccurs="{}" maxOccurs="{}"/>\n'
+eltCompoDsSequenceWithHelp = '\t\t\t<xs:element name="{}" type="{}:{}" minOccurs="{}" maxOccurs="{}"/>\n'
+#name="{}" type="{}:{}" minOccurs="{}" maxOccurs="{}">\n\t\t\t\t<xs:annotation>\n\t\t\t\t\t<xs:documentation>{}</xs:documentation>\n\t\t\t\t</xs:annotation>\n\t\t\t</xs:element>\n'
+#eltCompoDsSequenceInExtension = '\t\t\t<xs:element name="{}" type="{}:{}"/>\n'
+
+# ETAPE
+eltEtape = '\t<xs:element name="{}" type="{}:{}" substitutionGroup="step_{}"/>\n'
+eltEtapeWithHelp = '\t<xs:element name="{}" type="{}:{}" substitutionGroup="step_{}">\n\t\t\t\t<xs:annotation>\n\t\t\t\t\t<xs:documentation>{}</xs:documentation>\n\t\t\t\t</xs:annotation>\n\t\t\t</xs:element>\n'
+
+# BLOC
+debutTypeSubst = '\t<xs:group name="{}"> \n\t\t<xs:sequence>\n'
+finTypeSubst = '\t\t</xs:sequence>\n\t</xs:group>\n'
+substDsSequence = '\t\t\t<xs:group ref="{}:{}" minOccurs="{}" maxOccurs="{}">\n\t\t\t\t<xs:annotation>\n\t\t\t\t\t<xs:documentation>{}</xs:documentation>\n\t\t\t\t</xs:annotation>\n\t\t\t</xs:group>\n'
+#choiceDsBloc = '\t\t\t<xs:choice minOccurs={}>\n'
+debutChoiceDsBloc = '\t\t<xs:choice>\n'
+debutChoiceDsBlocAvecMin = '<xs:choice minOccurs="{}">\n'
+finChoiceDsBloc = '\t\t</xs:choice>\n'
+debSequenceDsBloc = '<xs:sequence>\n'
+finSequenceDsBloc = '</xs:sequence>\n'
+debutTypeSubstDsBlocFactorise = '\t<xs:group name="{}">\n'
+finTypeSubstDsBlocFactorise = '\t</xs:group>\n'
+debutUnion = '\t\t\t<xs:union>\n'
+finUnion = '\t\t\t</xs:union>\n'
+reconstitueUnion = '{} maxOccurs="1">\n\t\t\t\t<xs:annotation>\n\t\t\t\t\t<xs:documentation>{}</xs:documentation>\n\t\t\t\t</xs:annotation>\n\t\t\t</xs:element>\n'
+
+
+
+# User OR ASSD
+attributeNameName = '\t\t<xs:attribute name="sdName" type="xs:string"/>\n'
+attributeTypeForASSD = '\t\t<xs:attribute name="sdType" type="xs:string" fixed="ASSD"/>\n'
+attributeTypeUtilisateurName = '\t\t<xs:attribute name="typeUtilisateur" type="xs:string" fixed="{}"/>\n'
+producingASSDkeyRefDeclaration='\t<xs:key name="Key_Name_For_{}">\n\t\t<xs:selector xpath="."/>\n\t\t<xs:field xpath="{}"/>\n\t</xs:key>\n'
+texteFieldUnitaire="./{}:{}/@name |"
+defBaseXSDUserASSD='\t<xs:simpleType name="AccasUserAssd">\n\t\t<xs:restriction base="xs:string">\n\t\t</xs:restriction>\n\t</xs:simpleType>\n'
+defBaseXSDUserASSDMultiple='\t<xs:simpleType name="AccasUserAssdMultiple">\n\t\t<xs:restriction base="xs:string">\n\t\t</xs:restriction>\n\t</xs:simpleType>\n'
+
+defUserASSDMultiple='\t<xs:simpleType name="{}">\n\t\t<xs:restriction base="AccasUserAssdMultiple">\n\t\t</xs:restriction>\n\t</xs:simpleType>\n'
+defUserASSD ='\t<xs:simpleType name="{}">\n\t\t<xs:restriction base="AccasUserAssd">\n\t\t</xs:restriction>\n\t</xs:simpleType>\n'
+
+defUserASSDOrUserASSDMultiple='\t<xs:simpleType name="{}_{}">\n\t\t<xs:restriction base="{}">\n\t\t</xs:restriction>\n\t</xs:simpleType>\n'
+
+
+# CATA
+debutTypeCata = '\t<xs:complexType name="T_{}">\n\t\t<xs:choice minOccurs="0" maxOccurs="unbounded">\n'
+debutTypeCataExtension = '\t<xs:complexType name="T_{}">\n'
+finTypeCata = '\t\t</xs:choice>\n\t</xs:complexType>\n'
+finSchema = '</xs:schema>'
+#eltCata = '\t<xs:element name="{}" type="{}:{}"/>\n'
+#eltCodeSpecDsCata = '\t\t\t<xs:element ref="{}_Abstract" minOccurs="0" maxOccurs="1"/>\n'
+#fermeEltCata = '\t</xs:element>\n'
+includeCata = '<xs:include schemaLocation="cata_{}.xsd" />\n\n'
+
+
+# EXTENSION
+debutExtension = '\t\t<xs:complexContent>\n\t\t<xs:extension base="{}:T_{}_Abstract">\n\t\t<xs:choice minOccurs="0" maxOccurs="unbounded">\n'
+finExtension = '\t\t</xs:choice>\n\t\t</xs:extension>\n\t\t</xs:complexContent>\n'
+
+# TYPE ABSTRAIT
+eltAbstraitCataPPal = '\t<xs:complexType name="T_step_{}" abstract="true"/>\n'
+eltAbstraitCataFils = '\t<xs:complexType name="T_step_{}" abstract="true">\n\t\t<xs:complexContent>\n\t\t\t<xs:extension base="{}:T_step_{}"/>\n\t\t</xs:complexContent>\n\t</xs:complexType>\n'
+eltCataPPal = '\t<xs:element name="step_{}" type="{}:T_step_{}"/>\n'
+eltCataPPalWithHelp = '\t<xs:element name="step_{}" type="{}:T_step_{}"/>\n\t\t\t\t<xs:annotation>\n\t\t\t\t\t<xs:documentation>{}</xs:documentation>\n\t\t\t\t</xs:annotation>\n\t\t\t</xs:element>\n'
+eltCataFils = '\t<xs:element name="step_{}" type="{}:T_step_{}" substitutionGroup="step_{}"/>\n'
+eltCataFilsWithHelp = '\t<xs:element name="step_{}" type="{}:T_step_{}" substitutionGroup="step_{}"/>\n\t\t\t\t<xs:annotation>\n\t\t\t\t\t<xs:documentation>{}</xs:documentation>\n\t\t\t\t</xs:annotation>\n\t\t\t</xs:element>\n'
+
+eltCata = '\t<xs:element name="{}" type="{}:T_{}"/>\n\t\t<xs:complexType name="T_{}">\n\t\t <xs:choice minOccurs="0" maxOccurs="unbounded">\n\t\t\t<xs:element ref="step_{}" minOccurs="0" maxOccurs="1"/>\n\t\t </xs:choice>\n\t\t</xs:complexType>\n'
+
+#\n\t<xs:element name="{}_Abstract" type="{}:T_{}_Abstract"/>\n'
+#implementeAbstrait = '\t<xs:element name="{}" type="{}:{}" substitutionGroup="{}:{}_Abstract"/>\n'
+
+# MATRICE oldVersion
+# (_matrix ou pas ?)
+#matriceSimpleType = '\t<xs:simpleType name="{}_matrix">\n\t\t<xs:restriction>\n\t\t\t<xs:simpleType>\n\t\t\t\t<xs:list>\n\t\t\t\t\t<xs:simpleType>\n\t\t\t\t\t\t<xs:restriction base="{}_element"/>\n\t\t\t\t\t</xs:simpleType>\n\t\t\t\t</xs:list>\n\t\t\t</xs:simpleType>\n\t\t\t<xs:length value="{}"/>\n\t\t</xs:restriction>\n\t</xs:simpleType>\n'
+#matriceSimpleType = '\t<xs:simpleType name="{}">\n\t\t<xs:restriction>\n\t\t\t<xs:simpleType>\n\t\t\t\t<xs:list>\n\t\t\t\t\t<xs:simpleType>\n\t\t\t\t\t\t<xs:restriction base="{}_element"/>\n\t\t\t\t\t</xs:simpleType>\n\t\t\t\t</xs:list>\n\t\t\t</xs:simpleType>\n\t\t\t<xs:length value="{}"/>\n\t\t</xs:restriction>\n\t</xs:simpleType>\n'
+#matriceSimpleType +='\t<xs:group name="{}_lines">\n\t\t<xs:sequence>\n\t\t\t<xs:element name="{}" type="{}:{}_matrix" minOccurs="{}" maxOccurs="{}"/>\t\n\t\t</xs:sequence>\n\t</xs:group>\n\t\n'
+#matriceSimpleType +='\t<xs:group name="{}_lines">\n\t\t<xs:sequence>\n\t\t\t<xs:element name="{}" type="{}:{}" minOccurs="{}" maxOccurs="{}"/>\t\n\t\t</xs:sequence>\n\t</xs:group>\n\t\n'
+#matriceSimpleType +='\t<xs:group name="{}_content">\n\t\t<xs:sequence>\n\t\t\t<xs:group ref="{}:{}_lines" minOccurs="1" maxOccurs="1"/>\t\n\t\t</xs:sequence>\n\t</xs:group>'
+#eltMatrice = ' <xs:group ref="{}:{}_content" minOccurs="{}" maxOccurs="{}"/>'
+
+# TUPLE
+tupleNonHomogeneSimpleType = '\t<xs:simpleType name="{}_n{}_tuple">\n\t\t<xs:restriction base="{}"/>\n\t\t</xs:simpleType>\n'
+tupleNonHomogeneElt = '\t\t\t<xs:element name="{}" type="{}:{}" minOccurs="{}" maxOccurs="{}"/>\n'
+tupleDebutComplexeType = '\t<xs:complexType name="{}">\n\t\t<xs:sequence>'
+tupleMilieuComplexeType = '\n\t\t\t<xs:element name="n{}" type="{}_n{}_tuple" minOccurs="1" maxOccurs="1"/>'
+tupleFinComplexeType = '\n\t\t</xs:sequence>\n\t</xs:complexType>\n'
+
+# MATRICE
+eltMatrice = '\t\t\t <xs:element name="{}" type="{}:{}" minOccurs="{}" maxOccurs="{}"/>\n'
+matriceSimpleType = '\t<xs:simpleType name="{}_line">\n\t\t<xs:restriction>\n\t\t\t<xs:simpleType>\n\t\t\t\t<xs:list>\n\t\t\t\t\t<xs:simpleType>\n\t\t\t\t\t\t<xs:restriction base="{}_element"/>\n\t\t\t\t\t</xs:simpleType>\n\t\t\t\t</xs:list>\n\t\t\t</xs:simpleType>\n\t\t\t<xs:length value="{}"/>\n\t\t</xs:restriction>\n\t</xs:simpleType>\n'
+matriceSimpleType +='\t<xs:group name="{}_matrix">\n\t\t<xs:sequence>\n\t\t\t<xs:element name="line" type="{}:{}_line" minOccurs="{}" maxOccurs="{}"/>\n\t\t </xs:sequence>\n\t</xs:group>\n'
+matriceSimpleType +='\t<xs:complexType name="{}"> \n\t\t<xs:group ref="{}:{}_matrix" minOccurs="1" maxOccurs="1"/>\n\t</xs:complexType>\n'
+
+# CHAINES AVEC BLANC
+debutChaineAvecBlancsInto = '\t<xs:simpleType name="{}_enum">\n\t\t<xs:restriction base="xs:string">\n'
+milieuChaineAvecBlancsInto = '\t\t\t<xs:enumeration value="{}"/>\n'
+finChaineAvecBlancsInto = '\t\t</xs:restriction>\n\t\t</xs:simpleType>\n'
+
+complexChaineAvecBlancs = '\t<xs:complexType name="{}">\n\t\t<xs:sequence maxOccurs="{}">\n\t\t\t\t<xs:element name="s__" type="{}_enum"/>\n\t\t\t</xs:sequence>\n\t</xs:complexType>\n'
+
+typeEltChaineAvecBlancSansInto = '\t\t<xs:simpleType name="{}_enum">\n\t\t\t<xs:restriction base="xs:string">\n\t\t\t</xs:restriction>\n\t\t</xs:simpleType>'
+if __name__ == '__main__' :
+ print ('ne fait rien')
--- /dev/null
+# -*- coding: utf-8 -*-
+# Copyright (C) 2007-2021 EDF R&D
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library 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
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+"""Ce module contient le plugin generateur de fichier au format Code_Carmel3D pour EFICAS.
+"""
+
+from __future__ import absolute_import
+from __future__ import print_function
+try :
+ from builtins import str
+except : pass
+
+import traceback
+import types,re,os
+from Extensions.i18n import tr
+from .generator_python import PythonGenerator
+
+def entryPoint():
+ """
+ Retourne les informations necessaires pour le chargeur de plugins
+ Ces informations sont retournees dans un dictionnaire
+ """
+ return {
+ # Le nom du plugin
+ 'name' : 'xml',
+ # La factory pour creer une instance du plugin
+ 'factory' : XMLGenerator,
+ }
+
+
+class XMLGenerator(PythonGenerator):
+ """
+ Ce generateur parcourt un objet de type JDC et produit
+ un texte au format eficas et
+
+ """
+ # Les extensions de fichier permis?
+ extensions=('.comm',)
+
+#----------------------------------------------------------------------------------------
+ def gener(self,obj,format='brut',config=None,appliEficas=None):
+
+ try :
+ #if 1 :
+ self.texteXML=obj.toXml()
+ except :
+ self.texteXML='erreur generation'
+ #print (self.texteXML)
+ # pass
+
+ self.textePourAide =""
+ self.dictNbNomObj={}
+ # Cette instruction genere le contenu du fichier de commandes (persistance)
+ self.text=PythonGenerator.gener(self,obj,format)
+ return self.text
+
+
+#----------------------------------------------------------------------------------------
+# initialisations
+#----------------------------------------------------------------------------------------
+
+# ecriture
+#----------------------------------------------------------------------------------------
+
+ def writeDefault(self,fn) :
+ fileXML = fn[:fn.rfind(".")] + '.xml'
+ #filePyxb = fn[:fn.rfind(".")] + '.py'
+ fileBase = os.path.basename(fileXML)
+ fileBase = fileBase[:fileBase.rfind(".")] + '.py'
+ filePyxb = '/tmp/example_' + fileBase
+ #print (filePyxb)
+ #fileDico='/tmp/toto.xml'
+ #print (self.texteXML)
+ f = open( str(fileXML), 'w')
+ f.write(str(self.texteXML))
+ f.close()
+
+ f = open( str(filePyxb), 'w')
+ self.textePourAide='txt=""'+'\n'+self.textePourAide
+ self.textePourAide=self.textePourAide+'print (txt)'+'\n'
+ f.write(str(self.textePourAide))
+ f.close()
+
+
+ def generMCSIMP(self,obj) :
+ if obj.nom != 'Consigne' :
+ if obj.nom in self.dictNbNomObj.keys():
+ nomUtil = obj.nom + "_" + str(self.dictNbNomObj[obj.nom])
+ self.dictNbNomObj[obj.nom] += 1
+ else :
+ nomUtil = obj.nom
+ self.dictNbNomObj[obj.nom] = 1
+ if obj.definition.avecBlancs : self.textePourAide += nomUtil + " = vimmpCase." + obj.getNomDsXML() + ".s\n"
+ else : self.textePourAide += nomUtil + " = vimmpCase." + obj.getNomDsXML() + "\n"
+ self.textePourAide +='txt += "' + nomUtil + '" + " = " +str( ' + nomUtil + ')+"\\n"'+ "\n"
+
+
+
+ s=PythonGenerator.generMCSIMP(self,obj)
+ return s