Salome HOME
Merge from V5_1_main branch 24/11/2010
[modules/multipr.git] / src / MULTIPRGUI / MULTIPR_GUI.cxx
index d635228860c26ec03a3cff6ceb8321ff5087c1b7..31c012aacbaa9d69acb147adf89d338879d419ab 100644 (file)
@@ -1,6 +1,24 @@
-// Project MULTIPR, IOLS WP1.2.1 - EDF/CS
-// Partitioning/decimation module for the SALOME v3.2 platform
+//  Copyright (C) 2007-2010  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
+//
 
+// Partitioning/decimation module for the SALOME v3.2 platform
+//
 /**
  * \file    MULTIPR_GUI.cxx
  *
@@ -592,10 +610,8 @@ void MULTIPR_GUI::OnPartition2()
     {
         SUIT_MessageBox::warning( 
             (QWidget*) MULTIPR_GUI::desktop(),
-            QObject::tr("SPLIT_WARN"), 
-//            "Split warning", 
-            QObject::tr("NO_PART_SELECTED")); 
-//            "No parts selected");
+            QString("Split warning"), 
+            QString("No parts selected"));
         return;
     }
     
@@ -627,10 +643,8 @@ void MULTIPR_GUI::OnDecimate()
     {
         SUIT_MessageBox::warning( 
             (QWidget*) MULTIPR_GUI::desktop(),
-            QObject::tr("DECIMATION_WARN"), 
-//           "Decimation warning", 
-            QObject::tr("NO_PART_SELECTED")); 
-//            "No parts selected"); 
+            QString("Decimation warning"), 
+            QString("No parts selected")); 
         return;
     }
 
@@ -676,20 +690,16 @@ void MULTIPR_GUI::OnRemove()
     {
         SUIT_MessageBox::warning( 
             (QWidget*) MULTIPR_GUI::desktop(),
-            QObject::tr("DEL_WARN"), 
-//            "Remove warning", 
-            QObject::tr("NO_PART_SELECTED"));
-//           "No parts selected"); 
+            QString("Remove warning"), 
+            QString("No parts selected")); 
         return;
     }
     
     if (QMessageBox::question(
             (QWidget*) MULTIPR_GUI::desktop(),
-            QObject::tr("DEL_SELECTED_PARTS"),
-//            QObject::tr("Remove selected part(s)"),
-            QObject::tr("DEL_SELECTED_PARTS_QUEST"),
-//           QObject::tr("Do you want to remove selected part(s)?"),
-            QObject::tr("&Yes"), tr("&No"),
+            QString("Remove selected part(s)"),
+            QString("Do you want to remove selected part(s)?"),
+            QString("&Yes"), QString("&No"),
             QString::null, 0, 1 ) )
     {
         return;
@@ -711,10 +721,8 @@ void MULTIPR_GUI::OnRemove()
     {
         SUIT_MessageBox::critical( 
             (QWidget*) MULTIPR_GUI::desktop(),
-            QObject::tr("DEL_ERROR"), 
-//            "Remove error", 
-            QObject::tr("ERROR_DEL_PART"));
-//            "Error while removing selected part(s)"); 
+            QString("Remove error"), 
+            QString("Error while removing selected part(s)")); 
     }
 
     QApplication::restoreOverrideCursor();