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 );