+
+ def reaffiche(self):
+ #print "dans reaffiche de feuille", self.nom
+ if self.editor.jdc.aReafficher==True :
+ self.parentQt.reaffiche()
+
+ #PN PN PN pas satisfaisant
+ #nodeAVoir=self.parentQt.node.chercheNoeudCorrespondant(self.objSimp)
+ #print nodeAVoir.fenetre
+ #print "nodeAVoir.fenetre.isVisible()", nodeAVoir.fenetre.isVisible()
+ #if nodeAVoir.fenetre.isVisible() : return
+ #self.editor.fenetreCentraleAffichee.rendVisibleNoeud(nodeAVoir)
+ #nodeAVoir.fenetre.setFocus()
+ # return # on est bien postionne
+
+ if self.objSimp.isvalid() and hasattr(self, 'AAfficher'):
+ nodeAVoir=self.parentQt.node.chercheNoeudCorrespondant(self.objSimp)
+ try :
+ index=self.editor.fenetreCentraleAffichee.listeAffichageWidget.index(nodeAVoir.fenetre.AAfficher)
+ if (index==len(self.editor.fenetreCentraleAffichee.listeAffichageWidget)-1) :
+ try :
+ nodeAVoir.fenetre.setValeursApresBouton()
+ except :
+ pass
+ else :
+ self.editor.fenetreCentraleAffichee.afficheSuivant(nodeAVoir.fenetre.AAfficher)
+ except :
+ pass
+ else :
+ if self.objSimp.isvalid() and hasattr(self, 'AAfficher'):
+ try :
+ self.setValeursApresBouton()
+ except :
+ self.editor.fenetreCentraleAffichee.afficheSuivant(self.AAfficher)
+ else :
+ if hasattr(self, 'AAfficher'): self.AAfficher.setFocus(7)
+
+ def reaffichePourDeplier(self):
+ self.parentQt.reaffiche()
+
+ def rendVisible(self):
+ #print "jjjjjjjjjjjjjjjjjjjjj"
+ pass
+
+ def traiteClicSurLabel(self,texte):
+ #print self.aide
+ aide=self.aide+"\n"+self.aideALaSaisie()
+ self.editor.affiche_commentaire(aide)
+
+ def formate(self,t):
+ if t.find('_')==0 :
+ newText=t[0:19]+'\n'+t[19:]
+ else:
+ listeNom=t.split('_')
+ newTexte=""
+ ligne=""
+ for n in listeNom:
+ if len(ligne)+len(n) < 25 :
+ newTexte=newTexte+"_"+n
+ ligne+="_"+n
+ else :
+ newTexte=newTexte+"\n_"+n
+ ligne=""
+ #newTexte=t[0:t.rfind('_')]+'\n'+ t[t.rfind('_'):]
+ newText=newTexte[1:]
+ return newText
+
+
+