]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Changed method DumpStudy
authorsrn <srn@opencascade.com>
Tue, 14 Feb 2006 13:10:18 +0000 (13:10 +0000)
committersrn <srn@opencascade.com>
Tue, 14 Feb 2006 13:10:18 +0000 (13:10 +0000)
src/SalomeApp/SalomeApp_Application.cxx
src/SalomeApp/SalomeApp_Study.cxx

index eabca62c4c6857ded12d8bee4316218a2383ba3e..c5e8064c0ed667371b07755b1cb7681f51bbb511 100644 (file)
@@ -489,15 +489,15 @@ void SalomeApp_Application::onDumpStudy( )
 
   if(!aFileName.isEmpty()) {
     QFileInfo aFileInfo(aFileName);
-    QString prefix("");
     bool isDumpVisualParameters = true;
     int savePoint;
     if(isDumpVisualParameters) { //SRN: Store a visual state of the study at the save point for DumpStudy method
+      SALOMEDS_IParameters::setDumpPython(appStudy->studyDS());
       savePoint = appStudy->storeState(); //SRN: create a temporary save point
-      prefix = SALOMEDS_IParameters::getStudyScript(appStudy->studyDS(), appStudy->getVisualComponentName(), savePoint);
+      //prefix = SALOMEDS_IParameters::getStudyScript(appStudy->studyDS(), appStudy->getVisualComponentName(), savePoint);
       
     }
-    bool res = aStudy->DumpStudy( aFileInfo.dirPath( true ).latin1(), aFileInfo.baseName().latin1(), toPublish ,prefix.latin1());
+    bool res = aStudy->DumpStudy( aFileInfo.dirPath( true ).latin1(), aFileInfo.baseName().latin1(), toPublish);
     if(isDumpVisualParameters) appStudy->removeSavePoint(savePoint); //SRN: remove the created temporary save point.
     if ( !res )
     SUIT_MessageBox::warn1 ( desktop(),
index 2755b9d562757594ba0af96ff88948082418cbfa..dc3df93ff27ae97f8b0b6babc1c4df52304b3be8 100644 (file)
@@ -735,6 +735,7 @@ int SalomeApp_Study::storeState()
 
   _PTR(AttributeParameter) ap = studyDS()->GetCommonParameters(getVisualComponentName(), savePoint);
   SALOMEDS_IParameters ip(ap);
+
   char buffer[128];
   int viewerID = 0;
   SUIT_ViewManager* vm = 0;