EDIT_PYTEL_CASE_ID = 953
GENERATE_JOB = 954
#DEFINE_BOUNDARY_CONDITIONS_ID = 955
- DEFINE_CAS_FILE = 955
+ DEFINE_CAS_FILE_EN = 955
EDIT_BOUNDARY_CONDITIONS_FILE_ID = 956
GENERATE_INTERPOLZ_PY_ID = 957
GEN_TELEMAC2D_PYTHON_ID = 958
GEN_TELEMAC2D_YACS_ID = 959
+ DEFINE_CAS_FILE_FR = 960
def __init__( self ):
# create top-level menu
sgPyQt.createTool( a, tid )
a = sgPyQt.createSeparator()
- a = sgPyQt.createAction( GUIcontext.DEFINE_CAS_FILE,
- "Edit cas file", "Edit cas file",
- "Create/edit a .cas file for Telemac",
+ a = sgPyQt.createAction( GUIcontext.DEFINE_CAS_FILE_EN,
+ "Edit cas file (English)", "Edit cas file (English)",
+ "Create/edit a .cas file for Telemac (English)",
+ "define_cas_file.png" )
+ sgPyQt.createMenu( a, mid )
+ sgPyQt.createTool( a, tid )
+
+ a = sgPyQt.createSeparator()
+ a = sgPyQt.createAction( GUIcontext.DEFINE_CAS_FILE_FR,
+ "Edit cas file (French)", "Edit cas file (French)",
+ "Create/edit a .cas file for Telemac (French)",
"define_cas_file.png" )
sgPyQt.createMenu( a, mid )
sgPyQt.createTool( a, tid )
sgPyQt.createAction( GUIcontext.GENERATE_JOB, "Generate batch job", "Generate batch job",
"Generate a batch job to run the selected case")
- sgPyQt.createAction( GUIcontext.DEFINE_CAS_FILE, "Edit .cas file", "Edit .cas file",
+ sgPyQt.createAction( GUIcontext.DEFINE_CAS_FILE_EN, "Edit .cas file", "Edit .cas file",
"Edit .cas file")
+ sgPyQt.createAction( GUIcontext.DEFINE_CAS_FILE_FR, "Edit .cas file (French)", "Edit .cas file (French)",
+ "Edit .cas file (French)")
################################################
###
# Open dialog for boundary conditions edition
###
-def eficas_for_cas_Telemac2D():
- runEficas(code='TELEMAC')
+def eficas_for_cas_Telemac2D_fr():
+ EficasForTelemac2DAppli(code='TELEMAC', lang = 'fr')
+
+def eficas_for_cas_Telemac2D_en():
+ EficasForTelemac2DAppli(code='TELEMAC', lang = 'en')
+
###
# Commands dictionary
###
#GUIcontext.DEFINE_BOUNDARY_CONDITIONS_ID: define_boundary_conditions,
GUIcontext.EDIT_BOUNDARY_CONDITIONS_FILE_ID: edit_boundary_conditions_file,
GUIcontext.GENERATE_INTERPOLZ_PY_ID: generate_interpolz_py,
- GUIcontext.DEFINE_CAS_FILE: eficas_for_cas_Telemac2D,
+ GUIcontext.DEFINE_CAS_FILE_EN: eficas_for_cas_Telemac2D_en,
+ GUIcontext.DEFINE_CAS_FILE_FR: eficas_for_cas_Telemac2D_fr,
}
:param fichier: path of an Eficas file to open
"""
- def __init__(self, fichier = None, version = None):
+ def __init__(self, code = "telemac2d", fichier = None, version = None, lang = None):
self.ed = HydroStudyEditor()
self.codedir = os.path.dirname(__file__)
sys.path[:0] = [self.codedir]
eficasSalome.MyEficas.__init__(self, sgPyQt.getDesktop(),
- "telemac2d",
- fichier, version = version)
+ code = code, fichier = fichier,
+ version = version, lang = lang)
area = QScrollArea(SalomePyQt.SalomePyQt().getDesktop());
gridLayout = QGridLayout(area)
gridLayout.addWidget(self)