X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_NbSegmentsDlg.cxx;h=a4d05a749df233fd2d4f98238e4ce13af851d506;hp=aa68263836480547bcc98936393c771658e76458;hb=253bd8edea0f44d01e65f1fb085d04428544bd14;hpb=bef9beee88cac57394b8dc3bc914381c1a2fff83 diff --git a/src/SMESHGUI/SMESHGUI_NbSegmentsDlg.cxx b/src/SMESHGUI/SMESHGUI_NbSegmentsDlg.cxx index aa6826383..a4d05a749 100644 --- a/src/SMESHGUI/SMESHGUI_NbSegmentsDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_NbSegmentsDlg.cxx @@ -1,13 +1,32 @@ -using namespace std; -// File : SMESHGUI_NbSegmentsDlg.cxx -// Created : Mon May 27 11:38:27 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_NbSegmentsDlg.cxx +// Author : Nicolas REJNERI +// Module : SMESH // $Header$ +using namespace std; #include "SMESHGUI_NbSegmentsDlg.h" #include "SMESHGUI.h" @@ -40,7 +59,7 @@ using namespace std; SMESHGUI_NbSegmentsDlg::SMESHGUI_NbSegmentsDlg( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu ) { - QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap( "SMESHGUI",tr("ICON_DLG_NB_SEGMENTS"))); + QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap( "SMESH",tr("ICON_DLG_NB_SEGMENTS"))); if ( !name ) setName( "SMESHGUI_NbSegmentsDlg" ); @@ -223,7 +242,8 @@ void SMESHGUI_NbSegmentsDlg::ClickOnApply() case 0 : { myNbSeg = SpinBox_NbSeg->value() ; - mySMESHGUI->CreateNbSegments( "NumberOfSegments", myNameHypothesis, myNbSeg ); + int nbSegInt = int(myNbSeg); + mySMESHGUI->CreateNbSegments( "NumberOfSegments", myNameHypothesis, nbSegInt ); break ; } }