Salome HOME
Merge from V6_5_BR 05/06/2012
[modules/visu.git] / src / VISUGUI / VisuGUI_CutLinesDlg.cxx
index 561151f597bfe60acc16e83570584bdc21c2e057..4884d84205a395abaee711a7422f5d933bee80eb 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -18,6 +18,7 @@
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
 
 //  File   : VisuGUI_CutLinesDlg.cxx
 //  Author : VSV
@@ -269,8 +270,8 @@ VisuGUI_CutLinesDlg::VisuGUI_CutLinesDlg (SalomeApp_Module* theModule)
   myPosTable->setEditTriggers( (QAbstractItemView::EditTriggers)(QAbstractItemView::AllEditTriggers &(~QAbstractItemView::CurrentChanged)));
 
   QStringList aLabels;
-  aLabels.append( "Position" );
-  aLabels.append( "Set default" );
+  aLabels.append( tr("Position" ));
+  aLabels.append( tr("Set default" ));
   myPosTable->setHorizontalHeaderLabels( aLabels );
   
   aLinesLayout->addWidget( myPosTable );
@@ -291,8 +292,8 @@ VisuGUI_CutLinesDlg::VisuGUI_CutLinesDlg (SalomeApp_Module* theModule)
   myTabBox->addTab( aLinesPane, tr("LBL_LINES_CUT") );
 
   myInputPane = new VisuGUI_InputPane(VISU::TCUTLINES, theModule, this);
-  myTabBox->addTab(GetScalarPane(), "Scalar Bar");
-  myTabBox->addTab(myInputPane, "Input");
+  myTabBox->addTab(GetScalarPane(), tr("Scalar Bar"));
+  myTabBox->addTab(myInputPane, tr("Input"));
 
   aMainLayout->addWidget(myTabBox);
 
@@ -618,7 +619,7 @@ void VisuGUI_CutLinesDlg::DrawTable()
   else if (aNbPlanes < aNbRows)
     myPosTable->setRowCount(aNbPlanes);
 
-  QString str("Plane# %1");
+  QString str(tr("PLANE_NUMBER"));
   QStringList aLabels;
   int aMin = (aNbRows < aNbPlanes)? aNbRows : aNbPlanes;
   for (int i = 0; i<aMin; i++)