nouvelItem=item.itemNode(self,item,itemExpand,ancien)
self.children.append(nouvelItem)
- #print "fin *********** build_children ",self,self.item, self.item.nom
+ #print "fin *********** build_children ",self,self.item, self.item.nom, self.children
def chercheNoeudCorrespondant(self,objSimp):
self.affiche="alpha"\r
self.closeAutreCommande = False\r
self.closeFrameRechercheCommande = False\r
+ self.closeEntete = False\r
\r
\r
#--------------------------------------\r
self.editor=editor
self.CBRecherche.setEditable(True)
if monEnvQT5 :
- self.LERecherche.returnPressed.connect(self.rechercheLE)
self.CBRecherche.lineEdit().returnPressed.connect(self.rechercheCB)
self.CBRecherche.currentIndexChanged.connect(self.rechercheCB)
else :
- self.connect(self.LERecherche,SIGNAL("returnPressed()"),self.rechercheLE)
self.connect(self.CBRecherche.lineEdit(),SIGNAL("returnPressed()"),self.rechercheCB)
self.connect(self.CBRecherche,SIGNAL("currentIndexChanged(int)"),self.rechercheCB)
motAChercher=self.CBRecherche.lineEdit().text()
self.recherche(motAChercher)
- def rechercheLE(self):
- motAChercher=self.LERecherche.text()
- self.recherche(motAChercher)
def recherche(self,motAChercher):
if str(motAChercher)=="" or str(motAChercher) == None : return
import eficasSalome
Accas.SalomeEntry = eficasSalome.SalomeEntry
+ #self.salome=1
self.multi=multi
self.demande=multi # specifique PSEN
if self.multi == False :
self.blEntete.insertWidget(0,self.toolBar)
self.blEntete.insertWidget(0,self.menubar)
+ if self.CONFIGURATION.closeEntete==True : self.closeEntete()
eficas_root_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
def enleverRechercherDsCatalogue(self):
self.actionRechercherDsCatalogue.setVisible(False)
+ def connectRechercherDsCatalogue(self):
+ if monEnvQT5:
+ self.actionRechercherDsCatalogue.triggered.connect(self.handleRechercherDsCatalogue)
+ else :
+ self.connect(self.actionRechercherDsCatalogue,SIGNAL("triggered()"),self.handleRechercherDsCatalogue)
+
def ZCRACKS(self):
self.enleverNewInclude()
self.toolBar.addSeparator()
def ADAO(self):
self.enleverActionsStructures()
self.enleverNewInclude()
- self.enleverRechercherDsCatalogue()
def ASTER(self) :
self.menuTraduction = self.menubar.addMenu("menuTraduction")
def TELEMAC(self):
self.enleverActionsStructures()
self.enleverNewInclude()
+ self.connectRechercherDsCatalogue()
def ajoutHelpPSEN(self):
self.actionParametres_Eficas.setText('Help PSEN')
self.recent = QStringList()
self.sauveRecents()
+ def handleRechercherDsCatalogue(self):
+ if not self.viewmanager : return
+ self.viewmanager.handleRechercherDsCatalogue()
+
def fileNew(self):
try:
self.viewmanager.newEditor()
eficas_compile_ui ( desChoixCode.ui )
eficas_compile_ui ( desChoixCommandes.ui )
eficas_compile_ui ( desRecherche.ui )
+eficas_compile_ui ( desRechercheCatalogue.ui )
eficas_compile_ui ( desSelectVal.ui )
eficas_compile_ui ( desViewTexte.ui )
eficas_compile_ui ( desViewRegles.ui )
<item>
<widget class="QComboBox" name="CBRecherche"/>
</item>
- <item>
- <widget class="QLineEdit" name="LERecherche">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Maximum" vsizetype="Expanding">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="minimumSize">
- <size>
- <width>411</width>
- <height>41</height>
- </size>
- </property>
- <property name="styleSheet">
- <string notr="true">background:rgb(240,240,240)</string>
- </property>
- </widget>
- </item>
</layout>
</item>
<item>