-# -*- coding: utf-8 -*-\r
-# CONFIGURATION MANAGEMENT OF EDF VERSION\r
-# ======================================================================\r
-# COPYRIGHT (C) 1991 - 2002 EDF R&D WWW.CODE-ASTER.ORG\r
-# THIS PROGRAM IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY\r
-# IT UNDER THE TERMS OF THE GNU GENERAL PUBLIC LICENSE AS PUBLISHED BY\r
-# THE FREE SOFTWARE FOUNDATION; EITHER VERSION 2 OF THE LICENSE, OR\r
-# (AT YOUR OPTION) ANY LATER VERSION.\r
-#\r
-# THIS PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT\r
-# WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF\r
-# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE GNU\r
-# GENERAL PUBLIC LICENSE FOR MORE DETAILS.\r
-#\r
-# YOU SHOULD HAVE RECEIVED A COPY OF THE GNU GENERAL PUBLIC LICENSE\r
-# ALONG WITH THIS PROGRAM; IF NOT, WRITE TO EDF R&D CODE_ASTER,\r
-# 1 AVENUE DU GENERAL DE GAULLE, 92141 CLAMART CEDEX, FRANCE.\r
-#\r
-#\r
-# ======================================================================\r
-"""\r
- Ce module sert pour charger les paramètres de configuration d'EFICAS\r
-"""\r
-# Modules Python\r
-from InterfaceQT4 import configuration\r
-import os\r
-\r
-\r
-class CONFIG(configuration.CONFIG_BASE):\r
-\r
- #-----------------------------------\r
- def __init__(self,appli,repIni):\r
- #-----------------------------------\r
-\r
- self.labels_user=['catalogues','lang']\r
- self.labels_eficas=['lang','rep_cata','catalogues']\r
-\r
- configuration.CONFIG_BASE.__init__(self,appli,repIni)\r
-\r
-\r
-def make_config(appli,rep):\r
- return CONFIG(appli,rep)\r
-\r
+# -*- coding: utf-8 -*-
+#
+# Copyright (C) 2008-2016 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"
+import os, sys, string, types, re
+import traceback
+from daUtils.qtversion import useQT5
+if useQT5:
+ from PyQt5.QtGui import *
+else:
+ 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(configuration.CONFIG_BASE):
+
+ def __init__(self,appli,repIni):
+
+ #self.labels_eficas = ['lang']
+ self.labels_eficas=['lang','rep_cata','catalogues','closeAutreCommande','closeFrameRechercheCommande','closeEntete','taille']
+ configuration.CONFIG_BASE.__init__(self,appli,repIni)
+
+ self.rep_user = os.environ["HOME"]
+ self.appli = appli
+ self.code = appli.code
+ # self.lang = "fr"
+ self.rep_ini = repIni
+ self.rep_mat=" " # Compatbilite Aster
+ self.savedir = self.rep_user
+ self.generator_module = "generator_adao"
+ self.convert_module = "convert_adao"
+
+ # Format des catalogues...
+ # (code, version, catalogue, formatIn, formatOut)
+ # Il faut les mettre dans un tuple
+ self.catalogues = (("ADAO", "V0", os.path.join(self.rep_ini, 'ADAO_Cata_V0.py'), "adao"),)
+
+def make_config(appli,rep):
+
+ return CONFIG(appli,rep)
+
+def make_config_style(appli,rep):
+
+ return None