From: sln Date: Tue, 23 Aug 2005 08:39:41 +0000 (+0000) Subject: CreateStdHypothesisDlg dialog is modal now X-Git-Tag: T_3_0_2a1~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=20e4b250ef967058aa5c8db6c6ebd30630bc8921;p=modules%2Fsmesh.git CreateStdHypothesisDlg dialog is modal now --- diff --git a/src/StdMeshersGUI/StdMeshersGUI.cxx b/src/StdMeshersGUI/StdMeshersGUI.cxx index a5acb3b06..fa48527de 100644 --- a/src/StdMeshersGUI/StdMeshersGUI.cxx +++ b/src/StdMeshersGUI/StdMeshersGUI.cxx @@ -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 } diff --git a/src/StdMeshersGUI/StdMeshersGUI_CreateStdHypothesisDlg.cxx b/src/StdMeshersGUI/StdMeshersGUI_CreateStdHypothesisDlg.cxx index 5cc014eea..542600141 100644 --- a/src/StdMeshersGUI/StdMeshersGUI_CreateStdHypothesisDlg.cxx +++ b/src/StdMeshersGUI/StdMeshersGUI_CreateStdHypothesisDlg.cxx @@ -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)