Salome HOME
DCQ:prepare 2.0.0
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_DiagonalInversionDlg.cxx
index 77ffee0710db10d77545b92cabe0e81d7f9f3d74..bc76e32fb5f897fc253c0a6a0f01116f09c34761 100644 (file)
@@ -1,14 +1,32 @@
-using namespace std;
-//  File      : SMESHGUI_DiagonalInversionDlg.cxx
-//  Created   : 
-//  Author    : Damien COQUERET
-
-//  Project   : SALOME
-//  Module    : SMESH
-//  Copyright : Open CASCADE 2002
+//  SMESH SMESHGUI : GUI for SMESH component
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SMESHGUI_DiagonalInversionDlg.cxx
+//  Author : Damien COQUERET
+//  Module : SMESH
 //  $Header$
 
-
+using namespace std;
 #include "SMESHGUI_DiagonalInversionDlg.h"
 
 #include "SMESHGUI.h"
@@ -229,7 +247,7 @@ void SMESHGUI_DiagonalInversionDlg::ClickOnOk()
 //=================================================================================
 void SMESHGUI_DiagonalInversionDlg::ClickOnCancel()
 {
-  QAD_Application::getDesktop()->SetSelectionMode( 4 );
+  QAD_Application::getDesktop()->SetSelectionMode( ActorSelection );
   disconnect( mySelection, 0, this, 0 );
   mySMESHGUI->ResetState() ;
   reject() ;
@@ -247,7 +265,7 @@ void SMESHGUI_DiagonalInversionDlg::SelectionIntoArgument()
   myOkElements = false;
   QString aString = "";
 
-  if ( mySelection->SelectionMode() != 2 ) {
+  if ( mySelection->SelectionMode() != EdgeSelection ) {
     return;
   }