}
/*!Close document, if it's possible.*/
-void STD_Application::onCloseDoc()
+void STD_Application::onCloseDoc(bool ask)
{
- if ( !isPossibleToClose() )
- return;
+ if (ask)
+ if ( !isPossibleToClose() )
+ return;
SUIT_Study* study = activeStudy();
public slots:
virtual void onNewDoc();
- virtual void onCloseDoc();
+ virtual void onCloseDoc( bool ask = true );
virtual void onSaveDoc();
virtual bool onSaveAsDoc();
msgid "SalomeApp_Application::STUDY_LOCKED"
msgstr "LOCKED"
+msgid "SalomeApp_Application::QUE_DOC_ALREADYEXIST"
+msgstr "The document %1 already exists in study manager.\nDo you want to reload it ?"
+
//=======================================================================================
msgid "SalomeApp_ModuleDlg::CAPTION"