#-----------------------------------------------------------------#
if fileName != None :
self.fichier = fileName
- return self.saveFileLeger()
+ return self.saveFileLeger(fileName)
return self.saveFileLeger()
#-----------------------------------------------------------------#
- def saveFileLeger(self, fichier, formatLigne="beautifie"):
+ def saveFileComplet(self, fichier = None, formatLigne="beautifie"):
#-----------------------------------------------------------------#
fn = fichier
self.generator=generator.plugins[self.format]()
- if hasattr(self.generator, "writeLeger"):
- self.generator.writeLeger(fichier,self.jdc,config=self.appliEficas.maConfiguration,appli=self.appliEficas)
+ print (self.generator)
+ if hasattr(self.generator, "writeComplet"):
+ self.generator.writeComplet(fichier,self.jdc,config=self.appliEficas.maConfiguration,appli=self.appliEficas)
# ---------------------------------------------
if not (self.writeFile(fichier,formatLigne=formatLigne)): return (0, None)
self.fichierOut = fichier
- if self.jdc.isvalid() != 0 and hasattr(self.generator, "writeDefault"):
+ if self.jdc.isValid() != 0 and hasattr(self.generator, "writeDefault"):
self.generator.writeDefault(fichier)
elif self.code=="TELEMAC" and hasattr(self.generator, "writeDefault"):
self.generator.writeDefault(fichier)
# -------------------------
return self.viewManagerSsIhm.isJdcValid(self)
+ def fileSaveAs(self,fileName):
+# -------------------------
+ return self.viewManagerSsIhm.fileSaveAs(self,fileName)
+
+ def fileLegerSaveAs(self,fileName):
+# -----------------------------------
+ return self.viewManagerSsIhm.fileLegerSaveAs(self,fileName)
+
#--------------------------------
return self.dictEditors[handler].jdc.isValid()
+# ---------------------------------------------
+ def fileSaveAs(self,handler,fileName):
+# ---------------------------------------------
+ print (handler)
+ if not (handler in self.dictEditors) :
+ print ('editor non trouve')
+ return
+ return self.dictEditors[handler].saveFile(fileName)
+
+# ---------------------------------------------
+ def fileLegerSaveAs(self, handler,fileName):
+# ---------------------------------------------
+# print (handler)
+ if not (handler in self.dictEditors) :
+ print ('editor non trouve')
+ return
+ self.dictEditors[handler].saveFileLegerAs(fileName)
# def handleClose(self,doitSauverRecent = 1,texte=tr('&Quitter')):