Salome HOME
Pour V1 Carmel
[tools/eficas.git] / InterfaceQT4 / compoparam.py
index 372aa36426fea160a9e3f687452390eecda29af9..346463b20eefbba5d595cee28aba863e834bb2c1 100644 (file)
@@ -1,4 +1,22 @@
 # -*- coding: utf-8 -*-
 # -*- coding: utf-8 -*-
+# Copyright (C) 2007-2013   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
+#
 """
    Ce module contient les classes permettant de définir les objets graphiques
    représentant un objet de type PARAMETRE, cad le panneau et l'item de l'arbre
 """
    Ce module contient les classes permettant de définir les objets graphiques
    représentant un objet de type PARAMETRE, cad le panneau et l'item de l'arbre
@@ -7,6 +25,7 @@
 
 # import modules Python
 import string, types
 
 # import modules Python
 import string, types
+from Extensions.i18n import tr
 
 # import modules EFICAS
 from Editeur     import Objecttreeitem
 
 # import modules EFICAS
 from Editeur     import Objecttreeitem
@@ -15,7 +34,7 @@ import typeNode
 
 
 class Node(browser.JDCNode,typeNode.PopUpMenuNodePartiel): 
 
 
 class Node(browser.JDCNode,typeNode.PopUpMenuNodePartiel): 
-    def getPanel(self):
+    def getPanel2(self):
         """        
         """    
         from monParamPanel  import MonParamPanel
         """        
         """    
         from monParamPanel  import MonParamPanel
@@ -64,11 +83,11 @@ class PARAMTreeItem(Objecttreeitem.ObjectTreeItem):
         - la fonte dans laquelle afficher ce texte
         - la couleur du texte
         """
         - la fonte dans laquelle afficher ce texte
         - la couleur du texte
         """
-        return 'PARAMETRE',None,None 
+        return tr('PARAMETRE'),None,None 
 
     def GetText(self):
       """
 
     def GetText(self):
       """
-      Retourne le texte à afficher aprês le nom de la commande (ici apres 'paramêtre')
+      Retourne le texte à afficher aprês le nom de la commande (ici apres 'parametre')
       Ce texte est tronqué à 25 caractêres
       """
       texte=self.object.nom+"="+str(self.object.valeur)
       Ce texte est tronqué à 25 caractêres
       """
       texte=self.object.nom+"="+str(self.object.valeur)
@@ -91,7 +110,7 @@ class PARAMTreeItem(Objecttreeitem.ObjectTreeItem):
     
 # ---------------------------------------------------------------------------
 #       Méthodes permettant la modification et la lecture des attributs
     
 # ---------------------------------------------------------------------------
 #       Méthodes permettant la modification et la lecture des attributs
-#       du paramêtre = API graphique du PARAMETRE pour Panel et EFICAS
+#       du parametre = API graphique du PARAMETRE pour Panel et EFICAS
 # ---------------------------------------------------------------------------
 
     def get_valeur(self):
 # ---------------------------------------------------------------------------
 
     def get_valeur(self):
@@ -103,7 +122,7 @@ class PARAMTreeItem(Objecttreeitem.ObjectTreeItem):
 
     def get_nom(self):
       """
 
     def get_nom(self):
       """
-      Retourne le nom du paramêtre
+      Retourne le nom du parametre
       """
       return self.object.nom
 
       """
       return self.object.nom
 
@@ -115,16 +134,16 @@ class PARAMTreeItem(Objecttreeitem.ObjectTreeItem):
 
     def set_nom(self,new_nom):
       """
 
     def set_nom(self,new_nom):
       """
-      Renomme le paramêtre
+      Renomme le parametre
       """
       self.object.set_nom(new_nom)
       #self.object.set_attribut('nom',new_nom)
 
     def get_fr(self):
       """
       """
       self.object.set_nom(new_nom)
       #self.object.set_attribut('nom',new_nom)
 
     def get_fr(self):
       """
-      Retourne le fr associé au paramêtre, cad la bulle d'aide pour EFICAS
+      Retourne le fr associé au parametre, cad la bulle d'aide pour EFICAS
       """
       """
-      return "Définition d'un paramêtre"
+      return tr("Definition d'un parametre")
     
 import Extensions.parametre
 treeitem =PARAMTreeItem
     
 import Extensions.parametre
 treeitem =PARAMTreeItem