From d4b3f508bf172a4623f109c34fc7371c1fe0dcf1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=A9rald=20NICOLAS?= Date: Mon, 8 Jun 2020 14:40:22 +0200 Subject: [PATCH] Menus --- src/SMESHGUI/SMESHGUI.cxx | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/src/SMESHGUI/SMESHGUI.cxx b/src/SMESHGUI/SMESHGUI.cxx index 4b664bf68..20074a8f0 100644 --- a/src/SMESHGUI/SMESHGUI.cxx +++ b/src/SMESHGUI/SMESHGUI.cxx @@ -3034,7 +3034,7 @@ bool SMESHGUI::OnGUIEvent( int theCommandID ) } break; } - // Adaptation - end + // Adaptation - begin case SMESHOp::OpUniformRefinement: case SMESHOp::OpHONewCase: case SMESHOp::OpHOCaseFollow: @@ -4675,9 +4675,13 @@ void SMESHGUI::initialize( CAM_Application* app ) createTool( SMESHOp::OpPatternMapping, modifyTb ); // Adaptation - begin - createTool( SMESHOp::OpUniformRefinement, adaptTb ); -// createTool( SMESHOp::OpHOMARDRefinement, adaptTb ); - createTool( SMESHOp::OpMGAdapt, adaptTb ); + createTool( SMESHOp::OpUniformRefinement, adaptTb ); + createTool( SMESHOp::OpHONewCase, adaptTb ); + createTool( SMESHOp::OpHOCaseFollow, adaptTb ); + createTool( SMESHOp::OpHONewIter, adaptTb ); + createTool( SMESHOp::OpHOIterCompute, adaptTb ); + createTool( SMESHOp::OpHOIterComputePublish, adaptTb ); + createTool( SMESHOp::OpMGAdapt, adaptTb ); // Adaptation - end createTool( SMESHOp::OpMinimumDistance, measuremTb ); @@ -4762,9 +4766,15 @@ void SMESHGUI::initialize( CAM_Application* app ) //popupMgr()->insert( separator(), -1, 0 ); // Adaptation - begin -// createPopupItem( SMESHOp::OpUniformRefinement, OB, mesh ); -// createPopupItem( SMESHOp::OpHOMARDRefinement, OB, mesh ); -// createPopupItem( SMESHOp::OpMGAdapt, OB, mesh ); + createPopupItem( SMESHOp::OpUniformRefinement, OB, mesh ); + createPopupItem( SMESHOp::OpHONewCase, OB, mesh ); + createPopupItem( SMESHOp::OpHOCaseFollow, OB, mesh ); + createPopupItem( SMESHOp::OpHONewIter, OB, mesh ); + createPopupItem( SMESHOp::OpHOIterCompute, OB, mesh ); + createPopupItem( SMESHOp::OpHOIterComputePublish, OB, mesh ); + createPopupItem( SMESHOp::OpHOEdit, OB, mesh ); + createPopupItem( SMESHOp::OpHODelete, OB, mesh ); + createPopupItem( SMESHOp::OpMGAdapt, OB, mesh ); // Adaptation - end QString only_one_non_empty = QString( " && %1=1 && numberOfNodes>0" ).arg( dc ); -- 2.39.2