X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_AddVolumeDlg.cxx;h=8953903d55e1ea7b2edad1a3dea7f632315f7fef;hp=d8a101c293114604d5c84637d7b1e461c2fbb9a6;hb=0de991099a7f8bea2687d44c20021be3066f3615;hpb=b2720b0386046d2aca5dcffdd746fe5232e12e80 diff --git a/src/SMESHGUI/SMESHGUI_AddVolumeDlg.cxx b/src/SMESHGUI/SMESHGUI_AddVolumeDlg.cxx index d8a101c29..8953903d5 100644 --- a/src/SMESHGUI/SMESHGUI_AddVolumeDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_AddVolumeDlg.cxx @@ -1,14 +1,32 @@ -using namespace std; -// File : SMESHGUI_AddVolumeDlg.cxx -// Created : Wed Jun 26 21:00:14 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_AddVolumeDlg.cxx +// Author : Nicolas REJNERI +// Module : SMESH // $Header$ - +using namespace std; #include "SMESHGUI_AddVolumeDlg.h" #include "SMESHGUI.h" @@ -252,7 +270,7 @@ void SMESHGUI_AddVolumeDlg::ClickOnOk() //================================================================================= void SMESHGUI_AddVolumeDlg::ClickOnCancel() { - QAD_Application::getDesktop()->SetSelectionMode( 4 ); + QAD_Application::getDesktop()->SetSelectionMode( ActorSelection ); disconnect( mySelection, 0, this, 0 ); mySMESHGUI->ResetState() ; mySMESHGUI->EraseSimulationActors(); @@ -279,9 +297,9 @@ void SMESHGUI_AddVolumeDlg::SelectionIntoArgument() if(nbNodes < 1) 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; }