Ui_Eficas.__init__(self)
self.setupUi(self)
- self.VERSION_EFICAS="Eficas QT4 V6.3.1"
+ self.VERSION_EFICAS="Eficas QT4 V6.4"
self.salome=salome
self.ihm="QT"
self.top = self #(pour CONFIGURATION)
import sys
reload(sys)
sys.setdefaultencoding(prefsCode.encoding)
- if code in Appli.__dict__.keys():
- listeTexte=apply(Appli.__dict__[code],(self,))
+ if self.code in Appli.__dict__.keys():
+ listeTexte=apply(Appli.__dict__[self.code],(self,))
self.initPatrons()
self.ficRecents={}
+ def CARMEL3D(self):
+ if self.salome == 0 : return
+ self.menuMesh = self.menubar.addMenu("menuMesh")
+ self.menuMesh.setObjectName("Mesh")
+ self.actionChercheGrpMesh = QAction(self)
+ self.actionChercheGrpMesh.setText("Acquiert Groupe Maille")
+ self.menuMesh.addAction(self.actionChercheGrpMesh)
+ self.connect(self.actionChercheGrpMesh,SIGNAL("activated()"),self.ChercheGrpMesh)
+
+ def ChercheGrpMesh(self):
+ Msg,listeGroup=self.ChercheGrpMeshInSalome()
+ if Msg == None :
+ self.viewmanager.handleAjoutGroup(listeGroup)
+ #self.viewmanager.handleAjoutGroup(('Grp1','Grp2'))
+ else :
+ print "il faut gerer les erreurs"
+
def MAP(self):
self.menuExecution = self.menubar.addMenu(QApplication.translate("Eficas", "Execution", None, QApplication.UnicodeUTF8))
self.menuExecution.setObjectName("menuExecution")
self.actionExecutionYACS.setText(QApplication.translate("Eficas", "Execution YACS", None, QApplication.UnicodeUTF8))
self.connect(self.actionExecutionYACS,SIGNAL("activated()"),self.runYACS)
+ def OPENTURNS_STUDY(self):
+ self.menuOptions.setDisabled(True)
+
+ def OPENTURNS_WRAPPER(self):
+ self.menuOptions.setDisabled(True)
+
def ajoutIcones(self) :
# Pour pallier les soucis de repertoire d icone
icon = QIcon(self.RepIcon+"/New24.png")
def initRecents(self):
try :
rep=self.CONFIGURATION.rep_user
- monFichier=rep+"/.listefichiers_"+self.code
+ monFichier=rep+"/listefichiers_"+self.code
index=0
f=open(monFichier)
while ( index < 9) :
def sauveRecents(self) :
rep=self.CONFIGURATION.rep_user
- monFichier=rep+"/.listefichiers_"+self.code
+ monFichier=rep+"/listefichiers_"+self.code
try :
f=open(monFichier,'w')
if len(self.recent) == 0 : return
return texte
def cleanPath(self):
- for pathCode in ('Aster','Cuve2dg','Openturns_Study','Openturns_Wrapper','MAP'):
+ for pathCode in ('Aster','Carmel3D','Cuve2dg','Openturns_Study','Openturns_Wrapper','MAP'):
try:
- aEnlever=os.path.abspath(os.path.join(os.getcwd(),'..',pathCode))
+ aEnlever=os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__),'..',pathCode)))
sys.path.remove(aEnlever)
except :
pass
self.myQtab.setTabText(index,fileName)
return ok
return res
+
+ def handleAjoutGroup(self,listeGroup):
+ index=self.myQtab.currentIndex()
+ editor=self.dict_editors[index]
+ editor.handleAjoutGroup(listeGroup)
-<?xml version="1.0" encoding="UTF-8"?>
-<ui version="4.0">
+<ui version="4.0" >
<class>desPdf</class>
- <widget class="QDialog" name="desPdf">
- <property name="geometry">
+ <widget class="QDialog" name="desPdf" >
+ <property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<height>142</height>
</rect>
</property>
- <property name="windowTitle">
- <string>desPdf</string>
+ <property name="windowTitle" >
+ <string>Lire les Pdf</string>
</property>
- <layout class="QGridLayout" name="gridLayout">
- <item row="0" column="0">
- <layout class="QHBoxLayout" name="horizontalLayout_2">
+ <layout class="QGridLayout" name="gridLayout" >
+ <item row="0" column="0" >
+ <layout class="QHBoxLayout" name="horizontalLayout_2" >
<item>
- <widget class="QLabel" name="textLabel1_2">
- <property name="text">
+ <widget class="QLabel" name="textLabel1_2" >
+ <property name="text" >
<string>Lecteur Pdf :</string>
</property>
- <property name="wordWrap">
+ <property name="wordWrap" >
<bool>false</bool>
</property>
</widget>
</item>
<item>
- <spacer name="horizontalSpacer_2">
- <property name="orientation">
+ <spacer name="horizontalSpacer_2" >
+ <property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
- <property name="sizeHint" stdset="0">
+ <property name="sizeHint" stdset="0" >
<size>
<width>40</width>
<height>20</height>
</item>
</layout>
</item>
- <item row="1" column="0">
- <widget class="QLineEdit" name="LERepPdf">
- <property name="minimumSize">
+ <item row="1" column="0" >
+ <widget class="QLineEdit" name="LERepPdf" >
+ <property name="minimumSize" >
<size>
<width>0</width>
<height>30</height>
</size>
</property>
- <property name="text">
+ <property name="text" >
<string>acroread</string>
</property>
</widget>
</item>
- <item row="2" column="0">
- <layout class="QHBoxLayout" name="horizontalLayout">
+ <item row="2" column="0" >
+ <layout class="QHBoxLayout" name="horizontalLayout" >
<item>
- <spacer name="horizontalSpacer">
- <property name="orientation">
+ <spacer name="horizontalSpacer" >
+ <property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
- <property name="sizeHint" stdset="0">
+ <property name="sizeHint" stdset="0" >
<size>
<width>40</width>
<height>20</height>
</spacer>
</item>
<item>
- <widget class="QPushButton" name="Bok">
- <property name="text">
+ <widget class="QPushButton" name="Bok" >
+ <property name="text" >
<string>Ok</string>
</property>
</widget>
</item>
<item>
- <widget class="QPushButton" name="BCancel">
- <property name="text">
+ <widget class="QPushButton" name="BCancel" >
+ <property name="text" >
<string>Cancel</string>
</property>
</widget>
</item>
</layout>
</widget>
- <layoutdefault spacing="6" margin="11"/>
+ <layoutdefault spacing="6" margin="11" />
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
<tabstops>
<tabstop>LERepPdf</tabstop>
</widget>
</item>
<item>
- <widget class="QRadioButton" name="rB_MAP">
+ <widget class="QRadioButton" name="rB_Carmel3D">
<property name="minimumSize">
<size>
<width>0</width>