Salome HOME
Merge branch 'gni/adaptation' of https://codev-tuleap.cea.fr/plugins/git/salome/smesh...
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_AdaptDlg.cxx
index e48ed4d852a65c9e3908740b175a176cd6714e9f..afd74b0ddefafcb3e544595bb28c1d86fb0e48df 100644 (file)
@@ -24,6 +24,9 @@
 //  SMESH includes
 #include "SMESHGUI.h"
 #include "SMESHGUI_AdaptDlg.h"
+#include "SMESHGUI_MG_ADAPTDRIVER.h"
+//~#include "MG_ADAPT_i.hxx"
+//~#include "MG_ADAPT.hxx"
 
 // SALOME GUI includes
 #include <SUIT_Desktop.h>
@@ -222,6 +225,15 @@ bool SMESHGUI_AdaptDlg::OnGUIEvent (int theCommandID)
     {
       INFOS("Interface avec MG-Adapt" );
 //       A faire
+
+      SMESH::MG_ADAPT_ptr model = SMESHGUI::GetSMESHGen()->CreateMG_ADAPT();// = new SMESH::MG_ADAPT_var();
+      //~SMESH::MG_ADAPT_ptr model = SMESH::MG_ADAPT_i::CreateMG_ADAPT();
+      bool isCreation = false;
+         if (mySMESHGUI->isStudyLocked()) break;
+      mySMESHGUI->EmitSignalDeactivateDialog();
+      SMESHGUI_MG_ADAPTDRIVER *mgAdapt = new SMESHGUI_MG_ADAPTDRIVER(mySMESHGUI, model, isCreation);
+      mgAdapt->show();
+      //~delete model;
       break;
     }