if(!aFileName.isEmpty()) {
QFileInfo aFileInfo(aFileName);
- bool res = aStudy->DumpStudy( aFileInfo.dirPath( true ).latin1(), aFileInfo.baseName().latin1(), toPublish );
+ 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
+ bool res = aStudy->DumpStudy( aFileInfo.dirPath( true ).latin1(), aFileInfo.baseName().latin1(), toPublish ,prefix.latin1());
if ( !res )
SUIT_MessageBox::warn1 ( desktop(),
QObject::tr("WRN_WARNING"),
continue;
}
- //Resize the views, set their captions and apply visual parameters.
+ //Resize the views, set their captions and apply visual parameters.
QPtrVector<SUIT_ViewWindow> views = vm->getViews();
for(int i = 0, j = 0; i<viewCount; i++, j+=1) {
viewWin = views[i];
if(activeModuleName != "") ((SalomeApp_Application*)application())->activateModule(activeModuleName);
}
+QString SalomeApp_Study::getVisulDump(int savePoint)
+{
+ _PTR(AttributeParameter) ap = studyDS()->GetCommonParameters("Interface Applicative", savePoint);
+ SALOMEDS_IParameters ip(ap);
+ ip.setDumpPython(true); //Enable DumpPython of visual parameters for modules.
+ return "";
+}
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 );