]> SALOME platform Git repositories - modules/homard.git/blobdiff - src/HOMARDGUI/MonEditIteration.cxx
Salome HOME
Merge from V6_main_20120808 08Aug12
[modules/homard.git] / src / HOMARDGUI / MonEditIteration.cxx
index 4363da12d7990af5a7bafc0447cc583108ef23d5..a6368637a7a6db6b98091531a12c2a330a5193e6 100644 (file)
@@ -1,9 +1,26 @@
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
+//
+// 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.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+
 using namespace std;
 
 #include "MonEditIteration.h"
 
-#include <QMessageBox>
-
 #include "SalomeApp_Tools.h"
 #include "HOMARDGUI_Utils.h"
 #include "HomardQtCommun.h"
@@ -22,7 +39,7 @@ MonEditIteration::MonEditIteration ( QWidget* parent, bool modal,
    _rank(0), _step(0), _IterationName(""), _FieldFile(""),_aTypeAdap()
 {
     MESSAGE("Debut de  MonEditIteration" << IterName.toStdString().c_str());
-    setWindowTitle("Edit iteration");
+    setWindowTitle(QObject::tr("HOM_ITER_EDIT_WINDOW_TITLE"));
     _IterationName = IterName;
     aIter = _myHomardGen->GetIteration(_IterationName.toStdString().c_str());
 
@@ -53,12 +70,12 @@ void MonEditIteration::InitValEdit0()
 
 //    Affichage bloque du nom du maillage de l'iteration courante
       QString MeshName = aIter->GetMeshName();
-      Mesh_n->setText(QString("Mesh name"));
+      Mesh_n->setText(QObject::tr("HOM_ITER_STARTING_POINT_0"));
       LEMeshName_n->setText(MeshName);
       LEMeshName_n->setReadOnly(1);
 
 //    Message general
-      Mesh_np1->setText(QString("First iteration of the case."));
+      Mesh_np1->setText(QObject::tr("HOM_ITER_STARTING_POINT_1"));
       LEMeshName_np1->setVisible(0);
 //
 //    Invisibilite des hypotheses et des champs
@@ -150,7 +167,7 @@ bool MonEditIteration::PushOnApply()
   if ( _aTypeAdap ==  1)
   {
 // Pour du raffinement selon un champ, les instants ont-ils change ?
-    if ( (_FieldFile != LEFieldFile->text().trimmed()) or 
+    if ( (_FieldFile != LEFieldFile->text().trimmed()) or
        (  _rank != SpinBox_Rank->value())  or
        (  _step != SpinBox_TimeStep->value()))
     {