]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
CreateStdHypothesisDlg dialog is modal now
authorsln <sln@opencascade.com>
Tue, 23 Aug 2005 08:39:41 +0000 (08:39 +0000)
committersln <sln@opencascade.com>
Tue, 23 Aug 2005 08:39:41 +0000 (08:39 +0000)
src/StdMeshersGUI/StdMeshersGUI.cxx
src/StdMeshersGUI/StdMeshersGUI_CreateStdHypothesisDlg.cxx

index a5acb3b0637a954d88b195cbbc65675dc987dc94..fa48527deebd38095f1681559cb3dfb86c824536 100644 (file)
@@ -99,9 +99,16 @@ void StdMeshersGUI_HypothesisCreator::CreateHypothesis
   else
   {
     if ( StdMeshersGUI_Parameters::HasParameters( myHypType ))
-    // Show Dialog for hypothesis creation
-      //StdMeshersGUI_CreateStdHypothesisDlg *aDlg =
-        new StdMeshersGUI_CreateStdHypothesisDlg(myHypType, parent, "");
+    {
+      // Show Dialog for hypothesis creation
+      StdMeshersGUI_CreateStdHypothesisDlg *aDlg =
+          new StdMeshersGUI_CreateStdHypothesisDlg(myHypType, parent, "");
+      /* Move widget on the botton right corner of main widget */
+//       int x, y ;
+//       mySMESHGUI->DefineDlgPosition( aDlg, x, y ) ;
+//       aDlg->move( x, y ) ;
+      aDlg->exec() ; /* displays Dialog */
+    }
     else
       SMESH::CreateHypothesis(myHypType, aHypName, isAlgo); // without GUI
   }
index 5cc014eeab22c24b87729ea7f8b59a722213240a..542600141fe590793ea88ace9c36344c07dfb6a7 100644 (file)
@@ -47,9 +47,9 @@ using namespace std;
 StdMeshersGUI_CreateStdHypothesisDlg::StdMeshersGUI_CreateStdHypothesisDlg (const QString& hypType,
                                                                             QWidget* parent,
                                                                             const char* name,
-                                                                            bool modal,
+                                                                            bool /*modal*/,
                                                                             WFlags fl)
-     : StdMeshersGUI_CreateHypothesisDlg (hypType, parent, name, modal, fl)
+     : StdMeshersGUI_CreateHypothesisDlg (hypType, parent, name, true, fl)
 {
   QString hypTypeStr;
   if (hypType.compare("LocalLength") == 0)