Clarification

This commit is contained in:
Gérald NICOLAS 2020-06-09 11:25:48 +02:00
parent f52342ec68
commit 913c682099
3 changed files with 7 additions and 9 deletions

View File

@ -3046,7 +3046,7 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
case SMESHOp::OpMGAdapt: case SMESHOp::OpMGAdapt:
{ {
SMESH::SMESH_Mesh_var aMesh = SMESH::SMESH_Mesh::_nil(); 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 // Adaptation - end
case SMESHOp::OpSplitBiQuadratic: case SMESHOp::OpSplitBiQuadratic:

View File

@ -48,7 +48,7 @@ SMESHGUI_AdaptDlg::SMESHGUI_AdaptDlg( SMESHGUI* theModule,
SMESH::SMESH_Mesh_ptr theMesh ) SMESH::SMESH_Mesh_ptr theMesh )
: mySMESHGUI( theModule ) : mySMESHGUI( theModule )
{ {
bool ok = action( theCommandID ) ; action( theCommandID ) ;
} }
//================================================================================= //=================================================================================
@ -64,19 +64,19 @@ SMESHGUI_AdaptDlg::~SMESHGUI_AdaptDlg()
* \param * \param
* \return bool OK/notOK * \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; std::cout << "SMESHGUI_AdaptDlg::action avec theCommandID : " << theCommandID << std::endl;
// Preferences // Preferences
recupPreferences(); // recupPreferences();
// Menus and actions // Menus and actions
bool ok = OnGUIEvent (theCommandID) ; bool ok = OnGUIEvent (theCommandID) ;
if ( ! ok ) INFOS("Erreur"); if ( ! ok ) INFOS("Erreur");
return ok ; return ;
} }
/*! /*!

View File

@ -40,17 +40,15 @@ class SMESHGUI;
// class : SMESHGUI_AdaptDlg // class : SMESHGUI_AdaptDlg
// purpose : // purpose :
//================================================================================= //=================================================================================
class SMESHGUI_EXPORT SMESHGUI_AdaptDlg : public QDialog class SMESHGUI_EXPORT SMESHGUI_AdaptDlg : public QWidget
{ {
Q_OBJECT
public: public:
SMESHGUI_AdaptDlg( SMESHGUI*, SMESHGUI_AdaptDlg( SMESHGUI*,
int theCommandID, int theCommandID,
SMESH::SMESH_Mesh_ptr = SMESH::SMESH_Mesh::_nil() ); SMESH::SMESH_Mesh_ptr = SMESH::SMESH_Mesh::_nil() );
~SMESHGUI_AdaptDlg(); ~SMESHGUI_AdaptDlg();
virtual bool action (int theCommandID); void action (int theCommandID);
virtual bool OnGUIEvent (int theCommandID); virtual bool OnGUIEvent (int theCommandID);
// static ADAPT::ADAPT_Gen_var InitAdaptGen(SalomeApp_Application*); // static ADAPT::ADAPT_Gen_var InitAdaptGen(SalomeApp_Application*);