X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_OrientationElementsDlg.cxx;h=92b7101a50806da001a2e4708dc64c33b557a746;hb=0de991099a7f8bea2687d44c20021be3066f3615;hp=459fa7c21424bf1e12b9f16aa1a40fba013cc1db;hpb=8b4ba0cdff7660465a9ea7b26ef0df0757afed97;p=modules%2Fsmesh.git diff --git a/src/SMESHGUI/SMESHGUI_OrientationElementsDlg.cxx b/src/SMESHGUI/SMESHGUI_OrientationElementsDlg.cxx index 459fa7c21..92b7101a5 100644 --- a/src/SMESHGUI/SMESHGUI_OrientationElementsDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_OrientationElementsDlg.cxx @@ -1,14 +1,32 @@ -using namespace std; -// File : SMESHGUI_OrientationElementsDlg.cxx -// Created : Tue Jun 25 14:28:17 2002 -// Author : Nicolas REJNERI - -// 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_OrientationElementsDlg.cxx +// Author : Nicolas REJNERI +// Module : SMESH // $Header$ - +using namespace std; #include "SMESHGUI_OrientationElementsDlg.h" #include "SMESHGUI.h" @@ -231,7 +249,7 @@ void SMESHGUI_OrientationElementsDlg::ClickOnOk() //================================================================================= void SMESHGUI_OrientationElementsDlg::ClickOnCancel() { - QAD_Application::getDesktop()->SetSelectionMode( 4 ); + QAD_Application::getDesktop()->SetSelectionMode( ActorSelection ); disconnect( mySelection, 0, this, 0 ); mySMESHGUI->ResetState() ; reject() ; @@ -257,9 +275,9 @@ void SMESHGUI_OrientationElementsDlg::SelectionIntoArgument() if(nbElements < 1) return ; - if ( mySelection->SelectionMode() != 3 ) { + if ( mySelection->SelectionMode() != FaceSelection ) { QAD_MessageBox::warn1 ( QAD_Application::getDesktop(), tr ("SMESH_WRN_WARNING"), - tr ("SMESH_WRN_SELECTIONMODE_ELEMENTS"), tr ("SMESH_BUT_YES") ); + tr ("SMESH_WRN_SELECTIONMODE_ELEMENTS"), tr ("SMESH_BUT_OK") ); return; }