From: pascale.noyret Date: Thu, 1 Sep 2016 13:18:07 +0000 (+0200) Subject: CloseEntete X-Git-Tag: V8_1_0~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b380d4fbcd34212327ae754b21acae46a9937d45;p=tools%2Feficas.git CloseEntete --- diff --git a/InterfaceQT4/editor.py b/InterfaceQT4/editor.py index 58c1b577..95c543a7 100755 --- a/InterfaceQT4/editor.py +++ b/InterfaceQT4/editor.py @@ -1289,6 +1289,7 @@ class JDCEditor(Ui_baseWidget,QWidget): #-------------------------------------# def deleteMC(self,etape,MCFils): #-------------------------------------# + print "je passe dans deleteMC" monMC=etape.get_child(MCFils,restreint="oui") if monMC != None : print etape.suppentite(monMC) @@ -1301,6 +1302,8 @@ class JDCEditor(Ui_baseWidget,QWidget): if monMC== None : monMC= etape.addentite(MCFils) monMC.valeur=valeurs monMC.val=valeurs + monMC.state='changed' + #print monMC.isvalid() #-------------------------------------# def changeIntoMC(self,etape,MCFils,valeurs): @@ -1311,8 +1314,33 @@ class JDCEditor(Ui_baseWidget,QWidget): monMC.definition.into=valeurs #-------------------------------------# - def changeIntoMCandSet(self,etape,MCFils,into,valeurs): + def changeIntoDefMC(self,etape,listeMC,valeurs): #-------------------------------------# + definitionEtape=getattr(self.jdc.cata[0],etape) + ouChercher=definitionEtape + if len(listeMC) > 1 : + for mc in listeMC[0:-1]: + mcfact=ouChercher.entites[mc] + ouChercher=mcfact + + mcAccas=ouChercher.entites[listeMC[-1]] + mcAccas.into=valeurs + + #-----------------------------------------# + def ajoutDefinitionMC(self,etape,nomDuMC,typ,**args): + #-----------------------------------------# + definitionEtape=getattr(self.jdc.cata[0],etape) + from Accas import A_SIMP + Nouveau=A_SIMP.SIMP(typ,**args) + Nouveau.pere=definitionEtape + Nouveau.nom=nomDuMC + Nouveau.ordre_mc=[] + definitionEtape.entites[nomDuMC]=Nouveau + definitionEtape.ordre_mc.append(nomDuMC) + + #----------------------------------------------------# + def changeIntoMCandSet(self,etape,MCFils,into,valeurs): + #----------------------------------------------------# monMC=etape.get_child(MCFils,restreint="oui") if monMC== None : monMC= etape.addentite(MCFils) monMC.definition.into=into @@ -1390,8 +1418,8 @@ class JDCEditor(Ui_baseWidget,QWidget): #---------------------------# def _newTELEMAC(self): #---------------------------# - texte="INITIALIZATION();BOUNDARY_CONDITIONS();GENERAL_PARAMETERS();PHYSICAL_PARAMETERS();NUMERICAL_PARAMETERS();" - #texte="" + #texte="INITIALIZATION();BOUNDARY_CONDITIONS();GENERAL_PARAMETERS();PHYSICAL_PARAMETERS();NUMERICAL_PARAMETERS();" + texte="" return texte #---------------------------# @@ -1404,8 +1432,8 @@ class JDCEditor(Ui_baseWidget,QWidget): #---------------------------# def _newPSEN_N1(self): #---------------------------# - texte="CASE_SELECTION() ; CONTINGENCY_OPTIONS() ; OUTPUT_OPTIONS() ; " - #texte="" + #texte="CASE_SELECTION() ; CONTINGENCY_OPTIONS() ; OUTPUT_OPTIONS() ; " + texte="" return texte #---------------------------# diff --git a/InterfaceQT4/qtEficas.py b/InterfaceQT4/qtEficas.py index 94f3e08f..e3cf63b5 100755 --- a/InterfaceQT4/qtEficas.py +++ b/InterfaceQT4/qtEficas.py @@ -122,6 +122,11 @@ class Appli(Ui_Eficas,QMainWindow): exit() + def closeEntete(self): + self.menuBar().close() + self.toolBar.close() + self.frameEntete.close() + def definitCode(self,code,ssCode) : self.code=code self.ssCode=ssCode