Salome HOME
Yoann : Mise a jour Eficas V9_DEV
[modules/hydrosolver.git] / src / salome_hydro / pytel / eficas / configuration_pytel.py
1 #  Copyright (C) 2012-2013 EDF
2 #
3 #  This file is part of SALOME HYDRO module.
4 #
5 #  SALOME HYDRO module is free software: you can redistribute it and/or modify
6 #  it under the terms of the GNU General Public License as published by
7 #  the Free Software Foundation, either version 3 of the License, or
8 #  (at your option) any later version.
9 #
10 #  SALOME HYDRO module is distributed in the hope that it will be useful,
11 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
12 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 #  GNU General Public License for more details.
14 #
15 #  You should have received a copy of the GNU General Public License
16 #  along with SALOME HYDRO module.  If not, see <http://www.gnu.org/licenses/>.
17
18 import os
19
20 from Editeur.catadesc import CatalogDescription
21 from InterfaceQT4.configuration import configBase
22
23 class CONFIG(configBase):
24
25     def __init__(self, appli, repIni):
26         """
27         This class stores the configuration parameters for Eficas
28         """
29         configBase.__init__(self, appli, repIni)
30
31         # Configuration parameters
32         self.savedir    = os.getenv("HOME")
33         self.catalogues = (CatalogDescription("pytel", os.path.join(repIni, "pytel_cata.py")),)
34         self.labels_eficas=['lang','rep_cata','catalogues','closeAutreCommande','closeFrameRechercheCommande','closeEntete','closeArbre']
35         self.lang = 'fr'
36
37     def save_params(self):
38         pass
39
40 def make_config(appli, rep):
41     return CONFIG(appli, rep)
42
43 def make_config_style(appli, rep):
44     return None