_PTR(Study) aStudy = appStudy->studyDS();
SalomeApp_NoteBookDlg aDlg(desktop(),aStudy);
aDlg.exec();
+ updateCommandsStatus();
+ updateDesktopTitle();
}
}
if( !study )
return false;
+ bool isStudySaved = study->isSaved();
+ QString aStudyName = study->studyName();
+
_PTR(Study) studyDS = study->studyDS();
// get unique temporary directory name
{
myStudy = newStudy->studyDS();
myTable->Init( myStudy );
+ if(isStudySaved) {
+ newStudy->markAsSavedIn(aStudyName);
+ }
}
else
ok = false;
}
}
+/*!
+ Mark the study as saved in the file
+ \param theFileName - the name of file
+*/
+void SalomeApp_Study::markAsSavedIn(QString theFileName)
+{
+ setStudyName(theFileName);
+ setIsSaved(true);
+}
+
/*!
Deletes all references to object
\param obj - object
virtual std::string getVisualComponentName();
virtual void restoreState(int savePoint);
+ void markAsSavedIn(QString theFileName);
protected:
virtual void saveModuleData ( QString theModuleName, QStringList theListOfFiles );
const std::vector<std::string> theListOfFiles);
virtual void RemoveTemporaryFiles ( const char* theModuleName, const bool isMultiFile) const;
+
+
protected:
virtual void dataModelInserted( const CAM_DataModel* );
virtual bool openDataModel( const QString&, CAM_DataModel* );