ind=ind+1
def affichePanneau(self) :
+ print self
if self.item.isactif():
panel=self.getPanel()
else:
import browser
class Node(browser.JDCNode):
- pass
+
+ def getPanel(self):
+ from monRacinePanel import MonRacinePanel
+ return MonRacinePanel(self,parent=self.editor)
+
+
+ def createPopUpMenu(self):
+ typeNode.PopUpMenuNode.createPopUpMenu(self)
class NIVEAUTreeItem(Objecttreeitem.ObjectTreeItem):
itemNode=Node
- la fonte dans laquelle afficher ce texte
- la couleur du texte
"""
- if self.isactif():
- fonte = Fonte_Niveau
- else :
- fonte = Fonte_Niveau_inactif
- return self.labeltext,fonte,'#00008b'
+ return self.labeltext,None,None
def GetIconName(self):
if self.isactif():
self.liste_simp_reel=[]
self.ihm="QT"
- import configuration
+ import prefs
+ nameConf='configuration_'+prefs.code
+ configuration=__import__(nameConf)
self.CONFIGURATION = self.appliEficas.CONFIGURATION
self.CONFIGStyle = self.appliEficas.CONFIGStyle
if not hasattr( readercata, 'reader' ) :
readercata.reader = readercata.READERCATA( self, self.appliEficas )
self.readercata = readercata.reader
+ self.Commandes_Ordre_Catalogue =self.readercata.Commandes_Ordre_Catalogue
#------- construction du jdc --------------
jdc_item = None
+ self.mode_nouv_commande=self.readercata.mode_nouv_commande
nouveau=0
if self.fichier is not None: # fichier jdc fourni
return ""
+ #-----------------------------------------#
+ def cherche_Groupes(self):
+ liste=self.get_text_JDC("GroupMA")
+ return liste
+ #-----------------------------------------#
+
#-----------------------------------------#
def saveFile(self, path = None, saveas= 0):
#-----------------------------------------#
pass
- #try :
- if 1 :
+ try :
+ #if 1 :
self.tubePy=self.generator.getTubePy()
fileTube = '/tmp/tube.py'
if self.tubePy != '' :
f=open(fileTube,'w')
f.write(self.tubePy)
f.close()
- #except :
- else :
+ except :
+ #else :
pass
if self.salome :
if __name__=='__main__':
import prefs # dans main
- if hasattr(prefs,'encoding'):
+ name='prefs_'+prefs.code
+ prefsCode=__import__(name)
+
+ if hasattr(prefsCode,'encoding'):
# Hack pour changer le codage par defaut des strings
import sys
reload(sys)
readercata = READERCATA( parent, Eficas )
from editor import JDCEditor
- monEditeur=JDCEditor(Eficas,"/home/noyret/Eficas_Aster/zz.comm")
- print monEditeur.jdc.cherche_Groupes()
+ monEditeur=JDCEditor(Eficas,fichier)
+ print monEditeur.cherche_Groupes()
self.connect(self.LEFiltre,SIGNAL("returnPressed()"),self.LEfiltreReturnPressed)
self.connect(self.bOk,SIGNAL("clicked()"),self.BOkPressed)
self.connect(self.LENomConcept,SIGNAL("returnPressed()"),self.LENomConceptReturnPressed)
- self.connect(self.RBGroupe,SIGNAL("clicked()"),self.BuildTabCommand)
- self.connect(self.RBalpha,SIGNAL("clicked()"),self.BuildTabCommand)
+ self.connect(self.RBGroupe,SIGNAL("clicked()"),self.BuildTabCommandChanged)
+ self.connect(self.RBalpha,SIGNAL("clicked()"),self.BuildTabCommandChanged)
self.connect(self.BNext,SIGNAL("pressed()"),self.BNextPressed)
def BOkPressed(self):
def BNextPressed(self):
QTPanelTBW2.BNextPressed(self)
- def BuildTabCommand(self):
- QTPanelTBW2.BuildLBNouvCommande(self)
+ def BuildTabCommandChanged(self):
+ QTPanelTBW2.BuildLBNouvCommandChanged(self)
def LEFiltreTextChanged(self):
QTPanelTBW2.LEFiltreTextChanged(self)
self.connect(self.LEFiltre,SIGNAL("textChanged(const QString&)"),self.LEFiltreTextChanged)
self.connect(self.LEFiltre,SIGNAL("returnPressed()"),self.LEfiltreReturnPressed)
self.connect(self.bOk,SIGNAL("clicked()"),self.BOkPressed)
- self.connect(self.RBGroupe,SIGNAL("clicked()"),self.BuildTabCommand)
- self.connect(self.RBalpha,SIGNAL("clicked()"),self.BuildTabCommand)
+ self.connect(self.RBGroupe,SIGNAL("clicked()"),self.BuildTabCommandChanged)
+ self.connect(self.RBalpha,SIGNAL("clicked()"),self.BuildTabCommandChanged)
self.connect(self.BNext,SIGNAL("pressed()"),self.BNextPressed)
self.connect(self.textCommentaire,SIGNAL("textChanged()"),self.TexteCommentaireEntre)
self.node.item.set_valeur(texte)
self.node.onValid()
- def BuildTabCommand(self):
- QTPanelTBW2.BuildLBNouvCommande(self)
-
def LEFiltreTextChanged(self):
QTPanelTBW2.LEFiltreTextChanged(self)
def BOkPressed(self):
QTPanel.BOkPressed(self)
+ def BuildTabCommandChanged(self):
+ QTPanelTBW2.BuildLBNouvCommandChanged(self)
+
self.connect(self.LEFiltre,SIGNAL("textChanged(const QString&)"),self.LEFiltreTextChanged)
self.connect(self.LEFiltre,SIGNAL("returnPressed()"),self.LEfiltreReturnPressed)
self.connect(self.bOk,SIGNAL("clicked()"),self.BOkPressed)
- self.connect(self.RBalpha,SIGNAL("clicked()"),self.BuildTabCommand)
- self.connect(self.RBGroupe,SIGNAL("clicked()"),self.BuildTabCommand)
+ self.connect(self.RBalpha,SIGNAL("clicked()"),self.BuildTabCommandChanged)
+ self.connect(self.RBGroupe,SIGNAL("clicked()"),self.BuildTabCommandChanged)
self.connect(self.BNext,SIGNAL("clicked()"),self.BNextPressed)
self.connect(self.LENomFormule,SIGNAL("returnPressed()"),self.NomFormuleSaisi)
self.connect(self.LENomsArgs,SIGNAL("returnPressed()"),self.argsSaisis)
def BNextPressed(self):
QTPanelTBW2.BNextPressed(self)
- def BuildTabCommand(self):
- QTPanelTBW2.BuildLBNouvCommande(self)
+ def BuildTabCommandChanged(self):
+ QTPanelTBW2.BuildLBNouvCommandChanged(self)
+
def LEFiltreTextChanged(self):
QTPanelTBW2.LEFiltreTextChanged(self)
self.connect(self.LEFiltre,SIGNAL("textChanged(const QString&)"),self.LEFiltreTextChanged)
self.connect(self.LEFiltre,SIGNAL("returnPressed()"),self.LEfiltreReturnPressed)
self.connect(self.bOk,SIGNAL("clicked()"),self.BOkPressed)
- self.connect(self.RBGroupe,SIGNAL("clicked()"),self.BuildTabCommand)
- self.connect(self.RBalpha,SIGNAL("clicked()"),self.BuildTabCommand)
+ self.connect(self.RBGroupe,SIGNAL("clicked()"),self.BuildTabCommandChanged)
+ self.connect(self.RBalpha,SIGNAL("clicked()"),self.BuildTabCommandChanged)
self.connect(self.BNext,SIGNAL("pressed()"),self.BNextPressed)
self.connect(self.BBrowse,SIGNAL("clicked()"),self.BBrowsePressed)
try :
def BNextPressed(self):
QTPanelTBW2.BNextPressed(self)
- def BuildTabCommand(self):
- QTPanelTBW2.BuildLBNouvCommande(self)
+ def BuildTabCommandChanged(self):
+ QTPanelTBW2.BuildLBNouvCommandChanged(self)
def LEFiltreTextChanged(self):
QTPanelTBW2.LEFiltreTextChanged(self)
self.connect(self.LEFiltre,SIGNAL("returnPressed()"),self.LEfiltreReturnPressed)
self.connect(self.bOk,SIGNAL("clicked()"),self.BOkPressed)
self.connect(self.LENomConcept,SIGNAL("returnPressed()"),self.LENomConceptReturnPressed)
- self.connect(self.RBGroupe,SIGNAL("clicked()"),self.BuildTabCommand)
- self.connect(self.RBalpha,SIGNAL("clicked()"),self.BuildTabCommand)
+ self.connect(self.RBGroupe,SIGNAL("clicked()"),self.BuildTabCommandChanged)
+ self.connect(self.RBalpha,SIGNAL("clicked()"),self.BuildTabCommandChanged)
self.connect(self.BNext,SIGNAL("pressed()"),self.BNextPressed)
def BNextPressed(self):
QTPanelTBW2.BNextPressed(self)
- def BuildTabCommand(self):
- QTPanelTBW2.BuildLBNouvCommande(self)
+ def BuildTabCommandChanged(self):
+ QTPanelTBW2.BuildLBNouvCommandChanged(self)
def LEFiltreTextChanged(self):
QTPanelTBW2.LEFiltreTextChanged(self)
old_fic_ini_util=fic_ini_util+"_old"
commande="mv "+fic_ini_util+" "+old_fic_ini_util
os.system(commande)
- import configuration
+ import prefs
+ nameConf='configuration_'+prefs.code
+ configuration=__import__(nameConf)
+
configNew=configuration.CONFIG(appli,repIni)
self.configuration=configNew
appli.CONFIGURATION=configNew
self.connect(self.LEFiltre,SIGNAL("textChanged(const QString&)"),self.LEFiltreTextChanged)
self.connect(self.LEFiltre,SIGNAL("returnPressed()"),self.LEfiltreReturnPressed)
self.connect(self.bOk,SIGNAL("clicked()"),self.BOkPressed)
- self.connect(self.RBGroupe,SIGNAL("clicked()"),self.BuildTabCommand)
- self.connect(self.RBalpha,SIGNAL("clicked()"),self.BuildTabCommand)
+ self.connect(self.RBGroupe,SIGNAL("clicked()"),self.BuildTabCommandChanged)
+ self.connect(self.RBalpha,SIGNAL("clicked()"),self.BuildTabCommandChanged)
self.connect(self.BNext,SIGNAL("pressed()"),self.BNextPressed)
self.connect(self.lineEditVal,SIGNAL("returnPressed()"),self.BOkPressed)
commentaire="Les noms de parametre doivent commencer par une lettre ou un souligne"
return None,commentaire
- def BuildTabCommand(self):
- QTPanelTBW2.BuildLBNouvCommande(self)
+ def BuildTabCommandChanged(self):
+ QTPanelTBW2.BuildLBNouvCommandChanged(self)
def LEFiltreTextChanged(self):
QTPanelTBW2.LEFiltreTextChanged(self)
self.connect(self.LEFiltre,SIGNAL("textChanged(const QString&)"),self.LEFiltreTextChanged)
self.connect(self.LEFiltre,SIGNAL("returnPressed()"),self.LEfiltreReturnPressed)
self.connect(self.bOk,SIGNAL("clicked()"),self.BOkPressed)
- self.connect(self.RBalpha,SIGNAL("clicked()"),self.BuildTabCommand)
- self.connect(self.RBGroupe,SIGNAL("clicked()"),self.BuildTabCommand)
+ self.connect(self.RBalpha,SIGNAL("clicked()"),self.BuildTabCommandChanged)
+ self.connect(self.RBGroupe,SIGNAL("clicked()"),self.BuildTabCommandChanged)
self.connect(self.BNext,SIGNAL("clicked()"),self.BNextPressed)
def BOkPressed(self):
def BNextPressed(self):
QTPanelTBW2.BNextPressed(self)
- def BuildTabCommand(self):
- QTPanelTBW2.BuildLBNouvCommande(self)
+ def BuildTabCommandChanged(self):
+ QTPanelTBW2.BuildLBNouvCommandChanged(self)
def LEFiltreTextChanged(self):
QTPanelTBW2.LEFiltreTextChanged(self)
self.LBNouvCommande.clear()
jdc=self.node.item.object.get_jdc_root()
- if self.RBalpha.isChecked():
+ if self.editor.mode_nouv_commande == "alpha":
+ self.RBalpha.setChecked(True)
+ self.RBGroupe.setChecked(False)
listeCmd = jdc.get_liste_cmd()
for aCmd in listeCmd:
self.LBNouvCommande.addItem( aCmd )
- else :
+ elif self.editor.mode_nouv_commande== "groupe" :
+ self.RBGroupe.setChecked(True)
+ self.RBalpha.setChecked(False)
+
listeGroupes,dictGroupes=jdc.get_groups()
for grp in listeGroupes:
if grp == "CACHE":continue
for aCmd in listeCmd:
self.LBNouvCommande.addItem( aCmd)
self.LBNouvCommande.addItem( " " )
+ elif self.editor.mode_nouv_commande== "initial" :
+ listeCmd = self.editor.Commandes_Ordre_Catalogue
+ listeCmd2=jdc.get_liste_cmd()
+ if len(listeCmd) != len(listeCmd2):
+ listeCmd = listeCmd2
+ for aCmd in listeCmd:
+ self.LBNouvCommande.addItem( aCmd )
#QObject.connect( self.LBNouvCommande, SIGNAL("itemClicked(QListWidgetItem*)"),self.DefCmd )
QObject.connect( self.LBNouvCommande, SIGNAL("itemDoubleClicked(QListWidgetItem*)"),self.DefCmd )
+ def BuildLBNouvCommandChanged(self) :
+ if self.RBalpha.isChecked():
+ self.editor.mode_nouv_commande="alpha"
+ else :
+ self.editor.mode_nouv_commande="groupe"
+ self.BuildLBNouvCommande()
+
def DefCmd(self):
if self.LBNouvCommande.currentItem()== 0 : return
if self.LBNouvCommande.currentItem()== None : return
self.top = self #(pour CONFIGURATION)
self.QWParent=None #(Pour lancement sans IHM)
- #PN pour Salome ( on passe d un code a l autre)
+ import prefs
if salome :
- import imp
- pathEficas=os.path.dirname(os.path.abspath(__file__))
- pathCode="../"+code[0]+code[1:].lower()
- prefFile=pathCode+"/prefs.py"
- confFile=pathCode+"/configuration.py"
- prefs=imp.load_source("prefs",os.path.join(pathEficas,prefFile))
- configuration=imp.load_source("configuration",os.path.join(pathEficas,confFile))
- print "_____________________________________"
- print prefs
- print configuration
- else :
- import prefs
- import configuration
-
- self.REPINI=prefs.REPINI
- self.RepIcon=prefs.INSTALLDIR+"/Editeur/icons"
- self.CONFIGURATION = configuration.make_config(self,prefs.REPINI)
- self.CONFIGStyle = configuration.make_config_style(self,prefs.REPINI)
- if hasattr(prefs,'encoding'):
+ import sys
+ prefs.code=code
+ name='prefs_'+prefs.code
+ prefsCode=__import__(name)
+ nameConf='configuration_'+prefs.code
+ configuration=__import__(nameConf)
+
+ self.REPINI=prefsCode.REPINI
+ self.RepIcon=prefsCode.INSTALLDIR+"/Editeur/icons"
+ self.CONFIGURATION = configuration.make_config(self,prefsCode.REPINI)
+ self.CONFIGStyle = configuration.make_config_style(self,prefsCode.REPINI)
+ if hasattr(prefsCode,'encoding'):
import sys
reload(sys)
- sys.setdefaultencoding(prefs.encoding)
+ sys.setdefaultencoding(prefsCode.encoding)
QMainWindow.__init__(self)
Ui_Eficas.__init__(self)
# Modules Eficas
sys.path.append(INSTALLDIR+"/Aster")
- from Aster import prefs
- if hasattr(prefs,'encoding'):
+ from Aster import prefsCode
+ if hasattr(prefsCode,'encoding'):
# Hack pour changer le codage par defaut des strings
import sys
reload(sys)
- sys.setdefaultencoding(prefs.encoding)
+ sys.setdefaultencoding(prefsCode.encoding)
del sys.setdefaultencoding
# Fin hack
from Editeur.utils import init_rep_cata_dev
import analyse_catalogue
+import analyse_catalogue_initial
import autre_analyse_cata
import uiinfo
from monChoixCata import MonChoixCata
self.appliEficas=self.QWParent.appliEficas
self.code=self.QWParent.code
self.appliEficas.format_fichier='python'
+ if hasattr(self.appliEficas,'mode_nouv_commande'):
+ self.mode_nouv_commande=self.appliEficas.mode_nouv_commande
+ else :
+ self.mode_nouv_commande='alpha'
self.version_code=self.QWParent.version_code
self.version_cata=None
self.fic_cata=None
# remplacé par Retrouve_Ordre_Cata_Standard_autre qui utilise une numerotation
# des mots clés a la création
self.Retrouve_Ordre_Cata_Standard_autre()
+ if self.mode_nouv_commande== "initial" :
+ self.Retrouve_Ordre_Cata_Standard()
+ else:
+ self.Commandes_Ordre_Catalogue=[]
#
# analyse des données liées a l'IHM : UIinfo
def Retrouve_Ordre_Cata_Standard(self):
"""
Retrouve l'ordre des mots-clés dans le catalogue, cad :
- - si ce dernier a été modifié, relance l'analyse du catalogue pour déterminer
- l'ordre des mots-clés dans le catalogue
- - s'il n'a pas été modifié, relie le fichier pickle
+ Attention s appuie sur les commentaires
"""
- time1 = os.path.getmtime(self.fic_cata)
- try :
- time2 = os.path.getmtime(self.fic_cata_p)
- except:
- time2 = 0
- if time2 > time1 :
- # l'objet catalogue n'a pas été modifié depuis le dernier "pickle"
- self.Get_Ordre_Cata()
- else :
- # le catalogue a été modifié depuis le dernier "pickle" :
- # il faut retrouver l'ordre du catalogue et refaire pickle
- self.Get_Ordre_Cata(mode='cata')
- self.appliEficas.affiche_infos("Catalogue standard chargé")
-
-
- def Get_Ordre_Cata(self,mode='pickle'):
- """
- Retrouve l'ordre du catalogue :
- - mode='pickle ': tente de relire le fichier pickle et sinon lance l'analyse du catalogue
- - mode='cata' : force l'analyse du catalogue directement sans relire le pickle
- """
- if mode == 'pickle' :
- try:
- f = open(self.fic_cata_p)
- u = cPickle.Unpickler(f)
- self.cata_ordonne_dico = u.load()
- f.close()
- except :
- # on peut ne pas arriver a relire le fichier pickle s'il a été altéré
- # ou (le plus probable) s'il a été créé sous un autre OS
- self.Get_Ordre_Cata(mode='cata')
- elif mode == 'cata':
- cata_ordonne = analyse_catalogue.analyse_catalogue(self,self.fic_cata)
- self.cata_ordonne_cr = cata_ordonne.cr
- self.cata_ordonne_dico = cata_ordonne.entites
- f = open(self.fic_cata_p,'w+')
- p = cPickle.Pickler(f)
- p.dump(self.cata_ordonne_dico)
- f.close()
- else :
- raise Exception("Appel a un mode inconnu de Get_Ordre_Cata : %s" % mode)
- return
+ nom_cata = os.path.splitext(os.path.basename(self.fic_cata))[0]
+ rep_cata = os.path.dirname(self.fic_cata)
+ self.Commandes_Ordre_Catalogue = analyse_catalogue_initial.analyse_catalogue(self.fic_cata)
def ask_choix_catalogue(self):
"""
sys.exit(0)
- def compile_cata(self,cata,catac):
- """
- Teste si le catalogue a bien besoin d'etre recompilé et si oui, le compile et
- affiche un message dans le splash . Retourne 1 si la compilation s'est bien déroulée,
- 0 sinon.
- """
- time1 = os.path.getmtime(cata)
- try:
- time2 = os.path.getmtime(catac)
- except:
- time2 = 0
- if time1 > time2:
- try:
- # le catalogue doit etre recompilé avant d'etre importé
- if self.QWParent.test == 0 :
- splash._splash.configure(text="Compilation du catalogue\nCela peut prendre plusieurs secondes ...")
- py_compile.compile(cata)
- except:
- return 0
- return 1
-
-
-
- def visuCRCATA(self):
- """
- Méthode permettant l'affichage du rapport de validation
- """
- cr = CR( debut = "Début rapport de validation du catalogue",
- fin = "Fin rapport de validation du catalogue")
- titre="rapport de validation du catalogue"
- if hasattr(self,'cata_ordonne_cr') :
- cr.add(self.cata_ordonne_cr)
- if hasattr(self,'cata_dev_ordonne_cr') :
- cr.add(self.cata_dev_ordonne_cr)
- for cata in self.cata:
- if hasattr(cata,'JdC'):
- cr.add(cata.JdC.report())
- texte_cr = str(cr)
- self.visu_texte_cr = Fenetre(self.appliEficas,titre=titre,texte=texte_cr)
-
def traite_clefs_documentaires(self):
try:
# debut entete
# --------------------------------------------------
+# Les commentaires du style # Ordre Catalogue MOTCLEF sont utilises pour
+# retrouver l ordre du catalogue
+
+
#from Accas import ASSD, JDC_CATA, AU_MOINS_UN, PROC, SIMP, FACT, OPER, MACRO, BLOC, A_VALIDATOR
from Accas import *
#CONTEXT.debug = 1
JdC = JDC_CATA ( code = 'OPENTURNS_STUDY',
execmodul = None,
- regles = ( AU_MOINS_UN ( 'CRITERIA' ), AU_MOINS_UN ( 'MODEL' ), ),
+ regles = ( AU_MOINS_UN ( 'CRITERIA' ), AU_MOINS_UN ( 'MODEL' ),
+ A_CLASSER(('LOG','DETERMINISTICVARIABLE'),'VARIABLE'),)
) # Fin JDC_CATA
# --------------------------------------------------
),
) # Fin PROC LOG
+# Ordre Catalogue LOG
),
) # Fin OPER DETERMINISTICVARIABLE
+# Ordre Catalogue DETERMINISTICVARIABLE
-
-import ops
+import opsOT
MODEL = MACRO ( nom = "MODEL",
op = None,
UIinfo = { "groupes" : ( "Gestion du travail", ) },
fr = "Chargement du wrapper du modele physique",
ang = "Physical model wrapper load",
- sd_prod = ops.INCLUDE,
- op_init = ops.INCLUDE_context,
+ sd_prod = opsOT.INCLUDE,
+ op_init = opsOT.INCLUDE_context,
fichier_ini = 1,
FileName = SIMP ( statut = "o",
),
) # Fin PROC MODEL
+# Ordre Catalogue MODEL
),
) # Fin PROC VARIABLE
+# Ordre Catalogue VARIABLE
), # Fin BLOC WEIBULL
) # Fin OPER DISTRIBUTION
+# Ordre Catalogue DISTRIBUTION
) # Fin PROC CRITERIA
+# Ordre Catalogue CRITERIA
# (code,version,catalogue,formatIn,formatOut)
#('OPENTURNS_WRAPPER','V1',os.path.join(rep_cata,'OpenTURNS_Cata_Wrapper_V1.py'),'openturns_wrapper','wrapper'),
('OPENTURNS_STUDY','V4',os.path.join(rep_cata,'OpenTURNS_Cata_Study_V4.py'),'openturns_study','wrapper'),
+ #('OPENTURNS_STUDY','V4',os.path.join(rep_cata,'OpenTURNS_Cata_Study_VPN.py'),'openturns_study','wrapper'),
#('OPENTURNS','Wrapper',os.path.join(rep_cata,'OpenTURNS_Cata_Wrapper_V1.py'),'openturns'),
)
-# -*- 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.
-#
-#
-# ======================================================================
-
-import os, sys
-# Les variables pouvant positionnees sont :
-# "CODE_PATH_SURCHARGE","DTDDirectory","rep_user","INSTALLDIR","path_doc","exec_acrobat","rep_cata"
-print "import des prefs de OPENTURNS_STUDY"
-
-code = "OPENTURNS_STUDY"
-
-# REPINI sert à localiser le fichier
-# initialdir sert comme directory initial des QFileDialog
-# positionnee a repin au debut mise a jour dans configuration
-REPINI=os.path.dirname(os.path.abspath(__file__))
-initialdir=REPINI
-
-# INSTALLDIR sert à localiser l'installation d'Eficas
-INSTALLDIR=os.path.join(REPINI,'..')
-
-
-# Codage des strings qui accepte les accents (en remplacement de 'ascii')
-# lang indique la langue utilisée pour les chaines d'aide : fr ou ang
-lang='fr'
-encoding='iso-8859-1'
-
-# Acces a la documentation
-rep_cata = INSTALLDIR
-path_doc = os.path.join(rep_cata,'Doc')
-exec_acrobat = "/usr/bin/xpdf"
-
-
-# OpenTURNS Python module
-OpenTURNS_path="/opt/OpenTURNS/install/lib/python2.4/site-packages"
-# Choix des catalogues
-sys.path[:0]=[INSTALLDIR]
-sys.path.append( OpenTURNS_path )
-
+code='OPENTURNS_STUDY'
# Modules Eficas
import prefs
-prefs.code="OPENTURNS_STUDY"
-from InterfaceQT4 import eficas_go
+name='prefs_'+prefs.code
+__import__(name)
+import sys
+from InterfaceQT4 import eficas_go
eficas_go.lance_eficas(code=prefs.code)
JdC = JDC_CATA ( code = 'SEP',
execmodul = None,
# regles = ( AU_MOINS_UN ( 'M_TUBE','MAILLAGE_COUDE','CHARGE_LIMITE ), ),
- regles = ( AU_MOINS_UN ( 'M_TUBE',), ),
+ regles = ( AU_MOINS_UN ( 'M_TUBE','M_JJJJJ'),EXCLUS('M_TUBE','M_JJJJJ') ),
) # Fin JDC_CATA
#
unite=SIMP(statut='o', typ='TXM', defaut='mm',into=('mm',),),
ep_nominale=SIMP(statut='o', typ='R', defaut=22.000),
),
+ )
+M_JJJJJ= MACRO (nom = 'M_JJJJJ',
+ op = None,
+ sd_prod = None,
+ reentrant = 'n',
+ UIinfo = {"groupes":("Outils métier",)},
+ fr = "Parametres pour Le tube ",
+ dir_name = SIMP(statut='o', typ='TXM',),
+ methode = SIMP(statut='o', typ='TXM',into=('generatrices','tortue',),),
)
-
copyfiles('../convert',os.path.join(path_distrib,'convert'),['*.py'])
os.system("rm -rf .././convert/Parserv5 ")
+ os.system("rm -rf .././convert/convert_asterv5.py ")
copyfiles('../generator',os.path.join(path_distrib,'generator'),['*.py'])
copyfiles('../Editeur/icons',os.path.join(path_distrib,'Editeur','icons'),['*.gif'])
copyfiles('../Editeur/icons',os.path.join(path_distrib,'Editeur','icons'),['*.png'])
# Form implementation generated from reading ui file 'desChoixCata.ui'
#
-# Created: Tue Jan 27 12:25:36 2009
+# Created: Tue Jun 9 14:49:19 2009
# by: PyQt4 UI code generator 4.4.3
#
# WARNING! All changes made in this file will be lost!
class Ui_DChoixCata(object):
def setupUi(self, DChoixCata):
DChoixCata.setObjectName("DChoixCata")
- DChoixCata.resize(547, 192)
+ DChoixCata.resize(547, 215)
DChoixCata.setSizeGripEnabled(True)
self.gridLayout = QtGui.QGridLayout(DChoixCata)
self.gridLayout.setObjectName("gridLayout")
self.frame3.setFrameShape(QtGui.QFrame.StyledPanel)
self.frame3.setFrameShadow(QtGui.QFrame.Raised)
self.frame3.setObjectName("frame3")
- self.horizontalLayout = QtGui.QHBoxLayout(self.frame3)
- self.horizontalLayout.setObjectName("horizontalLayout")
self.buttonOk = QtGui.QPushButton(self.frame3)
+ self.buttonOk.setGeometry(QtCore.QRect(11, 13, 91, 41))
self.buttonOk.setAutoDefault(True)
self.buttonOk.setDefault(True)
self.buttonOk.setObjectName("buttonOk")
- self.horizontalLayout.addWidget(self.buttonOk)
- spacerItem = QtGui.QSpacerItem(334, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
- self.horizontalLayout.addItem(spacerItem)
self.buttonCancel = QtGui.QPushButton(self.frame3)
+ self.buttonCancel.setGeometry(QtCore.QRect(437, 13, 81, 41))
+ self.buttonCancel.setMinimumSize(QtCore.QSize(81, 41))
self.buttonCancel.setAutoDefault(True)
self.buttonCancel.setObjectName("buttonCancel")
- self.horizontalLayout.addWidget(self.buttonCancel)
self.gridLayout.addWidget(self.frame3, 2, 0, 1, 2)
self.retranslateUi(DChoixCata)
def retranslateUi(self, DChoixCata):
DChoixCata.setWindowTitle(QtGui.QApplication.translate("DChoixCata", "Choix d\'une version du code Aster", None, QtGui.QApplication.UnicodeUTF8))
- self.TLNb.setText(QtGui.QApplication.translate("DChoixCata", "2 versions sont disponibles", None, QtGui.QApplication.UnicodeUTF8))
+ self.TLNb.setText(QtGui.QApplication.translate("DChoixCata", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
+"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
+"p, li { white-space: pre-wrap; }\n"
+"</style></head><body style=\" font-family:\'Sans Serif\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
+"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:11pt;\">2 versions sont disponibles</span></p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
self.textLabel1_2.setText(QtGui.QApplication.translate("DChoixCata", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
<x>0</x>
<y>0</y>
<width>547</width>
- <height>192</height>
+ <height>215</height>
</rect>
</property>
<property name="windowTitle" >
</size>
</property>
<property name="text" >
- <string>2 versions sont disponibles</string>
+ <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+<html><head><meta name="qrichtext" content="1" /><style type="text/css">
+p, li { white-space: pre-wrap; }
+</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;">
+<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:11pt;">2 versions sont disponibles</span></p></body></html></string>
</property>
<property name="wordWrap" >
<bool>false</bool>
<property name="frameShadow" >
<enum>QFrame::Raised</enum>
</property>
- <layout class="QHBoxLayout" name="horizontalLayout" >
- <item>
- <widget class="QPushButton" name="buttonOk" >
- <property name="text" >
- <string>&OK</string>
- </property>
- <property name="shortcut" >
- <string/>
- </property>
- <property name="autoDefault" >
- <bool>true</bool>
- </property>
- <property name="default" >
- <bool>true</bool>
- </property>
- </widget>
- </item>
- <item>
- <spacer name="horizontalSpacer" >
- <property name="orientation" >
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="sizeHint" stdset="0" >
- <size>
- <width>334</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </item>
- <item>
- <widget class="QPushButton" name="buttonCancel" >
- <property name="text" >
- <string>&Cancel</string>
- </property>
- <property name="shortcut" >
- <string/>
- </property>
- <property name="autoDefault" >
- <bool>true</bool>
- </property>
- </widget>
- </item>
- </layout>
+ <widget class="QPushButton" name="buttonOk" >
+ <property name="geometry" >
+ <rect>
+ <x>11</x>
+ <y>13</y>
+ <width>91</width>
+ <height>41</height>
+ </rect>
+ </property>
+ <property name="text" >
+ <string>&OK</string>
+ </property>
+ <property name="shortcut" >
+ <string/>
+ </property>
+ <property name="autoDefault" >
+ <bool>true</bool>
+ </property>
+ <property name="default" >
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget class="QPushButton" name="buttonCancel" >
+ <property name="geometry" >
+ <rect>
+ <x>437</x>
+ <y>13</y>
+ <width>81</width>
+ <height>41</height>
+ </rect>
+ </property>
+ <property name="minimumSize" >
+ <size>
+ <width>81</width>
+ <height>41</height>
+ </size>
+ </property>
+ <property name="text" >
+ <string>&Cancel</string>
+ </property>
+ <property name="shortcut" >
+ <string/>
+ </property>
+ <property name="autoDefault" >
+ <bool>true</bool>
+ </property>
+ </widget>
</widget>
</item>
</layout>
- <zorder>frame3</zorder>
<zorder>TLNb</zorder>
<zorder>textLabel1_2</zorder>
<zorder>CBChoixCata</zorder>
+ <zorder>frame3</zorder>
</widget>
<layoutdefault spacing="6" margin="11" />
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>