-using namespace std;
-// File : VisuGUI_SweepPrefDlg.cxx
-// Created : Wed Aug 01 10:23:06 2001
-// Author : Laurent CORNABE & Hubert ROLLAND
-// Project : SALOME
-// Module : VISUGUI
-// Copyright : PRINCIPIA
+// VISU VISUGUI : GUI of VISU 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 : VisuGUI_SweepPrefDlg.cxx
+// Author : Laurent CORNABE & Hubert ROLLAND
+// Module : VISU
// $Header$
+using namespace std;
#include "VisuGUI_SweepPrefDlg.h"
#include <qlayout.h>
VisuGUI_SweepPrefDlg::VisuGUI_SweepPrefDlg( QWidget* parent, const char* name, bool modal, WFlags fl )
: QDialog( parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu )
{
- if ( !name )
- setName( "VisuGUI_SweepPrefDlg" );
- setCaption( tr( "Sweeping Preferences" ) );
- setSizeGripEnabled( TRUE );
-
- QVBoxLayout* TopLayout = new QVBoxLayout( this );
+ if (!name)
+ setName("VisuGUI_SweepPrefDlg");
+ setCaption(tr("DLG_TITLE"));
+ setSizeGripEnabled(TRUE);
+
+ QVBoxLayout* TopLayout = new QVBoxLayout( this );
TopLayout->setSpacing( 6 );
TopLayout->setMargin( 11 );
-
+
TopGroup = new QGroupBox( this, "TopGroup" );
TopGroup->setColumnLayout(0, Qt::Vertical );
TopGroup->layout()->setSpacing( 0 );
TopGroupLayout->setSpacing( 6 );
TopGroupLayout->setMargin( 11 );
- TimeLabel = new QLabel( tr( "Time step (second):" ), TopGroup, "TimeLabel" );
- TimeSpin = new QAD_SpinBoxDbl( TopGroup, 0.1, 1000.0, 0.1 );
+ TimeLabel = new QLabel (tr("LBL_TIME_STEP"), TopGroup, "TimeLabel");
+ TimeSpin = new QtxDblSpinBox( 0.1, 1000.0, 0.1, TopGroup );
TimeSpin->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) );
TimeSpin->setMinimumSize( 70, 0 );
TimeSpin->setValue( 0.2 );
- CyclesLabel = new QLabel( tr( "Number of cycles:" ), TopGroup, "CyclesLabel" );
+ CyclesLabel = new QLabel (tr("LBL_NB_CYCLES"), TopGroup, "CyclesLabel");
CyclesSpin = new QSpinBox( 1, 100, 1, TopGroup, "CyclesSpin" );
CyclesSpin->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) );
CyclesSpin->setMinimumSize( 70, 0 );
CyclesSpin->setValue( 1 );
- StepsLabel = new QLabel( tr( "Number of steps:" ), TopGroup, "StepsLabel" );
+ StepsLabel = new QLabel (tr("LBL_NB_STEPS"), TopGroup, "StepsLabel");
StepsSpin = new QSpinBox( 1, 200, 1, TopGroup, "StepsSpin" );
StepsSpin->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) );
StepsSpin->setMinimumSize( 70, 0 );