Salome HOME
Clarifying user interaction in EFICAS/YACS transfer process and corrections
[modules/adao.git] / src / daEficas / configuration_ADAO.py
index 247202770ac47dfc7b8defa31a29a33e1c5a10ec..4cd78ec398664b6349a9736e2afebbebb2957842 100644 (file)
@@ -1,25 +1,53 @@
 # -*- coding: utf-8 -*-
+#
+# Copyright (C) 2008-2015 EDF R&D
+#
+# This file is part of SALOME ADAO module
+#
+# 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
+#
+# Author: André Ribes, andre.ribes@edf.fr, EDF R&D
+
 """
     Ce module sert pour charger les paramètres de configuration d'EFICAS
 """
 # Modules Python
-print "passage dans la surcharge de configuration pour Adao"
+print "passage dans la surcharge de configuration pour Adao"
 import os, sys, string, types, re
 import traceback
 from PyQt4.QtGui  import *
 
 # Modules Eficas
 from Editeur import utils
+from InterfaceQT4 import configuration
 
 # Classe de base permettant de lire, afficher
-# et sauvegarder les fichiers utilisateurs 
-class CONFIG:
+# et sauvegarder les fichiers utilisateurs
+class CONFIG(configuration.CONFIG_BASE):
 
   def __init__(self,appli,repIni):
 
+    self.labels_eficas = ['lang']
+    configuration.CONFIG_BASE.__init__(self,appli,repIni)
+
     self.rep_user = os.environ["HOME"]
-    self.appli   = appli  
+    self.appli   = appli
     self.code    = appli.code
+    # self.lang    = "fr"
     self.rep_ini = repIni
     self.rep_mat=" " # Compatbilite Aster
     self.savedir      = self.rep_user