# Modules Eficas
from Editeur import Objecttreeitem
-from Aster import prefs
from InterfaceQT import browser
from Noyau.N_CR import justify_text
+import prefs
class Node(browser.JDCNode):
def getPanel(self):
from Editeur import session
from Editeur import comploader
from Editeur import Objecttreeitem
-from Aster import prefs
from InterfaceQT import panelsQT
from InterfaceQT import browser
from InterfaceQT import readercata
+import prefs
import qtCommun
VERSION_EFICAS = "EFICAS v1.12"
readercata.reader = readercata.READERCATA( self, self )
self.readercata = readercata.reader
-
#------- construction du jdc --------------
jdc_item = None
+# -*- coding: iso-8859-15 -*-
+
class UserInterface(Eficas):
"""
Class implementing the main user interface.
--- /dev/null
+# -*- coding: utf-8 -*-
+# CONFIGURATION MANAGEMENT OF EDF VERSION
+# ======================================================================
+# COPYRIGHT (C) 1991 - 2002 EDF R&D WWW.CODE-ASTER.ORG
+# THIS PROGRAM IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY
+# IT UNDER THE TERMS OF THE GNU GENERAL PUBLIC LICENSE AS PUBLISHED BY
+# THE FREE SOFTWARE FOUNDATION; EITHER VERSION 2 OF THE LICENSE, OR
+# (AT YOUR OPTION) ANY LATER VERSION.
+#
+# THIS PROGRAM 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
+# GENERAL PUBLIC LICENSE FOR MORE DETAILS.
+#
+# YOU SHOULD HAVE RECEIVED A COPY OF THE GNU GENERAL PUBLIC LICENSE
+# ALONG WITH THIS PROGRAM; IF NOT, WRITE TO EDF R&D CODE_ASTER,
+# 1 AVENUE DU GENERAL DE GAULLE, 92141 CLAMART CEDEX, FRANCE.
+#
+#
+# ======================================================================
+"""
+ Ce module permet de lancer l'application EFICAS en affichant
+ un ecran Splash pour faire patienter l'utilisateur
+"""
+# Modules Python
+import sys
+from qt import *
+
+# Modules Eficas
+import prefs
+if hasattr(prefs,'encoding'):
+ # Hack pour changer le codage par defaut des strings
+ import sys
+ reload(sys)
+ sys.setdefaultencoding(prefs.encoding)
+ del sys.setdefaultencoding
+ # Fin hack
+
+from Editeur import import_code
+from Editeur import session
+
+def lance_eficas(code=None,fichier=None):
+ """
+ Lance l'appli EFICAS
+ """
+ # Analyse des arguments de la ligne de commande
+ if code !=None : prefs.code=code
+ import qtEficas
+ options=session.parse(sys.argv)
+ code=options.code
+
+ app = QApplication(sys.argv)
+ mw = qtEficas.Appli(code=code)
+ app.setMainWidget(mw)
+ app.connect(app, SIGNAL("lastWindowClosed()"), app, SLOT("quit()"))
+ if fichier != None : mw.ouvreFichiers()
+ mw.show()
+ res = app.exec_loop()
+ sys.exit(res)
+
+
from desCommentaire import DComment
from qtCommun import QTPanel
-from Aster import prefs
+import prefs
# Import des panels
import string,types,os,re
# Modules Eficas
-from Aster import prefs
+import prefs
from qt import *
import string,types,os
# Modules Eficas
-from Aster import prefs
+import prefs
from qt import *
from monPlusieursIntoPanel import MonPlusieursIntoPanel
import string,types,os
# Modules Eficas
-from Aster import prefs
+import prefs
from qt import *
import string,types,os
# Modules Eficas
-from Aster import prefs
+import prefs
from qt import *
import string,types,os
# Modules Eficas
-from Aster import prefs
+import prefs
from qt import *
import string,types,os
# Modules Eficas
-from Aster import prefs
+import prefs
from qt import *
import string,types,os,re
# Modules Eficas
-from Aster import prefs
+import prefs
from qt import *
import string,types,os
# Modules Eficas
-from Aster import prefs
+import prefs
from qt import *
import string,types,os
# Modules Eficas
-from Aster import prefs
+import prefs
from qt import *
import string,types,os
# Modules Eficas
-from Aster import prefs
+import prefs
from qt import *
from viewManager import MyTabview
from Editeur import configuration
-from Aster import prefs
+from Editeur import session
+
from InterfaceQT import utilIcons
utilIcons.initializeMimeSourceFactory()
+import prefs
+
class Appli(Eficas):
"""
Class implementing the main user interface.
"""
- def __init__(self):
+ def __init__(self,code="ASTER"):
"""
Constructor
self.ficPatrons={}
self.initPatrons()
self.ihm="QT"
+ self.salome=0
+ self.code=code
#self.ouvreFichers()
if __name__=='__main__':
# Modules Eficas
- from Aster import prefs
+ import prefs
if hasattr(prefs,'encoding'):
# Hack pour changer le codage par defaut des strings
import sys
import re
# Modules Eficas
-from Aster import prefs
+import prefs
from Noyau.N_CR import CR
from utils import init_rep_cata_dev
self.code = self.appli.CONFIGURATION.catalogues[0][0]
self.version_code = liste_cata_possibles[0][1]
self.appli.format_fichier=liste_cata_possibles[0][3]
- lab=QString("Eficas V1.12 pour ASTER avec le catalogue ")
+ lab=QString("Eficas V1.13 pour ASTER avec le catalogue ")
lab+=self.version_code
- qApp.mainWidget().setCaption(lab)
+ self.appli.parent.ui.setCaption(lab)
+ #qApp.mainWidget().setCaption(lab)
else:
# plusieurs catalogues sont disponibles : il faut demander a l'utilisateur
# lequel il veut utiliser ...
#self.appli.format_fichier.set( self.dico_catalogues[self.version_cata][3] )
self.appli.format_fichier = self.dico_catalogues[self.version_cata][3]
lab+=self.version_cata
- qApp.mainWidget().setCaption(lab)
+ self.appli.parent.ui.setCaption(lab)
+ #qApp.mainWidget().setCaption(lab)
else :
sys.exit(0)
if __name__=='__main__':
import sys
- from Aster import prefs
+ import prefs
if hasattr(prefs,'encoding'):
# Hack pour changer le codage par defaut des strings
import sys
# Modules Eficas
import splash
-from Aster import prefs
+import prefs
import styles
from styles import style
from InterfaceTK import fontes
def __init__ (self,master,code=prefs.code,fichier=None,test=0,ihm="TK") :
self.ihm=ihm
self.code=code
+ self.salome=0
self.top=master
self.top.protocol("WM_DELETE_WINDOW",self.exitEFICAS)
# Modules Eficas
import splash
-import Aster.prefs
+import prefs
import convert
import generator
import AIDE
# Modules Eficas
from Editeur import import_code
from Editeur import session
-from Aster import prefs
+import prefs
import convert
import generator
import string
# Modules Eficas
from Editeur import Objecttreeitem
-from Aster import prefs
+import prefs
import panels
import images
from widgets import ListeChoix
import Tkinter
# Modules Eficas
-from Aster import prefs
+import prefs
if hasattr(prefs,'encoding'):
# Hack pour changer le codage par defaut des strings
import sys
from Tkinter import END
# Modules Eficas
-from Aster import prefs
+import prefs
from InterfaceTK import fontes
class FAQ:
# Modules Eficas
from Editeur import Objecttreeitem
-from Aster import prefs
+import prefs
import panels
import images
from widgets import ListeChoix
sys.exit()
try:
- from Aster import prefs
+ import prefs
ICONDIR=prefs.ICONDIR
except:
# Par defaut on utilise le repertoire local icons
# Modules Eficas
from Editeur import Objecttreeitem
-from Aster import prefs
+import prefs
import panels
import images
import composimp
import widgets
from widgets import ListeChoix
from widgets import ListeChoixParGroupes
-from Aster import prefs
+import prefs
import options
SEPARATEUR = '-'*30
# Modules Eficas
from Editeur import Objecttreeitem
-from Aster import prefs
+import prefs
import panels
import images
from widgets import ListeChoix
# Modules Eficas
from Editeur import Objecttreeitem
-from Aster import prefs
+import prefs
import panels
import images
from widgets import showinfo
# Modules Eficas
from Editeur import Objecttreeitem
-from Aster import prefs
+import prefs
import panels
import images
from widgets import ListeChoix
# Modules Eficas
from Editeur import Objecttreeitem
-from Aster import prefs
+import prefs
import panels
import images
from widgets import ListeChoix
# -*- coding: utf-8 -*-
import os
-from Aster import prefs
+import prefs
import basestyle
from basestyle import STYLE,style
# Modules Eficas
from Editeur import Objecttreeitem
-from Aster import prefs
+import prefs
import panels
import images
from widgets import ListeChoix
# Modules Eficas
from Editeur import Objecttreeitem
-from Aster import prefs
+import prefs
import panels
import images
from widgets import FenetreDeParametre
# Modules Eficas
from Editeur import Objecttreeitem
-from Aster import prefs
+import prefs
import panels
import images
from widgets import ListeChoix
# Modules Eficas
from Editeur import Objecttreeitem
-from Aster import prefs
+import prefs
import panels
import images
from widgets import ListeChoix
# Modules Eficas
from Editeur import Objecttreeitem
-from Aster import prefs
+import prefs
import panels
import images
from widgets import ListeChoix
# Modules Eficas
from Editeur import Objecttreeitem
-from Aster import prefs
+import prefs
import panels
import images
from widgets import ListeChoix