]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1735: Names in deflection dialog box.
authorvsv <vitaly.smetannikov@opencascade.com>
Wed, 7 Sep 2016 14:51:00 +0000 (17:51 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Wed, 7 Sep 2016 14:51:38 +0000 (17:51 +0300)
src/SamplePanelPlugin/SamplePanelPlugin_ModelWidget.cpp
src/SamplePanelPlugin/SamplePanelPlugin_Panel.cpp
src/XGUI/XGUI_ColorDialog.cpp
src/XGUI/XGUI_DeflectionDialog.cpp

index 4f6530e20f8856b997a356a210299d835994a9a4..ed4625ecc12b26bc3637f80867fbb0d4a11efcaa 100755 (executable)
@@ -29,7 +29,7 @@ SamplePanelPlugin_ModelWidget::SamplePanelPlugin_ModelWidget(QWidget* theParent,
   aLay->addWidget(myMainWidget);
 
   QGridLayout* aLayout = new QGridLayout(myMainWidget);
-  aLayout->addWidget(new QLabel("Values:"), 0, 0);
+  aLayout->addWidget(new QLabel(tr("Values:")), 0, 0);
 
   myComboBox = new QComboBox(myMainWidget);
   myComboBox->addItem("Value_1");
index 36225355fb521aa5f9cf945bfd07d23b23653ccb..d25add5b972feeebc3e610d2fc338d259ba9626f 100755 (executable)
@@ -20,7 +20,7 @@ SamplePanelPlugin_Panel::SamplePanelPlugin_Panel(QWidget* theParent)
 : QWidget(theParent), myDefaultValue(0)
 {
   QGridLayout* aLayout = new QGridLayout(this);
-  aLayout->addWidget(new QLabel("Values:"), 0, 0);
+  aLayout->addWidget(new QLabel(tr("Values:")), 0, 0);
 
   myComboBox = new QComboBox(this);
   myComboBox->addItem("Value_1");
index 7fa7cc004ffb2748be54093e0b60b7f0dd82aeb0..16cb5167b1bf432c3fdddd0f668724bf7e284ca3 100644 (file)
@@ -19,7 +19,7 @@
 XGUI_ColorDialog::XGUI_ColorDialog(QWidget* theParent)
   : QDialog(theParent)
 {
-  setWindowTitle("Color");
+  setWindowTitle(tr("Color"));
   QGridLayout* aLay = new QGridLayout(this);
 
   QRadioButton* aRandomChoiceBtn = new QRadioButton(this);
@@ -37,7 +37,7 @@ XGUI_ColorDialog::XGUI_ColorDialog(QWidget* theParent)
   myColorButton->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
   aLay->addWidget(myColorButton, 0, 1);
 
-  QLabel* aRandomLabel = new QLabel("Random", this);
+  QLabel* aRandomLabel = new QLabel(tr("Random"), this);
   aLay->addWidget(aRandomLabel, 1, 1);
 
   QDialogButtonBox* aButtons = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel,
index 4ce9dcfd6e895ffc22870df08d4cd986c94535b4..60ebe7a92be8657b82c4c8ae9f640b111033993e 100755 (executable)
 XGUI_DeflectionDialog::XGUI_DeflectionDialog(QWidget* theParent)
   : QDialog(theParent)
 {
-  setWindowTitle("Deflection");
+  setWindowTitle(tr("Deflection"));
   QGridLayout* aLay = new QGridLayout(this);
 
   myDeflection = new ModuleBase_DoubleSpinBox(this);
   myDeflection->setDecimals(12);
   myDeflection->setRange(0, 1);
   myDeflection->setSingleStep(0.001);
-  aLay->addWidget(new QLabel("Deviation", this), 0, 0);
+  aLay->addWidget(new QLabel(tr("Deflection value"), this), 0, 0);
   aLay->addWidget(myDeflection, 0, 1);
 
   QDialogButtonBox* aButtons = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel,