#include "SUIT_Desktop.h"
#include "SUIT_ResourceMgr.h"
+#include <SalomeApp_Tools.h>
+
#include <qobject.h>
#include "utilities.h"
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
}
bool modified = false;
if ( SMESHGUI_aParameterDlg::Parameters( SMESHGUI::GetSMESHGUI(), paramList, QObject::tr("SMESH_VALUE")) )
- modified = StdMeshersGUI_Parameters::SetParameters( theHyp, paramList );
+ {
+ try
+ {
+ modified = StdMeshersGUI_Parameters::SetParameters( theHyp, paramList );
+ }
+ catch (const SALOME::SALOME_Exception& S_ex)
+ {
+ SalomeApp_Tools::QtCatchCorbaException(S_ex);
+ return;
+ }
+ }
if ( modified ) {
//set new Attribute Comment for hypothesis which parameters were modified