case SMESHOp::OpMGAdapt:
{
SMESH::SMESH_Mesh_var aMesh = SMESH::SMESH_Mesh::_nil();
- SMESHGUI_AdaptDlg *aDlg = new SMESHGUI_AdaptDlg( this, theCommandID, aMesh);
+ SMESHGUI_AdaptDlg *objet = new SMESHGUI_AdaptDlg( this, theCommandID, aMesh);
}
// Adaptation - end
case SMESHOp::OpSplitBiQuadratic:
SMESH::SMESH_Mesh_ptr theMesh )
: mySMESHGUI( theModule )
{
- bool ok = action( theCommandID ) ;
+ action( theCommandID ) ;
}
//=================================================================================
* \param
* \return bool OK/notOK
*/
-bool SMESHGUI_AdaptDlg::action (int theCommandID)
+void SMESHGUI_AdaptDlg::action (int theCommandID)
//=======================================================================
{
std::cout << "SMESHGUI_AdaptDlg::action avec theCommandID : " << theCommandID << std::endl;
// Preferences
- recupPreferences();
+// recupPreferences();
// Menus and actions
bool ok = OnGUIEvent (theCommandID) ;
if ( ! ok ) INFOS("Erreur");
- return ok ;
+ return ;
}
/*!
// class : SMESHGUI_AdaptDlg
// purpose :
//=================================================================================
-class SMESHGUI_EXPORT SMESHGUI_AdaptDlg : public QDialog
+class SMESHGUI_EXPORT SMESHGUI_AdaptDlg : public QWidget
{
- Q_OBJECT
-
public:
SMESHGUI_AdaptDlg( SMESHGUI*,
int theCommandID,
SMESH::SMESH_Mesh_ptr = SMESH::SMESH_Mesh::_nil() );
~SMESHGUI_AdaptDlg();
- virtual bool action (int theCommandID);
+ void action (int theCommandID);
virtual bool OnGUIEvent (int theCommandID);
// static ADAPT::ADAPT_Gen_var InitAdaptGen(SalomeApp_Application*);