# -*- coding: utf-8 -*-
-# Copyright (C) 2007-2013 EDF R&D
+# Copyright (C) 2007-2015 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
from Editeur import comploader
from Editeur import Objecttreeitem
from desBaseWidget import Ui_baseWidget
-from monViewTexte import ViewText
-from monWidgetCreeParam import MonWidgetCreeParam
+from monViewTexte import ViewText
+from monWidgetCreeParam import MonWidgetCreeParam
import browser
import readercata
self.vm = vm
self.fichier = fichier
self.jdc = jdc
- self.first = True
+ self.first = True
self.QWParent = QWParent
-
+
if appli != None :
self.salome = self.appliEficas.salome
else :
self.mode_nouv_commande=self.appliEficas.CONFIGURATION.mode_nouv_commande
self.affiche=self.appliEficas.CONFIGURATION.affiche
if self.code in ['MAP','CARMELCND'] : self.afficheCommandesPliees=False
- if self.code in ['MAP',] :
+ if self.code in ['MAP',] :
self.widgetTree.close()
self.widgetTree=None
self.appliEficas.resize(1440,self.appliEficas.height())
jdc_item=Objecttreeitem.make_objecttreeitem( self, "nom", self.jdc )
if (not self.jdc.isvalid()) and (not self.nouveau) and (self.appliEficas.ssIhm == False):
self.viewJdcRapport()
-
+
# if self.code=="TELEMAC" : print "kkkkkkkk"
if self.code == "ZCRACKS" : texte=self._newZCRACKS()
if self.code == "TELEMAC" : texte=self._newTELEMAC()
# texte=self.newTexteCND
-
+
jdc=self.readercata.cata[0].JdC( procedure =texte,
appli=self,
cata=self.readercata.cata,
f.close()
self.connect(self.monExe, SIGNAL("readyReadStandardOutput()"), self.readFromStdOut )
self.connect(self.monExe, SIGNAL("readyReadStandardError()"), self.readFromStdErr )
- exe='sh /tmp/test.sh'
+ exe='sh ' + nomFichier
self.monExe.start(exe)
self.monExe.closeWriteChannel()
self.w.exec_()
def readFromStdOut(self) :
a=self.monExe.readAllStandardOutput()
self.w.view.append(QString.fromUtf8(a.data(),len(a))) ;
-
+
#-----------------------#
"""
fn = unicode(fn)
-
+
if txt == None :
txt = self.get_text_JDC(self.format,formatLigne=formatLigne)
eol = '\n'
dicoCourant=self.generator.dico
return dicoCourant
-
+
#-----------------------------------------#
def handleAjoutGroup(self,listeGroup):
def _newJDCCND(self):
#---------------------------#
extensions=tr('Fichiers Med (*.med);;''Tous les Fichiers (*)')
-
+
#if self.salome == 0 :
QMessageBox.information( self,
tr("Fichier Med"),
texteVcut=""
texteZs=""
for groupe in self.listeGroupes :
- if groupe[0:8]=='CURRENT_':
+ if groupe[0:8]=='CURRENT_':
texteSources +=groupe[8:]+"=SOURCE("
texteSources +="VecteurDirecteur=(1.0,2.0,3.0,),);\n"
if groupe[0:5]=='COND_': texteCond +=groupe[5:]+"=CONDUCTEUR();\n"