MAP_ID = 943
OT_STUDY_ID = 944
OT_WRAPPER_ID = 945
+ MULTICATALOG_ID = 946
# constructor
def __init__(self):
# create toolbar
self.tid = sgPyQt.createTool("Eficas")
+ a = sgPyQt.createAction(GUIcontext.MULTICATALOG_ID, "Eficas MultiCatalogue","Lancer Eficas" , "Lancer Eficas", "eficas.png")
+ sgPyQt.createMenu(a, self.mid)
+ sgPyQt.createTool(a, self.tid)
+
# create actions conditionally and fill menu and toolbar with actions
self.addActionConditionally("Aster/prefs.py", GUIcontext.ASTER_ID,
"Eficas pour Code_Aster",
def runEficas():
print "-------------------------EFICASGUI::runEficas-------------------------"
+ import eficasSalome
+ eficasSalome.runEficas(multi=True)
+
+def runEficaspourAster():
import eficasSalome
eficasSalome.runEficas( "ASTER" )
# Partie applicative
dict_command={
- GUIcontext.ASTER_ID : runEficas,
+ GUIcontext.ASTER_ID : runEficaspourAster,
GUIcontext.OM_ID : runEficaspourOM,
GUIcontext.MAP_ID : runEficaspourMap,
GUIcontext.OT_STUDY_ID : runEficaspourOpenturnsStudy,
GUIcontext.OT_WRAPPER_ID : runEficaspourOpenturnsWrapper,
+ GUIcontext.MULTICATALOG_ID : runEficas,
9041:runEficasFichier,
}
b)la visualisation d'elements geometrique dans le coposant GEOM de SALOME par selection dans EFICAS
"""
def __init__( self, parent, code = "ASTER", fichier = None, module = "EFICAS",
- version = None, componentName = "Eficas"):
+ version = None, componentName = "Eficas",multi=False):
"""
Constructeur.
@type parent:
self.editor = getStudyEditor() # Editeur de l'arbre d'etude
- qtEficas.Appli.__init__( self,code=code,salome=1,parent=parent)
+ qtEficas.Appli.__init__( self,code=code,salome=1,parent=parent,multi=multi)
#--------------- specialisation EFICAS dans SALOME -------------------
self.parent = parent
#-------------------------------------------------------------------------------------------------------
# Point d'entree lancement EFICAS
#
-def runEficas( code="ASTER", fichier=None, module = "EFICAS", version=None, componentName = "Eficas"):
+def runEficas( code=None, fichier=None, module = "EFICAS", version=None, componentName = "Eficas",multi=False):
logger.debug(10*'#'+":runEficas: START")
#global appli
logger.debug(10*'#'+":runEficas: code="+str(code))
#if not appli: #une seul instance possible!
appli = MyEficas( SalomePyQt.SalomePyQt().getDesktop(), code = code, fichier = fichier,
- module = module, version = version, componentName = componentName )
+ module = module, version = version, componentName = componentName,multi=multi )
#if not appli: #une seul instance possible!
# appli = MyEficas( SalomePyQt.SalomePyQt().getDesktop(), code = code, fichier = fichier,
# module = module, componentName = componentName, version=version )