]> SALOME platform Git repositories - modules/smesh.git/blobdiff - src/SMESHGUI/SMESHGUI_PreviewDlg.cxx
Salome HOME
rnc: Added a missing translation
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_PreviewDlg.cxx
index 5dc2818e1b511a884eae30c7c83597a0286049bb..472e21188ef80e2a19ccef8233c62a6d12abe26c 100644 (file)
@@ -46,7 +46,9 @@
 //=================================================================================
 SMESHGUI_PreviewDlg::SMESHGUI_PreviewDlg(SMESHGUI* theModule) :
   mySMESHGUI(theModule),
-  QDialog(SMESH::GetDesktop( theModule )) {
+  QDialog(SMESH::GetDesktop( theModule )),
+  myIsApplyAndClose( false )
+{
   mySimulation = new SMESHGUI_MeshEditPreview(SMESH::GetViewWindow( mySMESHGUI ));
 }
 
@@ -101,3 +103,23 @@ void SMESHGUI_PreviewDlg::toDisplaySimulation() {
 void SMESHGUI_PreviewDlg::onDisplaySimulation(bool toDisplayPreview) {
   //Empty implementation here
 }
+
+//================================================================
+// Function : setIsApplyAndClose
+// Purpose  : Set value of the flag indicating that the dialog is
+//            accepted by Apply & Close button
+//================================================================
+void SMESHGUI_PreviewDlg::setIsApplyAndClose( const bool theFlag )
+{
+  myIsApplyAndClose = theFlag;
+}
+
+//================================================================
+// Function : isApplyAndClose
+// Purpose  : Get value of the flag indicating that the dialog is
+//            accepted by Apply & Close button
+//================================================================
+bool SMESHGUI_PreviewDlg::isApplyAndClose() const
+{
+  return myIsApplyAndClose;
+}