myIsRegenerate( false )
{
setModal( true );
- setWindowTitle("Setup Animation");
+ setWindowTitle(tr("Setup Animation"));
setSizeGripEnabled( TRUE );
QVBoxLayout* aMainLayout = new QVBoxLayout(this);
aMainLayout->setSpacing(5);
// Range of time stamps
- myUseRangeBox = new QGroupBox("Use range of time stamps", this);
+ myUseRangeBox = new QGroupBox(tr("Use range of time stamps"), this);
myUseRangeBox->setCheckable( true );
myUseRangeBox->setChecked(myAnimator->isRangeDefined());
}
}
- QLabel* aMinLbl = new QLabel("From", myUseRangeBox);
+ QLabel* aMinLbl = new QLabel(tr("From"), myUseRangeBox);
aRangeLayout->addWidget(aMinLbl);
//myMinVal = new SalomeApp_DoubleSpinBox( aMinTime, aMaxTime, aStep, myUseRangeBox );
//VISU::initSpinBox( myMinVal, aMinTime, aMaxTime, aStep, "visual_data_precision" );
// this, SLOT( onMinValueEdit(const QString&) ));
aRangeLayout->addWidget(myMinVal);
- QLabel* aMaxLbl = new QLabel("To", myUseRangeBox);
+ QLabel* aMaxLbl = new QLabel(tr("To"), myUseRangeBox);
aRangeLayout->addWidget(aMaxLbl);
//myMaxVal = new SalomeApp_DoubleSpinBox( aMinTime, aMaxTime, aStep, myUseRangeBox );
//VISU::initSpinBox( myMaxVal, aMinTime, aMaxTime, aStep, "visual_data_precision" );
aMainLayout->addWidget(myUseRangeBox);
// Sequence of time stamps
- myUseSequenceBox = new QGroupBox("Use sequence of time stamps", this);
+ myUseSequenceBox = new QGroupBox(tr("Use sequence of time stamps"), this);
myUseSequenceBox->setCheckable( true );
myUseSequenceBox->setChecked( myAnimator->isSequenceDefined() );
aUseSequenceLayout->setSpacing( 6 );
aUseSequenceLayout->setMargin( 11 );
- QLabel* anIndicesLbl = new QLabel("Indices", myUseSequenceBox);
+ QLabel* anIndicesLbl = new QLabel(tr("Indices"), myUseSequenceBox);
myIndices = new QLineEdit( myUseSequenceBox );
myValues = new QListWidget( myUseSequenceBox );
aHPropLayout->setSpacing(5);
aHPropLayout->setMargin(0);
- QGroupBox* aNamesBox = new QGroupBox("Fields",aPropFrame);
+ QGroupBox* aNamesBox = new QGroupBox(tr("Fields"),aPropFrame);
aHPropLayout->addWidget( aNamesBox );
QVBoxLayout* aVBoxLayout = new QVBoxLayout( aNamesBox );
aVBoxLayout->setSpacing(5);
aVBoxLayout->setMargin(0);
- QGroupBox* aPropBox = new QGroupBox("Properties", aSetupBox);
+ QGroupBox* aPropBox = new QGroupBox(tr("Properties"), aSetupBox);
aVBoxLayout->addWidget( aPropBox );
QVBoxLayout* aPropVBLay = new QVBoxLayout( aPropBox );
//connect( aBarBtn, SIGNAL( clicked() ),
// this, SLOT( onScalarBarDlg() ) );
- myPropBtn = new QPushButton("Properties...", aPropBox);
+ myPropBtn = new QPushButton(tr("Properties..."), aPropBox);
myPropBtn->setAutoDefault( false );
aPropVBLay->addWidget( myPropBtn );
// myPropBtn->setEnabled(myAnimator->getFieldData(0).myPrsType != VISU::TSCALARMAP);
if (myAnimator->getNbFields() > 1 ) {
if( myAnimator->getAnimationMode() == VISU::Animation::PARALLEL ) {
- myArrangeBtn = new QPushButton("Arrange...", aSetupBox);
+ myArrangeBtn = new QPushButton(tr("Arrange..."), aSetupBox);
aVBoxLayout->addWidget( myArrangeBtn );
connect( myArrangeBtn, SIGNAL( clicked() ), this, SLOT( onArrangeDlg() ) );
}
return;
// ATTENTION: append items in the same order like it is done in the PrsComboItem enumeration
- myTypeCombo->addItem("Scalar Map"); // item 0
+ myTypeCombo->addItem(tr("VISU_SCALAR_MAP")); // item 0
myTypeId2ComboId[TSCALARMAP_ITEM] = myComboId2TypeId.size();
myComboId2TypeId.push_back(TSCALARMAP_ITEM);;
- myTypeCombo->addItem("Iso Surfaces"); // item 1
+ myTypeCombo->addItem(tr("VISU_ISO_SURFACES")); // item 1
myTypeId2ComboId[TISOSURFACES_ITEM] = myComboId2TypeId.size();
myComboId2TypeId.push_back(TISOSURFACES_ITEM);;
- myTypeCombo->addItem("Cut Planes"); // item 2
+ myTypeCombo->addItem(tr("VISU_CUT_PLANES")); // item 2
myTypeId2ComboId[TCUTPLANES_ITEM] = myComboId2TypeId.size();
myComboId2TypeId.push_back(TCUTPLANES_ITEM);;
- myTypeCombo->addItem("Cut Lines"); // item 3
+ myTypeCombo->addItem(tr("VISU_CUT_LINES")); // item 3
myTypeId2ComboId[TCUTLINES_ITEM] = myComboId2TypeId.size();
myComboId2TypeId.push_back(TCUTLINES_ITEM);;
- myTypeCombo->addItem("Cut Segment"); // item 4
+ myTypeCombo->addItem(tr("VISU_CUT_SEGMENT")); // item 4
myTypeId2ComboId[TCUTSEGMENT_ITEM] = myComboId2TypeId.size();
myComboId2TypeId.push_back(TCUTSEGMENT_ITEM);;
- myTypeCombo->addItem("Plot 3D"); // item 5
+ myTypeCombo->addItem(tr("VISU_PLOT3D")); // item 5
myTypeId2ComboId[TPLOT3D_ITEM] = myComboId2TypeId.size();
myComboId2TypeId.push_back(TPLOT3D_ITEM);;
}
if (anEnableItems) {
- myTypeCombo->addItem("Deformed Shape"); // item 6
+ myTypeCombo->addItem(tr("VISU_DEFORMED_SHAPE")); // item 6
myTypeId2ComboId[TDEFORMEDSHAPE_ITEM] = myComboId2TypeId.size();
myComboId2TypeId.push_back(TDEFORMEDSHAPE_ITEM);;
- myTypeCombo->addItem("Vectors"); // item 7
+ myTypeCombo->addItem(tr("VISU_VECTORS")); // item 7
myTypeId2ComboId[TVECTORS_ITEM] = myComboId2TypeId.size();
myComboId2TypeId.push_back(TVECTORS_ITEM);;
- myTypeCombo->addItem("Stream Lines"); // item 8
+ myTypeCombo->addItem(tr("VISU_STREAM_LINES")); // item 8
myTypeId2ComboId[TSTREAMLINES_ITEM] = myComboId2TypeId.size();
myComboId2TypeId.push_back(TSTREAMLINES_ITEM);;
- myTypeCombo->addItem("Deformed shape and Scalar map"); // item 10
+ myTypeCombo->addItem(tr("VISU_DEFORMED_SHAPE_AND_SCALAR_MAP")); // item 10
myTypeId2ComboId[TDEFORMEDSHAPEANDSCALARMAP_ITEM] = myComboId2TypeId.size();
myComboId2TypeId.push_back(TDEFORMEDSHAPEANDSCALARMAP_ITEM);;
}
if(anEnableGP){
- myTypeCombo->addItem("Gauss Points"); // item 9
+ myTypeCombo->addItem(tr("VISU_GAUSS_POINT")); // item 9
myTypeId2ComboId[TGAUSSPOINTS_ITEM] = myComboId2TypeId.size();
myComboId2TypeId.push_back(TGAUSSPOINTS_ITEM);;
}
aMainLayout->setMargin( 7 );
aMainLayout->setSpacing(5);
- mySetupBtn = new QPushButton("Setup Animation...", this);
+ mySetupBtn = new QPushButton(tr("Setup Animation..."), this);
connect( mySetupBtn, SIGNAL( clicked() ),
this, SLOT( onSetupDlg() ) );
aMainLayout->addWidget(mySetupBtn);
- myGenBtn = new QPushButton("Generate frames", this);
+ myGenBtn = new QPushButton(tr("Generate frames"), this);
connect( myGenBtn, SIGNAL( clicked() ),
this, SLOT( createFrames() ) );
aMainLayout->addWidget(myGenBtn);
this, SLOT( onLastPressed() ) );
TopLayout->addWidget(aLastBtn, 4, 1);
- QLabel* aSpeedLbl = new QLabel("Speed", myPlayFrame);
+ QLabel* aSpeedLbl = new QLabel(tr("Speed"), myPlayFrame);
TopLayout->addWidget(aSpeedLbl, 4, 2, Qt::AlignRight);
QLCDNumber* aSpeedNum = new QLCDNumber( 2, myPlayFrame );
this, SLOT(onSpeedChange(double)) );
TopLayout->addWidget(aWheel, 1, 3, 3, 1, Qt::AlignRight);
- QCheckBox* aCycleCheck = new QCheckBox("Cycled animation",myPlayFrame);
+ QCheckBox* aCycleCheck = new QCheckBox(tr("Cycled animation"),myPlayFrame);
aCycleCheck->setChecked(myAnimator->isCycling());
connect(aCycleCheck, SIGNAL(toggled(bool)), myAnimator, SLOT(setCyclingSlot(bool)));
TopLayout->addWidget(aCycleCheck, 5, 0, 1, 4);
- QCheckBox* aPropCheck = new QCheckBox("Use proportional timing",myPlayFrame);
+ QCheckBox* aPropCheck = new QCheckBox(tr("Use proportional timing"),myPlayFrame);
aPropCheck->setChecked(myAnimator->isProportional());
connect(aPropCheck, SIGNAL(toggled(bool)), myAnimator, SLOT(setProportionalSlot(bool)));
TopLayout->addWidget(aPropCheck, 6, 0, 1, 4);
// Pictures saving on disk
- QGroupBox* aSaveBox = new QGroupBox( "Saving", myPlayFrame );
+ QGroupBox* aSaveBox = new QGroupBox( tr("Saving"), myPlayFrame );
//aSaveBox->setColumnLayout(0, Qt::Horizontal );
QGridLayout* aSaveLay = new QGridLayout(aSaveBox);
aSaveLay->setSpacing( 5 );
aSaveLay->setMargin( 5 );
- mySaveCheck = new QCheckBox("Save pictures to directory", aSaveBox);
+ mySaveCheck = new QCheckBox(tr("Save pictures to directory"), aSaveBox);
connect(mySaveCheck, SIGNAL( toggled(bool)),
this, SLOT( onCheckDump(bool) ));
aSaveLay->addWidget(mySaveCheck, 0, 0, 1, 3);
- QLabel* aFormatLbl = new QLabel("Saving format:", aSaveBox);
+ QLabel* aFormatLbl = new QLabel(tr("Saving format:"), aSaveBox);
aFormatLbl->setEnabled(false);
connect(mySaveCheck, SIGNAL( toggled(bool)),
aFormatLbl, SLOT( setEnabled(bool) ));
connect(myPicsFormat, SIGNAL( activated (int)),
this, SLOT( onPicsFormatChanged()));
- QLabel* aPathLbl = new QLabel("Path:", aSaveBox);
+ QLabel* aPathLbl = new QLabel(tr("Path:"), aSaveBox);
aPathLbl->setEnabled(false);
connect(mySaveCheck, SIGNAL( toggled(bool)),
aPathLbl, SLOT( setEnabled(bool) ));
myPathEdit, SLOT( setEnabled(bool) ));
aSaveLay->addWidget(myPathEdit, 2, 1);
- QPushButton* aBrowseBtn = new QPushButton("Browse...", aSaveBox);
+ QPushButton* aBrowseBtn = new QPushButton(tr("Browse..."), aSaveBox);
aBrowseBtn->setEnabled(false);
connect(mySaveCheck, SIGNAL( toggled(bool)),
aBrowseBtn, SLOT( setEnabled(bool) ));
mySaveCheck->setChecked(false);
aSaveLay->addWidget(aBrowseBtn, 2, 2);
- mySaveAVICheck = new QCheckBox("Save animation to AVI file", aSaveBox);
+ mySaveAVICheck = new QCheckBox(tr("Save animation to AVI file"), aSaveBox);
connect(mySaveAVICheck, SIGNAL( toggled(bool)),
this, SLOT( onCheckDump(bool) ));
aSaveLay->addWidget(mySaveAVICheck, 3, 0, 1, 3);
- myPathAVILbl = new QLabel("Path:", aSaveBox);
+ myPathAVILbl = new QLabel(tr("Path:"), aSaveBox);
myPathAVILbl->setEnabled(false);
//connect(mySaveAVICheck, SIGNAL( toggled(bool)),
// myPathAVILbl, SLOT( setEnabled(bool) ));
// myPathAVIEdit, SLOT( setEnabled(bool) ));
aSaveLay->addWidget(myPathAVIEdit, 4, 1);
- myBrowseAVIBtn = new QPushButton("Browse...", aSaveBox);
+ myBrowseAVIBtn = new QPushButton(tr("Browse..."), aSaveBox);
myBrowseAVIBtn->setEnabled(false);
//connect(mySaveAVICheck, SIGNAL( toggled(bool)),
// myBrowseAVIBtn, SLOT( setEnabled(bool) ));
this, SLOT( onBrowseAVI() ));
aSaveLay->addWidget(myBrowseAVIBtn, 4, 2);
- myFrequencyLbl = new QLabel("Time stamp frequency:", aSaveBox);
+ myFrequencyLbl = new QLabel(tr("Time stamp frequency:"), aSaveBox);
myFrequencyLbl->setEnabled(false);
aSaveLay->addWidget(myFrequencyLbl, 5, 0, 1, 2);
TopLayout->addWidget(aSaveBox, 7, 0, 1, 4);
- QCheckBox* aCleanMemCheck = new QCheckBox("Clean memory at each frame",myPlayFrame);
+ QCheckBox* aCleanMemCheck = new QCheckBox(tr("Clean memory at each frame"),myPlayFrame);
aCleanMemCheck->setChecked(myAnimator->isCleaningMemoryAtEachFrame());
connect(aCleanMemCheck, SIGNAL(toggled(bool)), myAnimator, SLOT(setCleaningMemoryAtEachFrameSlot(bool)));
TopLayout->addWidget(aCleanMemCheck, 8, 0, 1, 4);
QHBoxLayout* aPubHBLay = new QHBoxLayout( aPublishBox );
aPubHBLay->setMargin( 0 );
- myPublishBtn = new QPushButton("Publish to study", aPublishBox);
+ myPublishBtn = new QPushButton(tr("Publish to study"), aPublishBox);
aPubHBLay->addWidget( myPublishBtn );
connect(myPublishBtn, SIGNAL(clicked()), this, SLOT(publishToStudy()));
- mySaveBtn = new QPushButton("Save Animation", aPublishBox);
+ mySaveBtn = new QPushButton(tr("Save Animation"), aPublishBox);
mySaveBtn->setEnabled(myAnimator->isSavedInStudy());
aPubHBLay->addWidget( mySaveBtn );
connect(mySaveBtn, SIGNAL(clicked()), this, SLOT(saveToStudy()));
aDir = getenv("HOME");
else
aDir = myPathEdit->text();
- QString aPath = SUIT_FileDlg::getExistingDirectory(this, aDir, "Select path");
+ QString aPath = SUIT_FileDlg::getExistingDirectory(this, aDir, tr("Select path"));
if (!aPath.isEmpty())
myPathEdit->setText(Qtx::addSlash(aPath));
onPathChanged();
QFileInfo aFile(myPathAVIEdit->text());
aDir = aFile.absoluteDir().absolutePath();
}
- QString aPath = SUIT_FileDlg::getFileName(this, aDir, aFilter, "Select file", false);
+ QString aPath = SUIT_FileDlg::getFileName(this, aDir, aFilter, tr("Select file"), false);
if (!aPath.isEmpty())
myPathAVIEdit->setText(aPath);
}