From 0b3ee50c8a360208aed4b547bdac7c5e677cfb50 Mon Sep 17 00:00:00 2001 From: srn Date: Thu, 9 Feb 2006 11:57:19 +0000 Subject: [PATCH] Removed method getVisualDump --- src/SalomeApp/SalomeApp_Application.cxx | 3 ++- src/SalomeApp/SalomeApp_Study.cxx | 5 ----- src/SalomeApp/SalomeApp_Study.h | 1 - 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/SalomeApp/SalomeApp_Application.cxx b/src/SalomeApp/SalomeApp_Application.cxx index 916996954..70019a6a0 100644 --- a/src/SalomeApp/SalomeApp_Application.cxx +++ b/src/SalomeApp/SalomeApp_Application.cxx @@ -51,6 +51,7 @@ #include "SALOMEDS_StudyManager.hxx" #include "SALOMEDS_SObject.hxx" +#include "SALOMEDS_IParameters.hxx" #include "SALOME_ListIteratorOfListIO.hxx" #include "SALOME_ListIO.hxx" @@ -489,7 +490,7 @@ void SalomeApp_Application::onDumpStudy( ) if(!aFileName.isEmpty()) { QFileInfo aFileInfo(aFileName); int savePoint = appStudy->storeState(); //SRN: Store a visual state of the save at the save point - QString prefix = appStudy->getVisulDump(savePoint); //SRN: Get a generate Python script for the study's visual state + QString prefix = SALOMEDS_IParameters::getStudyScript(appStudy->studyDS(), "Interface Applicative", savePoint); bool res = aStudy->DumpStudy( aFileInfo.dirPath( true ).latin1(), aFileInfo.baseName().latin1(), toPublish ,prefix.latin1()); if ( !res ) SUIT_MessageBox::warn1 ( desktop(), diff --git a/src/SalomeApp/SalomeApp_Study.cxx b/src/SalomeApp/SalomeApp_Study.cxx index fc2e7033c..3164f40c7 100644 --- a/src/SalomeApp/SalomeApp_Study.cxx +++ b/src/SalomeApp/SalomeApp_Study.cxx @@ -871,8 +871,3 @@ void SalomeApp_Study::restoreState(int savePoint) if (activeModuleName != "") ((SalomeApp_Application*)application())->activateModule(activeModuleName); } - -QString SalomeApp_Study::getVisulDump(int savePoint) -{ - return QString(SALOMEDS_IParameters::getStudyScript(studyDS(), "Interface Applicative", savePoint)); -} diff --git a/src/SalomeApp/SalomeApp_Study.h b/src/SalomeApp/SalomeApp_Study.h index cdd097bf4..36bf24688 100644 --- a/src/SalomeApp/SalomeApp_Study.h +++ b/src/SalomeApp/SalomeApp_Study.h @@ -72,7 +72,6 @@ public: void setNameOfSavePoint(int savePoint, const QString& nameOfSavePoint); virtual int storeState(); virtual void restoreState(int savePoint); - virtual QString getVisulDump(int savePoint); protected: virtual void saveModuleData ( QString theModuleName, QStringList theListOfFiles ); -- 2.39.2