def handleOnItem(self,item,int):
- print "je passe dans handleOnItem pour ",self, item.item.nom, item, item.item
+ #print "je passe dans handleOnItem pour ",self, item.item.nom, item, item.item
from InterfaceQT4 import composimp
self.inhibeExpand == True
estUneFeuille=(isinstance(item,composimp.Node))
# il faut afficher le parent
- print "estUneFeuille", estUneFeuille
- print "afficheCommandesPliees", self.editor.afficheCommandesPliees
+ #print "estUneFeuille", estUneFeuille
+ #print "afficheCommandesPliees", self.editor.afficheCommandesPliees
if estUneFeuille : itemParent.affichePanneau()
elif self.editor.afficheCommandesPliees : itemParent.plieToutEtReafficheSaufItem(item)
else : itemParent.affichePanneau()
#self.tree.handleExpandedItem(item)
#item.fenetre.donnePremier()
#item.fenetre.rendActif()
- print 'il faut afficher le 1er'
+ #print 'il faut afficher le 1er'
try :
fr = item.item.get_fr()
if self.editor: self.editor.affiche_commentaire(unicode(fr))
try :
self.fenetre.setValide()
except :
- print "onValid pour ", self.item.nom, self,'pb'
+ # print "onValid pour ", self.item.nom, self,'pb'
+ pass
if (self.item.nom == "VARIABLE" or self.item.nom == "DISTRIBUTION") and self.item.isvalid():
self.item.jdc.recalcule_etat_correlation()
return "ast-red-ball"
else:
return "ast-yel-ball"
- print "invalide"
def GetText(self):
"""
try:
self.CONFIGURATION.convert_module
- print self.CONFIGURATION.convert_module
+ #print self.CONFIGURATION.convert_module
_module = __import__(self.CONFIGURATION.convert_module)
info = _module.entryPoint()
convert.plugins.addEntryPoint(info)
if self.code == "TELEMAC" : texte=self._newTELEMAC()
if self.code == "PSEN" : texte = self._newPSEN()
if self.code == "PSEN_N1" : texte = self._newPSEN_N1()
+ #if self.code == "CF" : texte = self._new_CF()
# texte=self.newTexteCND
jdc=self.readercata.cata[0].JdC( procedure =texte,
for mot in listeAvant :
ouChercher=ouChercher.get_child(mot,restreint="oui")
monMC=ouChercher.get_child(MCFils,restreint="oui")
- if monMC != None : print ouChercher.suppentite(monMC)
+ if monMC != None : ouChercher.suppentite(monMC)
ouChercher.state='changed'
ouChercher.isvalid()
return ligne
+ #---------------------------#
+ def _new_CF(self):
+ #---------------------------#
+ texte="CONDUITE_FORCEE();"
+ return texte
+
+
#---------------------------#
def _newTELEMAC(self):
#---------------------------#
self.dansUnTuple=False
def focusInEvent(self,event):
- print "dans focusInEvent de LECustom"
+ #print "dans focusInEvent de LECustom"
self.parentQt.LineEditEnCours=self
self.parentQt.NumLineEditEnCours=self.num
self.parentQt.textSelected=self.text()
self.prepareListeResultatFiltre()
def alphaPushed(self):
- print "alphaPushed" ,self.alpha
+ #print "alphaPushed" ,self.alpha
if self.alpha == 1 : return
self.alpha=1
self.prepareListeResultat()
try :
#if 1 :
genea= self.editor.readercata.dicoInverse[str(motAChercher)]
- print genea
listeGenea=[]
for t in genea : listeGenea.append(t[0])
listeGenea.reverse()
self.inhibe=0
return True
except :
- print self.listeAffichageWidget
- print "souci ds focusNextPrevChild"
+ pass
+ #print self.listeAffichageWidget
+ #print "souci ds focusNextPrevChild"
if i==0 and next==False and not self.inhibe:
if hasattr(self.editor.fenetreCentraleAffichee,'scrollArea'):
self.editor.fenetreCentraleAffichee.scrollArea.ensureWidgetVisible(self.listeAffichageWidget[-1])
def rendVisibleNoeud(self,node):
self.f=node.fenetre
- print "dans rendVisibleNoeud",self.f
+ #print "dans rendVisibleNoeud",self.f
QTimer.singleShot(1, self.rendVisible)
def rendVisible(self):
- print "dans rendVisible",self.f
+ #print "dans rendVisible",self.f
QApplication.processEvents()
self.f.setFocus(7)
self.editor.fenetreCentraleAffichee.scrollAreaCommandes.ensureWidgetVisible(self.f)
if monEnvQT5 :
self.commentaireTE.textChanged.connect(self.TexteCommentaireEntre)
+ #if self.editor.code in ['MAP','CARMELCND','CF'] : self.bCatalogue.close()
if self.editor.code in ['MAP','CARMELCND'] : self.bCatalogue.close()
else : self.bCatalogue.clicked.connect(self.afficheCatalogue)
+ #if self.editor.code in ['Adao','MAP','CF'] :
if self.editor.code in ['Adao','MAP'] :
self.bAvant.close()
self.bApres.close()
def TexteCommentaireEntre(self):
texte=str(self.commentaireTE.toPlainText())
- print texte
self.editor.init_modif()
self.node.item.set_valeur(texte)
self.node.update_node_texte()
if monEnvQT5 :
+ #if self.editor.code in ['MAP','CARMELCND','CF'] : self.bCatalogue.close()
if self.editor.code in ['MAP','CARMELCND'] : self.bCatalogue.close()
else : self.bCatalogue.clicked.connect(self.afficheCatalogue)
+ #if self.editor.code in ['Adao','MAP','CF'] :
if self.editor.code in ['Adao','MAP'] :
self.bAvant.close()
self.bApres.close()
self.setIconePoubelle()
self.remplit()
+ #if self.editor.code in ['MAP','CARMELCND','CF'] : self.bCatalogue.close()
if self.editor.code in ['MAP','CARMELCND'] : self.bCatalogue.close()
elif monEnvQT5 : self.bCatalogue.clicked.connect(self.afficheCatalogue)
else : self.connect(self.bCatalogue,SIGNAL("clicked()"), self.afficheCatalogue)
spacerItem2 = QSpacerItem(40, 70, QSizePolicy.Fixed, QSizePolicy.Minimum)
self.CBLayout.addItem(spacerItem2)
- if len(self.listeAAfficher) < 8 :
- self.frameRecherche.close()
+ if len(self.listeAAfficher) < 8 : self.frameRecherche.close()
# try except si la liste des possibles est vide
# prevoir qqchose
try :
class MonWidgetPlusieursIntoOrdonne (Ui_WidgetPlusieursIntoOrdonne, Feuille,GereListe,GerePlie):
def __init__(self,node,monSimpDef,nom,objSimp,parent,commande):
- print "MonWidgetPlusieursInto", nom, self
self.nomLine="LEResultat"
self.listeLE=[]
self.ouAjouter=0
# cas ou on ne peut rien ajouter
pass
self.prepareListeResultat()
+ if len(self.listeAAfficher) < 8 :
+ self.frameRecherche1.close()
+ self.frameRecherche2.close()
self.adjustSize()
if sys.platform[0:5]!="linux":
repIcon=self.node.editor.appliEficas.repIcon
if not hasattr(self.editor.readercata.cata[0],'sd_moteur') : self.editor.readercata.cata[0].sd_moteur=None
if self.objSimp.definition.validators.typeDesTuples[0]==self.editor.readercata.cata[0].sd_ligne :
val=[]
- for k in self.objSimp.jdc.LineDico.keys() :
+ if hasattr(self.objSimp.jdc,'LineDico'):
+ for k in self.objSimp.jdc.LineDico.keys() :
try :
valeur=self.objSimp.jdc.get_concept(k)
val.append((valeur,0))
self.node.item.set_valeur(val)
if self.objSimp.definition.validators.typeDesTuples[0]==self.editor.readercata.cata[0].sd_generateur :
val=[]
- for k in self.objSimp.jdc.MachineDico.keys() :
+ if hasattr(self.objSimp.jdc,'MachineDico'):
+ for k in self.objSimp.jdc.MachineDico.keys() :
try :
valeur=self.objSimp.jdc.get_concept(k)
val.append((valeur,0))
self.node.item.set_valeur(val)
if self.objSimp.definition.validators.typeDesTuples[0]==self.editor.readercata.cata[0].sd_transfo :
val=[]
- for k in self.objSimp.jdc.TransfoDico.keys() :
+ if hasattr(self.objSimp.jdc,'TransfoDico'):
+ for k in self.objSimp.jdc.TransfoDico.keys() :
try :
valeur=self.objSimp.jdc.get_concept(k)
val.append((valeur,0))
self.node.item.set_valeur(val)
if self.objSimp.definition.validators.typeDesTuples[0]==self.editor.readercata.cata[0].sd_charge :
val=[]
- for k in self.objSimp.jdc.LoadDico.keys() :
+ if hasattr(self.objSimp.jdc,'LoadDico'):
+ for k in self.objSimp.jdc.LoadDico.keys() :
try :
valeur=self.objSimp.jdc.get_concept(k)
val.append((valeur,0))
self.node.item.set_valeur(val)
if self.objSimp.definition.validators.typeDesTuples[0]==self.editor.readercata.cata[0].sd_moteur :
val=[]
- for k in self.objSimp.jdc.MotorDico.keys() :
+ if hasattr(self.objSimp.jdc,'MotorDico'):
+ for k in self.objSimp.jdc.MotorDico.keys() :
try :
valeur=self.objSimp.jdc.get_concept(k)
val.append((valeur,0))
self.ouvreFichiers()
#except EficasException, exc:
except:
- print "je suis dans le except"
+ #print "je suis dans le except"
if self.salome == 0 : exit()
#if Msg == None :
# self.viewmanager.handleAjoutGroup(listeGroup)
#else :
- print "il faut gerer "
+ #print "il faut gerer "
+ pass
def ajoutIcones(self) :
# Pour pallier les soucis de repertoire d icone
- print self.repIcon
+ #print self.repIcon
icon = QIcon(self.repIcon+"/new_file.png")
self.action_Nouveau.setIcon(icon)
icon1 = QIcon(self.repIcon+"/ouvrir.png")
def connecterSignaux(self) :
- print QApplication.focusChanged
- #QApplication.focusChanged.connect(self.focusChanged)
self.recentMenu.aboutToShow.connect(self.handleShowRecentMenu)
self.action_Nouveau.triggered.connect(self.fileNew)
self.actionNouvel_Include.triggered.connect(self.NewInclude)
res=self.fileExit()
if res==2 : event.ignore()
- def focusChanged(self,oldW, newW) :
- print "jjjjjjjjjjjjjjjjjjjjjjjjjjjjjj"
- print newW
if __name__=='__main__':
</spacer>
</item>
<item>
- <layout class="QHBoxLayout" name="horizontalLayout_5">
- <item>
- <widget class="QLineEdit" name="LEFiltre">
- <property name="styleSheet">
- <string notr="true">background:rgb(255,255,255)
+ <widget class="QFrame" name="frameRecherche1">
+ <layout class="QHBoxLayout" name="horizontalLayout_5">
+ <item>
+ <widget class="QLineEdit" name="LEFiltre">
+ <property name="styleSheet">
+ <string notr="true">background:rgb(255,255,255)
</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QToolButton" name="PBFind">
- <property name="minimumSize">
- <size>
- <width>21</width>
- <height>31</height>
- </size>
- </property>
- <property name="maximumSize">
- <size>
- <width>21</width>
- <height>31</height>
- </size>
- </property>
- <property name="toolTip">
- <string>Détruit une ligne</string>
- </property>
- <property name="styleSheet">
- <string notr="true">border : 0px</string>
- </property>
- <property name="text">
- <string>...</string>
- </property>
- <property name="icon">
- <iconset theme="find">
- <normaloff>../../../.designer/backup</normaloff>../../../.designer/backup</iconset>
- </property>
- <property name="iconSize">
- <size>
- <width>32</width>
- <height>32</height>
- </size>
- </property>
- </widget>
- </item>
- </layout>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QToolButton" name="PBFind">
+ <property name="minimumSize">
+ <size>
+ <width>21</width>
+ <height>31</height>
+ </size>
+ </property>
+ <property name="maximumSize">
+ <size>
+ <width>21</width>
+ <height>31</height>
+ </size>
+ </property>
+ <property name="toolTip">
+ <string>Détruit une ligne</string>
+ </property>
+ <property name="styleSheet">
+ <string notr="true">border : 0px</string>
+ </property>
+ <property name="text">
+ <string>...</string>
+ </property>
+ <property name="icon">
+ <iconset theme="find">
+ <normaloff>../../../.designer/backup</normaloff>../../../.designer/backup</iconset>
+ </property>
+ <property name="iconSize">
+ <size>
+ <width>32</width>
+ <height>32</height>
+ </size>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
</item>
<item>
- <layout class="QHBoxLayout" name="horizontalLayout_6">
- <item>
- <widget class="QPushButton" name="PBCata">
- <property name="text">
- <string>Catalogue</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="PBAlpha">
- <property name="text">
- <string>Alpha</string>
- </property>
- </widget>
- </item>
- <item>
- <spacer name="horizontalSpacer_7">
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>40</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </item>
- </layout>
+ <widget class="QFrame" name="frameRecherche2">
+ <layout class="QHBoxLayout" name="horizontalLayout_6">
+ <item>
+ <widget class="QPushButton" name="PBCata">
+ <property name="text">
+ <string>Catalogue</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="PBAlpha">
+ <property name="text">
+ <string>Alpha</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="horizontalSpacer_7">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>40</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ </layout>
+ </widget>
</item>
<item>
<spacer name="verticalSpacer_6">
<x>0</x>
<y>0</y>
<width>18</width>
- <height>196</height>
+ <height>180</height>
</rect>
</property>
<property name="sizePolicy">
</property>
<property name="icon">
<iconset>
- <normaloff>../../../.designer/Editeur/icons/MoinsBleu.png</normaloff>../../../.designer/Editeur/icons/MoinsBleu.png</iconset>
+ <normaloff>../Editeur/icons/MoinsBleu.png</normaloff>../Editeur/icons/MoinsBleu.png</iconset>
</property>
<property name="iconSize">
<size>
</property>
<property name="icon">
<iconset>
- <normaloff>../../../.designer/Editeur/icons/PlusBleu.png</normaloff>../../../.designer/Editeur/icons/PlusBleu.png</iconset>
+ <normaloff>../Editeur/icons/PlusBleu.png</normaloff>../Editeur/icons/PlusBleu.png</iconset>
</property>
<property name="iconSize">
<size>
</property>
<property name="icon">
<iconset>
- <normaloff>../../../.designer/Editeur/icons/verre-loupe-icone-6087-64.png</normaloff>../../../.designer/Editeur/icons/verre-loupe-icone-6087-64.png</iconset>
+ <normaloff>../Editeur/icons/verre-loupe-icone-6087-64.png</normaloff>../Editeur/icons/verre-loupe-icone-6087-64.png</iconset>
</property>
<property name="iconSize">
<size>
</spacer>
</item>
<item>
- <layout class="QHBoxLayout" name="horizontalLayout_5">
- <item>
- <widget class="QLineEdit" name="LEFiltre">
- <property name="styleSheet">
- <string notr="true">background:rgb(255,255,255)
+ <widget class="QFrame" name="frameRecherche1">
+ <layout class="QHBoxLayout" name="horizontalLayout_5">
+ <item>
+ <widget class="QLineEdit" name="LEFiltre">
+ <property name="styleSheet">
+ <string notr="true">background:rgb(255,255,255)
</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QToolButton" name="PBFind">
- <property name="minimumSize">
- <size>
- <width>21</width>
- <height>31</height>
- </size>
- </property>
- <property name="maximumSize">
- <size>
- <width>21</width>
- <height>31</height>
- </size>
- </property>
- <property name="toolTip">
- <string>Détruit une ligne</string>
- </property>
- <property name="styleSheet">
- <string notr="true">border : 0px</string>
- </property>
- <property name="text">
- <string>...</string>
- </property>
- <property name="icon">
- <iconset theme="find">
- <normaloff>../../../.designer/backup</normaloff>../../../.designer/backup</iconset>
- </property>
- <property name="iconSize">
- <size>
- <width>32</width>
- <height>32</height>
- </size>
- </property>
- </widget>
- </item>
- </layout>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QToolButton" name="PBFind">
+ <property name="minimumSize">
+ <size>
+ <width>21</width>
+ <height>31</height>
+ </size>
+ </property>
+ <property name="maximumSize">
+ <size>
+ <width>21</width>
+ <height>31</height>
+ </size>
+ </property>
+ <property name="toolTip">
+ <string>Détruit une ligne</string>
+ </property>
+ <property name="styleSheet">
+ <string notr="true">border : 0px</string>
+ </property>
+ <property name="text">
+ <string>...</string>
+ </property>
+ <property name="icon">
+ <iconset theme="find">
+ <normaloff>../../../.designer/backup</normaloff>../../../.designer/backup</iconset>
+ </property>
+ <property name="iconSize">
+ <size>
+ <width>32</width>
+ <height>32</height>
+ </size>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
</item>
<item>
- <layout class="QHBoxLayout" name="horizontalLayout_6">
- <item>
- <widget class="QPushButton" name="PBCata">
- <property name="text">
- <string>Catalogue</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="PBAlpha">
- <property name="text">
- <string>Alpha</string>
- </property>
- </widget>
- </item>
- <item>
- <spacer name="horizontalSpacer_7">
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>40</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </item>
- </layout>
+ <widget class="QFrame" name="frameRecherche2">
+ <layout class="QHBoxLayout" name="horizontalLayout_6">
+ <item>
+ <widget class="QPushButton" name="PBCata">
+ <property name="text">
+ <string>Catalogue</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="PBAlpha">
+ <property name="text">
+ <string>Alpha</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="horizontalSpacer_7">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>40</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ </layout>
+ </widget>
</item>
<item>
<spacer name="verticalSpacer_6">
<x>0</x>
<y>0</y>
<width>18</width>
- <height>196</height>
+ <height>180</height>
</rect>
</property>
<property name="sizePolicy">
</property>
<property name="icon">
<iconset>
- <normaloff>../../../.designer/Editeur/icons/MoinsBleu.png</normaloff>../../../.designer/Editeur/icons/MoinsBleu.png</iconset>
+ <normaloff>../Editeur/icons/MoinsBleu.png</normaloff>../Editeur/icons/MoinsBleu.png</iconset>
</property>
<property name="iconSize">
<size>
</property>
<property name="icon">
<iconset>
- <normaloff>../../../.designer/Editeur/icons/PlusBleu.png</normaloff>../../../.designer/Editeur/icons/PlusBleu.png</iconset>
+ <normaloff>../Editeur/icons/PlusBleu.png</normaloff>../Editeur/icons/PlusBleu.png</iconset>
</property>
<property name="iconSize">
<size>
</property>
<property name="icon">
<iconset>
- <normaloff>../../../.designer/Editeur/icons/verre-loupe-icone-6087-64.png</normaloff>../../../.designer/Editeur/icons/verre-loupe-icone-6087-64.png</iconset>
+ <normaloff>../Editeur/icons/verre-loupe-icone-6087-64.png</normaloff>../Editeur/icons/verre-loupe-icone-6087-64.png</iconset>
</property>
<property name="iconSize">
<size>