// Module : SMESH
// $Header$
-using namespace std;
#include "SMESHGUI_MoveNodesDlg.h"
-#include "SMESHGUI.h"
#include "SMESHGUI_SpinBox.h"
+#include "SMESH_Actor.h"
+#include "SMESHGUI.h"
#include "QAD_Application.h"
#include "QAD_Desktop.h"
// Open CASCADE Include
#include <TColStd_MapIteratorOfMapOfInteger.hxx>
-// VTK Include
-#include <vtkActor.h>
+using namespace std;
//=================================================================================
// class : SMESHGUI_MoveNodesDlg()
//=================================================================================
void SMESHGUI_MoveNodesDlg::ClickOnCancel()
{
- QAD_Application::getDesktop()->SetSelectionMode( 4 );
+ QAD_Application::getDesktop()->SetSelectionMode( ActorSelection );
disconnect( mySelection, 0, this, 0 );
mySMESHGUI->ResetState() ;
mySMESHGUI->EraseSimulationActors();
return ;
}
- if ( mySelection->SelectionMode() != 1 ){
+ if ( mySelection->SelectionMode() != NodeSelection ){
QAD_MessageBox::warn1 ( QAD_Application::getDesktop(), tr ("SMESH_WRN_WARNING"),
- tr ("SMESH_WRN_SELECTIONMODE_NODES"), tr ("SMESH_BUT_YES") );
+ tr ("SMESH_WRN_SELECTIONMODE_NODES"), tr ("SMESH_BUT_OK") );
return;
}