# -*- coding: utf-8 -*-
-import os,sys,string,re,types,traceback
-from qt import *
-import utilIcons
+# ======================================================================
+# 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.
+#
+#
+# ======================================================================
+import string,re
+import types,sys,os
+import traceback
+from PyQt4 import *
+from PyQt4.QtGui import *
+from PyQt4.QtCore import *
-class JDCTree( QListView ):
- def __init__( self, jdc_item, parent = None ):
- QListView.__init__( self, parent )
+class JDCTree( QTreeWidget ):
+ def __init__( self, jdc_item, QWParent):
+ QListView.__init__( self, QWParent )
- self.item = jdc_item
- self.tree = self
- self.editor = parent
- self.racine = self
- self.node_selected = None
- self.children = self.build_children()
+ self.item = jdc_item
+ self.tree = self
+ self.QWParent = QWParent
+ self.editor = QWParent
+ self.appliEficas = self.editor.appliEficas
- self.setCaption(self.trUtf8('Browser'))
- self.setRootIsDecorated(1)
- self.setSorting(-1)
- self.addColumn(self.trUtf8('Commande'))
- self.addColumn(self.trUtf8('Concept/Valeur'))
+ #self.setRootIsDecorated(1)
+ self.setColumnCount(2)
+ mesLabels=QStringList()
+ mesLabels << self.trUtf8('Commande') << self.trUtf8('Concept/Valeur')
+ self.setHeaderLabels(mesLabels)
self.setMinimumSize(QSize(400,500))
- self.connect(self,SIGNAL('contextMenuRequested(QListViewItem *, const QPoint &, int)'),
- self.handleContextMenu)
+ #self.connect(self,SIGNAL('contextMenuRequested(QListWidgetItem *, const QPoint &, int)'),
+ # self.handleContextMenu)
- #self.connect(self, SIGNAL("onItem ( QListViewItem * ) "), self.handleOnItem)
- self.connect(self, SIGNAL("clicked ( QListViewItem * ) "), self.handleOnItem)
- self.connect(self, SIGNAL('mouseButtonPressed(int, QListViewItem*, const QPoint&, int)'),
- self.handleNommeItem)
-
-
- def handleContextMenu(self,itm,coord,col):
- """
- Private slot to show the context menu of the listview.
-
- @param itm the selected listview item (QListViewItem)
- @param coord the position of the mouse pointer (QPoint)
- @param col the column of the mouse pointer (int)
- """
- try:
- if itm.menu:
- itm.menu.popup(coord)
- except:
- pass
-
- def handleNommeItem(self,bouton,itm,coord,col):
- """
- PN --> a finir eventuellement pour nommer
- le concept dans l arbre
- """
- try :
- if itm :
- panel=itm.getPanel()
- if panel.node.item.object.get_type_produit() != None :
- pass
- except:
- pass
+ #self.connect(self, SIGNAL("onItem ( QListWidgetItem * ) "), self.handleOnItem)
+ self.connect(self, SIGNAL("itemClicked ( QTreeWidgetItem * ,int) "), self.handleOnItem)
+ self.racine=self.item.itemNode(self,self.item)
+ self.expandItem(self.racine)
+ self.node_selected = self.racine
- def handleOnItem(self, item ):
+# def handleContextMenu(self,itm,coord,col):
+# """
+# Private slot to show the context menu of the listview.
+#
+# @param itm the selected listview item (QListWidgetItem)
+# @param coord the position of the mouse pointer (QPoint)
+# @param col the column of the mouse pointer (int)
+# """
+# try:
+# if itm.menu:
+# itm.menu.popup(coord)
+# except:
+# pass
+#
+ def handleOnItem(self,item,int):
+ item.affichePanneau()
try :
fr = item.item.get_fr()
- if self.editor:
- self.editor.affiche_infos(fr)
+ if self.QWParent:
+ self.QWParent.affiche_infos(fr)
except:
pass
-
+#
+#
+# def supprime(self):
+# """ supprime tous les elements de l'arbre """
+# raise RuntimeError, 'Not implemented'
+# self.tree = None
+# self.racine = None
+# self.node_selected = None
+# self.item = None
+# self.scrolledcanvas = None
+# for child in self.children:
+# child.supprime()
+# self.children=[]
+#
+# def showEvent(self, event):
+# """ QT : pour afficher le 1er niveau d'arborescence de l''arbre"""
+# self.children[0].select()
+#
+# def update(self):
+# """ Update tous les elements de l'arbre """
+# for child in self.children:
+# child.update()
+#
+## type de noeud
+#COMMENT = "COMMENTAIRE"
+#PARAMETERS = "PARAMETRE"
+#
+#
+class JDCNode(QTreeWidgetItem):
+ def __init__( self, treeParent, item):
+ self.item = item
+ self.treeParent = treeParent
+ self.tree = self.treeParent.tree
+ self.editor = self.treeParent.editor
+ self.appliEficas = treeParent.appliEficas
+
+ name = self.appliEficas.trUtf8( str( item.GetLabelText()[0] ) )
+ value = self.appliEficas.trUtf8( str( item.GetText() ) )
+ mesColonnes=QStringList()
+ mesColonnes << name << value
+ QTreeWidgetItem.__init__(self,treeParent,mesColonnes)
+
+ monIcone = QIcon("icons/" +item.GetIconName() + ".gif")
+ self.setIcon(0,monIcone)
+ self.build_children()
+ self.connect()
+
def build_children(self):
""" Construit la liste des enfants de self """
- children = []
- child = self.item.itemNode(self,self.item)
- children.append(child)
- child.state='expanded'
- return children
-
- def supprime(self):
- """ supprime tous les elements de l'arbre """
- raise RuntimeError, 'Not implemented'
- self.tree = None
- self.racine = None
- self.node_selected = None
- self.item = None
- self.scrolledcanvas = None
- for child in self.children:
- child.supprime()
- self.children=[]
-
- def showEvent(self, event):
- """ QT : pour afficher le 1er niveau d'arborescence de l''arbre"""
- self.children[0].select()
-
- def update(self):
- """ Update tous les elements de l'arbre """
- for child in self.children:
- child.update()
-
-# type de noeud
-COMMENT = "COMMENTAIRE"
-PARAMETERS = "PARAMETRE"
+ self.children = []
+ sublist = self.item._GetSubList()
+ for item in sublist :
+ nouvelItem=item.itemNode(self,item)
+ self.children.append(nouvelItem)
-
-class JDCNode(QListViewItem):
- def __init__( self, parent, item, after=None, bold=0):
- """
- Constructor
-
- @param parent parent Browser or BrowserNode
- @param text text to be displayed by this node (string or QString)
- @param after sibling this node is positioned after
- @param bold flag indicating a highlighted font
- """
- self.item = item
- self.parent = parent
- self.tree = self.parent.tree
- self.editor = self.parent.tree.editor
- self.bold = bold
-
- name = self.tree.trUtf8( str( item.GetLabelText()[0] ) )
- value = self.tree.trUtf8( str( item.GetText() ) )
-
- if after is None:
- QListViewItem.__init__(self,parent)
- self.setText(0, name )
- self.setText(1, value )
- else:
- QListViewItem.__init__(self,parent, after)
- self.setText(0, name )
- self.setText(1, value)
-
- p = utilIcons.getPixmap(item.GetIconName() + ".gif")
- self.setPixmap(0,p)
- self.setExpandable(item.IsExpandable())
-
- self.connect()
- self.init()
- self.createPopUpMenu()
-
-
- def paintCell(self, p, cg, column, width, alignment):
- """
- Overwritten class to set a different text color, if bold is true.
-
- @param p the painter (QPainter)
- @param cg the color group (QColorGroup)
- @param column the column (int)
- @param width width of the cell (int)
- @param alignment alignment of the cell (int)
- """
- _cg = QColorGroup(cg)
- c = _cg.text()
-
- if self.bold and column == 0:
- _cg.setColor(QColorGroup.Text, Qt.red)
-
- QListViewItem.paintCell(self, p, _cg, column, width, alignment)
-
- _cg.setColor(QColorGroup.Text, c)
-
-
+ def affichePanneau(self) :
+ panel=self.getPanel()
+ panel.show()
+
+
+
+# if after is None:
+# QListWidgetItem. _init__(self,QWParent)
+# self.setText(0, name )
+# self.setText(1, value )
+# else:
+# QListWidgetItem.__init__(self,QWParent, after)
+# self.setText(0, name )
+# self.setText(1, value)
+#
+# p = utilIcons.getPixmap(item.GetIconName() + ".gif")
+# self.setPixmap(0,p)
+# self.setExpandable(item.IsExpandable())
+#
+# self.init()
+# self.createPopUpMenu()
+#
+#
+# def paintCell(self, p, cg, column, width, alignment):
+# """
+# Overwritten class to set a different text color, if bold is true.
+#
+# @param p the painter (QPainter)
+# @param cg the color group (QColorGroup)
+# @param column the column (int)
+# @param width width of the cell (int)
+# @param alignment alignment of the cell (int)
+# """
+# _cg = QColorGroup(cg)
+# c = _cg.text()
+#
+# if self.bold and column == 0:
+# _cg.setColor(QColorGroup.Text, Qt.red)
+#
+# QListWidgetItem.paintCell(self, p, _cg, column, width, alignment)
+#
+# _cg.setColor(QColorGroup.Text, c)
+#
+#
def setOpen(self, o):
"""
Public slot to set/reset the open state.
self.takeItem(child)
del child
self.children = []
- QListViewItem.setOpen(self,o)
- self.tree.setSelected(self,o)
-
-
- #----------------------------------------------------------
- # interface a implementer par les noeuds derives (debut)
- #----------------------------------------------------------
- def getPanel(self):
- print self.__class__
- return None
-
- def createPopUpMenu(self):
- pass
-
- #----------------------------------------------------
- # interface a implementer par les noeuds derives (fin)
- #----------------------------------------------------
+ #QListWidgetItem.setOpen(self,o)
+ print self.tree.__class__
+ self.tree.setCurrentItem(self)
- def init(self): #CS_pbruno toclean
- self.state='collapsed'
- self.displayed = 0
- self.selected = 0
- self.x = self.y =None
- self.lasty = 0
- self.children = []
- self.id = []
- if self.parent is self.tree:
- self.racine=self
- else:
- self.racine = self.parent.racine
-
+#
+# #----------------------------------------------------------
+# # interface a implementer par les noeuds derives (debut)
+# #----------------------------------------------------------
+# def getPanel(self):
+# print self.__class__
+# return None
+#
+# def createPopUpMenu(self):
+# pass
+#
+# #----------------------------------------------------
+# # interface a implementer par les noeuds derives (fin)
+# #----------------------------------------------------
+#
+# def init(self): #CS_pbruno toclean
+# self.state='collapsed'
+# self.displayed = 0
+# self.selected = 0
+# self.x = self.y =None
+# self.lasty = 0
+# self.children = []
+# self.id = []
+# if self.QWParent is self.tree:
+# self.racine=self
+# else:
+# self.racine = self.QWParent.racine
+#
def connect(self):
self.item.connect("add",self.onAdd,())
self.item.connect("supp",self.onSupp,())
self.item.connect("valid",self.onValid,())
-
- def commentIt(self):
- """
- Cette methode a pour but de commentariser la commande pointee par self
- """
- # On traite par une exception le cas ou l'utilisateur final cherche a désactiver
- # (commentariser) un commentaire.
- try :
- pos=self.parent.children.index(self)
- commande_comment = self.item.get_objet_commentarise()
- # On signale au parent du panel (le JDCDisplay) une modification
- self.editor.init_modif()
- self.parent.children[pos].select()
- except Exception,e:
- traceback.print_exc()
- QMessageBox.critical( self.parent, "TOO BAD",str(e))
- return
-
- def unCommentIt(self):
- """
- Realise la decommentarisation de self
- """
- try :
- pos=self.parent.children.index(self)
- commande,nom = self.item.uncomment()
- self.editor.init_modif()
- self.parent.children[pos].select()
- except Exception,e:
- QMessageBox.critical( self.editor, "Erreur !",str(e))
- return
-
- def addComment( self, after=True ):
- """
- Ajoute un commentaire a l'interieur du JDC :
- """
- self.editor.init_modif()
- if after:
- pos = 'after'
- else:
- pos = 'before'
- return self.append_brother( COMMENT, pos )
-
- def addParameters( self, after=True ):
- """
- Ajoute un parametre a l'interieur du JDC :
- """
- self.editor.init_modif()
- if after:
- pos = 'after'
- else:
- pos = 'before'
- return self.append_brother( PARAMETERS, pos )
-
-
-
+#
+# def commentIt(self):
+# """
+# Cette methode a pour but de commentariser la commande pointee par self
+# """
+# # On traite par une exception le cas ou l'utilisateur final cherche a désactiver
+# # (commentariser) un commentaire.
+# try :
+# pos=self.QWParent.children.index(self)
+# commande_comment = self.item.get_objet_commentarise()
+# # On signale au QWParent du panel (le JDCDisplay) une modification
+# self.QWParent.init_modif()
+# self.QWParent.children[pos].select()
+# except Exception,e:
+# traceback.print_exc()
+# QMessageBox.critical( self.QWParent, "TOO BAD",str(e))
+# return
+#
+# def unCommentIt(self):
+# """
+# Realise la decommentarisation de self
+# """
+# try :
+# pos=self.QWParent.children.index(self)
+# commande,nom = self.item.uncomment()
+# self.QWParent.init_modif()
+# self.QWParent.children[pos].select()
+# except Exception,e:
+# QMessageBox.critical( self.QWParent, "Erreur !",str(e))
+# return
+#
+# def addComment( self, after=True ):
+# """
+# Ajoute un commentaire a l'interieur du JDC :
+# """
+# self.QWParent.init_modif()
+# if after:
+# pos = 'after'
+# else:
+# pos = 'before'
+# return self.append_brother( COMMENT, pos )
+#
+# def addParameters( self, after=True ):
+# """
+# Ajoute un parametre a l'interieur du JDC :
+# """
+# self.QWParent.init_modif()
+# if after:
+# pos = 'after'
+# else:
+# pos = 'before'
+# return self.append_brother( PARAMETERS, pos )
+#
+#
+#
def select( self ):
"""
Rend le noeud courant (self) selectionne et deselectionne
tous les autres
"""
self.setOpen( True )
-
- #------------------------------------------------------------------
- # Methodes de creation et destruction de noeuds
- # Certaines de ces methodes peuvent etre appelees depuis l'externe
- #------------------------------------------------------------------
- def append_brother(self,name,pos='after',retour='non'):
- """
- Permet d'ajouter un objet frere a l'objet associe au noeud self
- par defaut on l'ajoute immediatement apres
- Methode externe
- """
- # on veut ajouter le frere de nom name directement avant ou apres self
-## print "*********** append_brother ", self.item.GetLabelText()
- index = self.parent.children.index(self)
- if pos == 'before':
- index = index
- elif pos == 'after':
- index = index +1
- else:
- print str(pos)," n'est pas un index valide pour append_brother"
- return 0
- return self.parent.append_child(name,pos=index)
-
+#
+# #------------------------------------------------------------------
+# # Methodes de creation et destruction de noeuds
+# # Certaines de ces methodes peuvent etre appelees depuis l'externe
+# #------------------------------------------------------------------
+# def append_brother(self,name,pos='after',retour='non'):
+# """
+# Permet d'ajouter un objet frere a l'objet associe au noeud self
+# par defaut on l'ajoute immediatement apres
+# Methode externe
+# """
+# # on veut ajouter le frere de nom name directement avant ou apres self
+### print "*********** append_brother ", self.item.GetLabelText()
+# index = self.QWParent.children.index(self)
+# if pos == 'before':
+# index = index
+# elif pos == 'after':
+# index = index +1
+# else:
+# print str(pos)," n'est pas un index valide pour append_brother"
+# return 0
+# return self.QWParent.append_child(name,pos=index)
+#
def append_child(self,name,pos=None,verif='oui',retour='non'):
"""
Methode pour ajouter un objet fils a l'objet associe au noeud self.
ou en position intermediaire.
Si pos vaut None, on le place a la position du catalogue.
"""
-## print "************** append_child ",self.item.GetLabelText()
+### print "************** append_child ",self.item.GetLabelText()
if pos == 'first':
index = 0
elif pos == 'last':
child.select()
return child
- def delete(self):
- """
- Methode externe pour la destruction de l'objet associe au noeud
- La mise a jour des noeuds est faite par onSupp sur notification
- """
- self.editor.init_modif()
- index = self.parent.children.index(self) - 1
- if index < 0 : index =0
-
- parent=self.parent
- ret=parent.item.suppitem(self.item)
- if ret == 0:return
-
- brothers=parent.children
- if brothers:
- toselect=brothers[index]
- else:
- toselect=parent
- toselect.select()
-
- #------------------------------------------------------------------
+# def delete(self):
+# """
+# Methode externe pour la destruction de l'objet associe au noeud
+# La mise a jour des noeuds est faite par onSupp sur notification
+# """
+# self.QWParent.init_modif()
+# index = self.QWParent.children.index(self) - 1
+# if index < 0 : index =0
+#
+# QWParent=self.QWParent
+# ret=QWParent.item.suppitem(self.item)
+# if ret == 0:return
+#
+# brothers=QWParent.children
+# if brothers:
+# toselect=brothers[index]
+# else:
+# toselect=QWParent
+# toselect.select()
+#
+# #------------------------------------------------------------------
def onValid(self):
self.update_node_valid()
self.update_node_label()
Elle appelle isvalid
"""
#print 'NODE update_node_valid', self.item.GetLabelText()
- p = utilIcons.getPixmap(self.item.GetIconName() + ".gif")
- self.setPixmap(0,p)
+ monIcone = QIcon("icons/" +self.item.GetIconName() + ".gif")
+ self.setIcon(0,monIcone)
- def update_node_label(self): #CS_pbruno todo
+ def update_node_label(self):
""" Met a jour le label du noeud """
#print "NODE update_node_label", self.item.GetLabelText()
labeltext,fonte,couleur = self.item.GetLabelText()
value = self.item.GetText()
self.setText(1, value)
- def update_nodes(self):
- #print "NODE update_nodes ", self.item.GetLabelText()
- self.setOpen( False )
- self.setOpen( True )
- #self.select()
-
+# def update_nodes(self):
+# #print "NODE update_nodes ", self.item.GetLabelText()
+# self.setOpen( False )
+# self.setOpen( True )
+# #self.select()
+#
def update_texte(self):
""" Met a jour les noms des SD et valeurs des mots-cles """
#print "NODE update_texte", self.item.GetLabelText()
self.update_node_texte()
- if self.state == 'expanded' :
+ if self.isExpanded() :
for child in self.children:
- if child.displayed != 0 : child.update_texte()
+ if child.isHidden() == false : child.update_texte()
def update_valid(self) :
"""Cette methode a pour but de mettre a jour la validite du noeud
- et de propager la demande de mise a jour a son parent
+ et de propager la demande de mise a jour a son Parent
"""
- #print "NODE update_valid", self.item.GetLabelText()
- #PN a reverifier SVP parent
+ print "NODE update_valid", self.item.GetLabelText()
self.update_node_valid()
try :
- self.parent.update_valid()
+ self.treeParent.update_valid()
except:
pass
-
- def supprime(self):
- #print "NODE supprime",self.item.GetLabelText()
- self.efface_node()
- self.racine = None
- if not self.children : return
- for child in self.children:
- child.supprime()
- self.children=None
-
- def build_children(self):
- """ Construit la liste des enfants de self """
- #print "NODE : Construit la liste des enfants de", self.item.GetLabelText()
- self.children = []
- sublist = self.item._GetSubList()
- if sublist :
- last = None
- for item in sublist :
- child = item.itemNode(self, item, last)
- last = child
- self.children.append(child)
-
-
- def doPasteCommande(self,objet_a_copier):
- """
- Réalise la copie de l'objet passé en argument qui est nécessairement
- une commande
- """
- parent=self.parent
- #child = parent.item.append_child(objet_a_copier,self.item.getObject())
- child = self.append_brother(objet_a_copier,retour='oui')
- #if child is None:return 0
- return child
-
- def doPasteMCF(self,objet_a_copier):
- """
- Réalise la copie de l'objet passé en argument (objet_a_copier)
- Il s'agit forcément d'un mot clé facteur
- """
- child = self.append_child(objet_a_copier,pos='first',retour='oui')
- return child
-
-
-
-
-if __name__=='__main__':
- from qt import *
-
-
- sys.path[:0]=['..','../Aster','../Aster/Cata' ]
-
- app = QApplication(sys.argv)
-
- fn = 'azAster.comm'
- jdcName = os.path.basename(fn)
- f=open(fn,'r')
- text=f.read()
- f.close()
- print 'text',text
-
- from autre_analyse_cata import analyse_catalogue
- from Cata import cataSTA8
- cata=cataSTA8
- fic_cata="../../Aster/Cata/cataSTA8/cata.py"
- cata_ordonne ,list_simp_reel = analyse_catalogue(cata)
-
-
-
- j=cata.JdC( procedure=text, cata=cata, nom=jdcName,
- cata_ord_dico=cata_ordonne )
-
- j.compile()
- if not j.cr.estvide():
- print j.cr
- sys.exit()
-
- j.exec_compile()
- if not j.cr.estvide():
- print j.cr
- sys.exit()
-
- from Editeur import comploader
- comploader.charger_composants(QT)
- from Editeur import Objecttreeitem
- jdc_item=Objecttreeitem.make_objecttreeitem( app, "nom", j)
-
- if jdc_item:
- tree = JDCTree( jdc_item, None )
-
- app.setMainWidget(tree)
- app.connect(app, SIGNAL("lastWindowClosed()"), app, SLOT("quit()"))
- tree.show()
-
- res = app.exec_loop()
- sys.exit(res)
-
-
+
+# def supprime(self):
+# #print "NODE supprime",self.item.GetLabelText()
+# self.efface_node()
+# self.racine = None
+# if not self.children : return
+# for child in self.children:
+# child.supprime()
+# self.children=None
+#
+# def build_children(self):
+# """ Construit la liste des enfants de self """
+# #print "NODE : Construit la liste des enfants de", self.item.GetLabelText()
+# self.children = []
+# sublist = self.item._GetSubList()
+# if sublist :
+# last = None
+# for item in sublist :
+# child = item.itemNode(self, item, last)
+# last = child
+# self.children.append(child)
+#
+#
+# def doPasteCommande(self,objet_a_copier):
+# """
+# Réalise la copie de l'objet passé en argument qui est nécessairement
+# une commande
+# """
+# QWParent=self.QWParent
+# #child = QWParent.item.append_child(objet_a_copier,self.item.getObject())
+# child = self.append_brother(objet_a_copier,retour='oui')
+# #if child is None:return 0
+# return child
+#
+# def doPasteMCF(self,objet_a_copier):
+# """
+# Réalise la copie de l'objet passé en argument (objet_a_copier)
+# Il s'agit forcément d'un mot clé facteur
+# """
+# child = self.append_child(objet_a_copier,pos='first',retour='oui')
+# return child
+#
+#
+#
+#
+#if __name__=='__main__':
+# from qt import *
+#
+#
+# sys.path[:0]=['..','../Aster','../Aster/Cata' ]
+#
+# app = QApplication(sys.argv)
+#
+# fn = 'azAster.comm'
+# jdcName = os.path.basename(fn)
+# f=open(fn,'r')
+# text=f.read()
+# f.close()
+# print 'text',text
+#
+# from autre_analyse_cata import analyse_catalogue
+# from Cata import cataSTA8
+# cata=cataSTA8
+# fic_cata="../../Aster/Cata/cataSTA8/cata.py"
+# cata_ordonne ,list_simp_reel = analyse_catalogue(cata)
+#
+#
+#
+# j=cata.JdC( procedure=text, cata=cata, nom=jdcName,
+# cata_ord_dico=cata_ordonne )
+#
+# j.compile()
+# if not j.cr.estvide():
+# print j.cr
+# sys.exit()
+#
+# j.exec_compile()
+# if not j.cr.estvide():
+# print j.cr
+# sys.exit()
+#
+# from Editeur import comploader
+# comploader.charger_composants(QT)
+# from Editeur import Objecttreeitem
+# jdc_item=Objecttreeitem.make_objecttreeitem( app, "nom", j)
+#
+# if jdc_item:
+# tree = JDCTree( jdc_item, None )
+#
+# app.setMainWidget(tree)
+# app.connect(app, SIGNAL("lastWindowClosed()"), app, SLOT("quit()"))
+# tree.show()
+#
+# res = app.exec_loop()
+# sys.exit(res)
+#
+#
# ======================================================================
import string
-from qt import *
from Editeur import Objecttreeitem
import browser
#
# ======================================================================
-from qt import *
-from Editeur import Objecttreeitem
+from PyQt4 import *
+from PyQt4.QtGui import *
+from PyQt4.QtCore import *
import browser
+from Editeur import Objecttreeitem
+
class Node(browser.JDCNode):
def getPanel(self):
"""
import string
-from qt import *
import compooper
import browser
import typeNode
# -*- coding: utf-8 -*-
-from qt import *
from Editeur import Objecttreeitem
import browser
"""
"""
from monRacinePanel import MonRacinePanel
+ #return MonRacinePanel(self,parent=self.appliEficas.centralWidget())
+ #print self.treeParent.editor
+ print dir(self)
+
return MonRacinePanel(self,parent=self.editor)
def doPasteCommande(self,objet_a_copier):
import os,sys,string
import types
import traceback
-from qt import *
# Modules Eficas
from Editeur import Objecttreeitem
import types
import traceback
-from qt import *
-
import compofact
import browser
from Editeur import Objecttreeitem
# -*- coding: utf-8 -*-
-from qt import *
from Editeur import Objecttreeitem
from Extensions import commentaire
import browser
import browser
-from qt import *
class Node(browser.JDCNode): pass
-## def getPanel(self):
-## """
-## """
-## return NUPLETPanel( self, self.editor )
class NUPLETTreeItem(Objecttreeitem.ObjectTreeItem):
-## panel=NUPLETPanel
itemNode=Node
def IsExpandable(self):
# -*- coding: utf-8 -*-
-
import traceback
import string
+from PyQt4 import *
+from PyQt4.QtGui import *
+from PyQt4.QtCore import *
-from qt import *
from Editeur import Objecttreeitem
import browser
# import modules Python
import string
-from qt import *
# import modules EFICAS
from Editeur import Objecttreeitem
import browser
import typeNode
-from qt import *
class Node(browser.JDCNode,typeNode.PopUpMenuNode):
def getPanel(self):
from copy import copy,deepcopy
import traceback
-from qt import *
# Modules Eficas
-#from Editeur import Objecttreeitem
-import Objecttreeitem
+from Editeur import Objecttreeitem
import browser
from Noyau.N_CR import justify_text
from Editeur import comploader
from Editeur import Objecttreeitem
#import panelsQT
-#import browser
+import browser
import readercata
+import qtCommun
import prefs
-#import qtCommun
VERSION_EFICAS = "EFICAS v1.14"
Editeur de jdc
"""
- def __init__ (self,fileName = None, jdc = None, QWParent=None, units = None, include=0 ,appli=None):
+ def __init__ (self,fichier = None, jdc = None, QWParent=None, units = None, include=0 ,appli=None):
#----------------------------------------------------------------------------------------------#
print "debut JDCEditor __init__"
QWidget.__init__(self, QWParent)
self.appliEficas = appli
- self.fileName = fileName
- self.jdc = jdc
- self.QWParent = QWParent
+ self.fichier = fichier
+ self.jdc = jdc
+ self.QWParent = QWParent
self.test=0
VERSION_CODE = session.d_env.cata
self.CONFIGURATION = self.appliEficas.CONFIGURATION
self.CONFIGStyle = self.appliEficas.CONFIGStyle
- #self.sb = None
- #if hasattr(self.appliEficas,"statusBar"):
- # self.sb = self.appliEficas.statusBar()
+ self.sb = None
+ if hasattr(self.appliEficas,"statusBar"):
+ self.sb = self.appliEficas.statusBar()
self.fileInfo = None
self.lastModified = 0
- self.fichier=None
self.panel_courant=None
self.node_selected = None
self.modified = False
jdc_item = None
nouveau=0
- if self.fileName is not None: # fichier jdc fourni
- self.fileInfo = QFileInfo(self.fileName)
+ if self.fichier is not None: # fichier jdc fourni
+ self.fileInfo = QFileInfo(self.fichier)
self.fileInfo.setCaching(0)
#if editor is None:
- self.jdc = self.readFile(self.fileName)
+ self.jdc = self.readFile(self.fichier)
+ print self.jdc
if units is not None:
self.jdc.recorded_units=units
self.jdc.old_recorded_units=units
self.affiche_infos("Erreur fatale au chargement de %s" %fn)
QMessageBox.critical( self, "Erreur fatale au chargement d'un fichier", txt_exception)
else:
-# comploader.charger_composants("QT")
+ comploader.charger_composants("QT")
jdc_item=Objecttreeitem.make_objecttreeitem( self, "nom", self.jdc )
if (not self.jdc.isvalid()) and (not nouveau) :
#
# #------- config widget --------------
#
-# if jdc_item:
-# self.tree = browser.JDCTree( jdc_item, self )
+ if jdc_item:
+ self.tree = browser.JDCTree( jdc_item, self )
# self.connect(self.tree,SIGNAL('selectionChanged(QListViewItem *)'),self.updatePanel)
#
# sh = self.sizeHint()
# signal if there was an attribute change.
# """
#
-# if self.fileName is None:
+# if self.fichier is None:
# return
-# readOnly = not QFileInfo(self.fileName).isWritable() and 1 or 0
+# readOnly = not QFileInfo(self.fichier).isWritable() and 1 or 0
# if not bForce and (readOnly == self.isReadOnly):
# return
-# cap = self.fileName
+# cap = self.fichier
# if readOnly:
# cap = "%s (ro)" % unicode(cap)
# self.isReadOnly = readOnly
# return ulfile, jdcText
#
#
-# #-----------------------#
-# def readFile(self, fn):
-# #-----------------------#
-# """
-# Public slot to read the text from a file.
-#
-# @param fn filename to read from (string or QString)
-# """
-# fn = unicode(fn)
-#
+ #-----------------------#
+ def readFile(self, fn):
+ #-----------------------#
+ """
+ Public slot to read the text from a file.
+
+ @param fn filename to read from (string or QString)
+ """
+ fn = unicode(fn)
# qApp.setOverrideCursor(Qt.WaitCursor)
-#
-# # ------------------------------------------------------------------------------------
-# # charge le JDC
-# # ------------------------------------------------------------------------------------
-#
-# jdcName=os.path.basename(fn)
-# # Il faut convertir le contenu du fichier en fonction du format
-# if convert.plugins.has_key( self.format_fichier ):
-# # Le convertisseur existe on l'utilise
-# appli = self # CS_pbruno compatiblity parseur_python: self.appli.liste_simp_reel, self.appli.dict_reels
-# p=convert.plugins[self.format_fichier]()
-# p.readfile(fn)
-# text=p.convert('exec',appli)
-# if not p.cr.estvide():
-# self.affiche_infos("Erreur à la conversion")
-#
-# CONTEXT.unset_current_step()
-# ## os.chdir(self.initialdir)
-# jdc=self.readercata.cata[0].JdC(procedure=text,
-# appli=self,
-# cata=self.readercata.cata,
-# cata_ord_dico=self.readercata.cata_ordonne_dico,
-# nom=jdcName,
-# rep_mat=self.CONFIGURATION.rep_mat
-# )
-# # ----------------------------------------------------
-# # charge le JDC fin
-# # ----------------------------------------------------
-# self.modified = False
-#
+
+ # ------------------------------------------------------------------------------------
+ # charge le JDC
+ # ------------------------------------------------------------------------------------
+
+ jdcName=os.path.basename(fn)
+ # Il faut convertir le contenu du fichier en fonction du format
+ if convert.plugins.has_key( self.format_fichier ):
+ # Le convertisseur existe on l'utilise
+ appli = self
+# CS_pbruno compatiblity parseur_python: self.appli.liste_simp_reel, self.appli.dict_reels
+ p=convert.plugins[self.format_fichier]()
+ p.readfile(fn)
+ text=p.convert('exec',appli)
+ if not p.cr.estvide():
+ self.affiche_infos("Erreur à la conversion")
+
+ CONTEXT.unset_current_step()
+ ## os.chdir(self.initialdir)
+ jdc=self.readercata.cata[0].JdC(procedure=text,
+ appli=self,
+ cata=self.readercata.cata,
+ cata_ord_dico=self.readercata.cata_ordonne_dico,
+ nom=jdcName,
+ rep_mat=self.CONFIGURATION.rep_mat
+ )
+ # ----------------------------------------------------
+ # charge le JDC fin
+ # ----------------------------------------------------
+ self.modified = False
+
# qApp.restoreOverrideCursor()
-# if self.fileInfo!= None :
-# self.lastModified = self.fileInfo.lastModified()
-# else :
-# self.lastModified = 1
-# return jdc
-#
-# #----------------------------------------------#
-# def _viewText(self, txt, caption = "FILE_VIEWER"):
-# #----------------------------------------------#
-# w = qtCommun.ViewText( self.QWParent )
-# w.setCaption( caption )
-# w.setText(txt)
-# w.show()
-#
-# #-----------------------#
-# def viewJdcSource(self):
-# #-----------------------#
-# format = self.format_fichier
-# f=open(self.fileName,'r')
-# texteSource=f.read()
-# f.close()
-# self._viewText(texteSource, "JDC_SOURCE")
-#
-# #-----------------------#
-# def viewJdcPy(self):
-# #-----------------------#
-# format = self.format_fichier
-# strSource = str( self.get_text_JDC(format) )
-# self._viewText(strSource, "JDC_RESULTAT")
-#
-# #-----------------------#
-# def viewJdcRapport(self):
-# #-----------------------#
-# strRapport = str( self.jdc.report() )
-# self._viewText(strRapport, "JDC_RAPPORT")
-#
+ if self.fileInfo!= None :
+ self.lastModified = self.fileInfo.lastModified()
+ else :
+ self.lastModified = 1
+ return jdc
+
+ #----------------------------------------------#
+ def _viewText(self, txt, caption = "FILE_VIEWER"):
+ #----------------------------------------------#
+ w = qtCommun.ViewText( self.QWParent )
+ w.setWindowTitle( caption )
+ w.setText(txt)
+ w.show()
+
+ #-----------------------#
+ def viewJdcSource(self):
+ #-----------------------#
+ format = self.format_fichier
+ f=open(self.fichier,'r')
+ texteSource=f.read()
+ f.close()
+ self._viewText(texteSource, "JDC_SOURCE")
+
+ #-----------------------#
+ def viewJdcPy(self):
+ #-----------------------#
+ format = self.format_fichier
+ strSource = str( self.get_text_JDC(format) )
+ self._viewText(strSource, "JDC_RESULTAT")
+
+ #-----------------------#
+ def viewJdcRapport(self):
+ #-----------------------#
+ strRapport = str( self.jdc.report() )
+ self._viewText(strRapport, "JDC_RAPPORT")
+
# #-----------------------#
# def handleRenamed(self, fn):
# #-----------------------#
#
# @param fn filename to be set for the editor (QString or string).
# """
-# self.fileName = unicode(fn)
-# self.setCaption(self.fileName)
+# self.fichier = unicode(fn)
+# self.setCaption(self.fichier)
#
# if self.fileInfo is None:
-# self.fileInfo = QFileInfo(self.fileName)
+# self.fileInfo = QFileInfo(self.fichier)
# self.fileInfo.setCaching(0)
#
# self.lastModified = self.fileInfo.lastModified()
-# self.vm.setEditorName(self, self.fileName)
+# self.vm.setEditorName(self, self.fichier)
# self._updateReadOnly(1)
#
# #-----------------------#
# """
# Private slot to create a new view to an open document.
# """
-# self.vm.newEditorView(self.fileName, self)#, self.isPythonFile)
+# self.vm.newEditorView(self.fichier, self)#, self.isPythonFile)
#
# #------------------------------------#
# def handleModificationChanged(self, m):
self.close()
#
#
-# #------------------------------#
-# def affiche_infos(self,message):
-# #------------------------------#
-# if self.sb:
-# self.sb.showMessage(message)#,2000)
-#
+ #------------------------------#
+ def affiche_infos(self,message):
+ #------------------------------#
+ if self.sb:
+ self.sb.showMessage(message)#,2000)
+
# #------------------------------#
# def updatePanel(self, jdcNode):
# #------------------------------#
# self.panel.show()
#
#
-# #-------------------#
-# def init_modif(self):
-# #-------------------#
-# """
-# Met l'attribut modified a 'o' : utilise par Eficas pour savoir
-# si un JDC doit etre sauvegarde avant destruction ou non
-# """
-# self.modified = True
-# self.emit(PYSIGNAL('modificationStatusChanged'), (True, self))
+ #-------------------#
+ def init_modif(self):
+ #-------------------#
+ """
+ Met l'attribut modified a 'o' : utilise par Eficas pour savoir
+ si un JDC doit etre sauvegarde avant destruction ou non
+ """
+ self.modified = True
+ #self.emit(PYSIGNAL('modificationStatusChanged'), (True, self))
+ self.emit(SIGNAL('modificationStatusChanged'), (True, self))
#
# #-------------------#
# def stop_modif(self):
#---------------------#
def getFileName(self):
#---------------------#
- return self.fileName
+ return self.fichier
#
# #---------------------------#
# def writeFile(self, fn, txt = None):
# self.writeFile(fileSTD,self.jdc_openturn_std)
#
#
-# #-----------------------------#
-# def get_text_JDC(self,format):
-# #-----------------------------#
-# if generator.plugins.has_key(format):
-# # Le generateur existe on l'utilise
-# g=generator.plugins[format]()
-# jdc_formate=g.gener(self.jdc,format='beautifie')
-# if format == "openturns" :
-# self.jdc_openturn_xml=g.getOpenturnsXML()
-# self.jdc_openturn_std=g.getOpenturnsSTD()
-# if not g.cr.estvide():
-# self.affiche_infos("Erreur à la generation")
-# QMessageBox.critical( self, "Erreur a la generation","EFICAS ne sait pas convertir ce JDC")
-# return
-# else:
-# return jdc_formate
-# else:
-# # Il n'existe pas c'est une erreur
-# self.affiche_infos("Format %s non reconnu" % format)
-# QMessageBox.critical( self, "Format %s non reconnu" % format,"EFICAS ne sait pas convertir le JDC en format %s "% format)
-# return
+ #-----------------------------#
+ def get_text_JDC(self,format):
+ #-----------------------------#
+ if generator.plugins.has_key(format):
+ # Le generateur existe on l'utilise
+ g=generator.plugins[format]()
+ jdc_formate=g.gener(self.jdc,format='beautifie')
+ if format == "openturns" :
+ self.jdc_openturn_xml=g.getOpenturnsXML()
+ self.jdc_openturn_std=g.getOpenturnsSTD()
+ if not g.cr.estvide():
+ self.affiche_infos("Erreur à la generation")
+ QMessageBox.critical( self, "Erreur a la generation","EFICAS ne sait pas convertir ce JDC")
+ return
+ else:
+ return jdc_formate
+ else:
+ # Il n'existe pas c'est une erreur
+ self.affiche_infos("Format %s non reconnu" % format)
+ QMessageBox.critical( self, "Format %s non reconnu" % format,"EFICAS ne sait pas convertir le JDC en format %s "% format)
+ return
#
#
# #-------------------------------------------#
# return (0, None) # do nothing if text wasn't changed
#
# newName = None
-# if saveas or self.fileName is None:
-# if path is None and self.fileName is not None:
-# path = os.path.dirname(unicode(self.fileName))
+# if saveas or self.fichier is None:
+# if path is None and self.fichier is not None:
+# path = os.path.dirname(unicode(self.fichier))
# selectedFilter = QString('')
# fn = QFileDialog.getSaveFileName(path,
# self.trUtf8("JDC (*.comm);;"
# else:
# return (0, None)
# else:
-# fn = self.fileName
+# fn = self.fichier
#
# if self.writeFile(fn):
-# self.fileName = fn
+# self.fichier = fn
# self.modified = False
-# self.setCaption(self.fileName)
+# self.setCaption(self.fichier)
# if self.fileInfo is None or saveas:
-# self.fileInfo = QFileInfo(self.fileName)
+# self.fileInfo = QFileInfo(self.fichier)
# self.fileInfo.setCaching(0)
-# self.emit(PYSIGNAL('editorRenamed'), (self.fileName,))
+# self.emit(PYSIGNAL('editorRenamed'), (self.fichier,))
# self.lastModified = self.fileInfo.lastModified()
# if newName is not None:
# self.vm.addToRecentList(newName)
-# self.emit(PYSIGNAL('editorSaved'), (self.fileName,))
+# self.emit(PYSIGNAL('editorSaved'), (self.fichier,))
# self.stop_modif()
# if self.code == "OPENTURNS" :
# self.writeFilesOpenturns(fn)
# if self.salome :
-# self.QWParent.appli.addJdcInSalome( self.fileName)
+# self.QWParent.appli.addJdcInSalome( self.fichier)
# if self.code == 'ASTER':
# self.QWParent.appli.createOrUpdateMesh(self)
# #PN ; TODO
#
#
-# return (1, self.fileName)
+# return (1, self.fichier)
# else:
# return (0, None)
#
self.listeCata=listeCata
self.readercata=readercata
for cata in self.listeCata :
- self.CBChoixCata.addItem(cata)
+ self.CBChoixCata.insertItem(0,cata)
lab = QString(repr(len(listeCata)))
lab += QString(" versions du catalogue sont disponibles")
self.TLNb.setText(lab)
+ self.CBChoixCata.setCurrentIndex(0)
self.readercata.version_cata=self.CBChoixCata.currentText()
- def on_buttonCancel(self):
- QTPanel.BSupPressed(self)
+ def on_buttonCancel_clicked(self):
+ QDialog.reject(self)
def on_CBChoixCata_activated(self):
self.readercata.version_cata=self.CBChoixCata.currentText()
def on_buttonOk_clicked(self):
QDialog.accept(self)
- def BCancelPressed(self):
- QDialog.reject(self)
# Modules Python
# Modules Eficas
-from desCommande import DComm
+from desCommande import Ui_DComm
from qtCommun import QTPanel
from qtCommun import QTPanelTBW1
from qtCommun import QTPanelTBW2
from qtCommun import QTPanelTBW3
from PyQt4 import *
from PyQt4.QtGui import *
+from PyQt4.QtCore import *
+
+class DComm(Ui_DComm,QDialog):
+ def __init__(self,parent ,modal ) :
+ QDialog.__init__(self,parent)
+ self.setupUi(self)
+ self.setModal(modal)
# Import des panels
discrètes
"""
def __init__(self,node, parent = None,name = None,fl = 0):
- DComm.__init__(self,parent,name,fl)
+ DComm.__init__(self,parent,fl)
QTPanel.__init__(self,node,parent)
QTPanelTBW1.__init__(self,node,parent)
QTPanelTBW2.__init__(self,node,parent)
QTPanelTBW3.__init__(self,node,parent)
+ self.connecterSignaux()
- def on_BSup_pressed(self):
- QTPanel.BSupPressed(self)
+ def connecterSignaux(self):
+ self.connect(self.LBNouvCommande,SIGNAL("doubleClicked(QListBoxItem*)"),self.LBNouvCommandeClicked)
+ self.connect(self.LEFiltre,SIGNAL("textChanged(const QString&)"),self.LEFiltreTextChanged)
+ self.connect(self.LEFiltre,SIGNAL("returnPressed()"),self.LEfiltreReturnPressed)
+ self.connect(self.bSup,SIGNAL("pressed()"),self.BSupPressed)
+ self.connect(self.bOk,SIGNAL("clicked()"),self.BOkPressed)
+ self.connect(self.LENomConcept,SIGNAL("returnPressed()"),self.LENomConceptReturnPressed)
+ self.connect(self.RBGroupe,SIGNAL("clicked()"),self.BuildTabCommand)
+ self.connect(self.RBalpha,SIGNAL("clicked()"),self.BuildTabCommand)
+ self.connect(self.bHelp,SIGNAL("clicked()"),self.ViewDoc)
+ self.connect(self.BNext,SIGNAL("pressed()"),self.BNextPressed)
- def on_BOk_clicked(self):
- QTPanel.BOkPressed(self)
- def on_bHelp_clicked(self):
+ def ViewDoc(self):
QTPanel.ViewDoc(self)
- def on_BNext_pressed(self):
- QTPanelTBW2.BNextPressed(self)
+ def BSupPressed(self):
+ QTPanel.BSupPressed(self)
- def on_RBGroupe_clicked(self):
- QTPanelTBW2.BuildLBNouvCommande(self)
+ def BOkPressed(self):
+ QTPanel.BOkPressed(self)
+
+ def BNextPressed(self):
+ QTPanelTBW2.BNextPressed(self)
- def on_RBalpha_clicked(self):
+ def BuildTabCommand(self):
QTPanelTBW2.BuildLBNouvCommande(self)
- def on_LEFiltre_textChanged(self,string):
+ def LEFiltreTextChanged(self):
QTPanelTBW2.LEFiltreTextChanged(self)
- def on_LEfiltre_returnPressed(self):
+ def LEfiltreReturnPressed(self):
QTPanelTBW2.LEfiltreReturnPressed(self)
- def on_LBNouvCommande_doubleClicked(self,QLBoxItem):
+ def LBNouvCommandeClicked(self):
QTPanelTBW2.LBNouvCommandeClicked(self)
- def on_LENomConcept_returnPressed(self):
+ def LENomConceptReturnPressed(self):
QTPanelTBW3.LENomConceptReturnPressed(self)
+
+
# Modules Eficas
from PyQt4 import *
-from PyQt4.QtGui import *
+from PyQt4.QtGui import *
+from PyQt4.QtCore import *
-from desCommentaire import DComment
+from desCommentaire import Ui_DComment
from qtCommun import QTPanel
from qtCommun import QTPanelTBW2
-import prefs
+class DComment(Ui_DComment,QDialog):
+ def __init__(self,parent ,modal ) :
+ QDialog.__init__(self,parent)
+ self.setupUi(self)
+ self.setModal(modal)
+
# Import des panels
discrètes
"""
def __init__(self,node, parent = None,name = None,fl = 0):
- DComment.__init__(self,parent,name,fl)
+ DComment.__init__(self,parent,fl)
QTPanel.__init__(self,node,parent)
QTPanelTBW2.__init__(self,node,parent)
self.RemplitPanel()
+ self.connecterSignaux()
+
+ def connecterSignaux(self) :
+ self.connect(self.LBNouvCommande,SIGNAL("doubleClicked(QListBoxItem*)"),self.LBNouvCommandeClicked)
+ self.connect(self.LEFiltre,SIGNAL("textChanged(const QString&)"),self.LEFiltreTextChanged)
+ self.connect(self.LEFiltre,SIGNAL("returnPressed()"),self.LEfiltreReturnPressed)
+ self.connect(self.bSup,SIGNAL("pressed()"),self.BSupPressed)
+ self.connect(self.bOk,SIGNAL("clicked()"),self.BOkPressed)
+ self.connect(self.RBGroupe,SIGNAL("clicked()"),self.BuildTabCommand)
+ self.connect(self.RBalpha,SIGNAL("clicked()"),self.BuildTabCommand)
+ self.connect(self.bHelp,SIGNAL("clicked()"),self.ViewDoc)
+ self.connect(self.BNext,SIGNAL("pressed()"),self.BNextPressed)
+ self.connect(self.textCommentaire,SIGNAL("textChanged()"),self.TexteCommentaireEntre)
def RemplitPanel(self):
texte=self.node.item.get_valeur()
self.textCommentaire.setText(texte)
def TexteCommentaireEntre(self):
- texte=self.textCommentaire.text().latin1()
+ texte=str(self.textCommentaire.toPlainText())
self.editor.init_modif()
self.node.item.set_valeur(texte)
self.node.onValid()
# Modules Python
# Modules Eficas
-from desFormule import DFormule
+from desFormule import Ui_DFormule
from qtCommun import QTPanel
from qtCommun import QTPanelTBW2
-from qt import *
+
+from PyQt4.QtGui import *
+from PyQt4.QtCore import *
+
+
+class DFormule(Ui_DFormule,QDialog):
+ def __init__(self,parent ,modal ) :
+ QDialog.__init__(self,parent)
+ self.setupUi(self)
+ self.setModal(modal)
# Import des panels
discrètes
"""
def __init__(self,node, parent = None,name = None,fl = 0):
- DFormule.__init__(self,parent,name,fl)
+ DFormule.__init__(self,parent,fl)
QTPanel.__init__(self,node,parent)
QTPanelTBW2.__init__(self,node,parent)
+ self.connecterSignaux()
self.LENomFormule.setText(node.item.get_nom())
self.LECorpsFormule.setText(node.item.get_corps())
texte_args=""
texte_args=texte_args + i
self.LENomsArgs.setText(texte_args)
-
self.parent=parent
+ def connecterSignaux(self):
+ self.connect(self.LBNouvCommande,SIGNAL("doubleClicked(QListBoxItem*)"),self.LBNouvCommandeClicked)
+ self.connect(self.LEFiltre,SIGNAL("textChanged(const QString&)"),self.LEFiltreTextChanged)
+ self.connect(self.LEFiltre,SIGNAL("returnPressed()"),self.LEfiltreReturnPressed)
+ self.connect(self.bSup,SIGNAL("pressed()"),self.BSupPressed)
+ self.connect(self.bOk,SIGNAL("clicked()"),self.BOkPressed)
+ self.connect(self.RBalpha,SIGNAL("clicked()"),self.BuildTabCommand)
+ self.connect(self.RBGroupe,SIGNAL("clicked()"),self.BuildTabCommand)
+ self.connect(self.BNext,SIGNAL("clicked()"),self.BNextPressed)
+ self.connect(self.LENomFormule,SIGNAL("returnPressed()"),self.NomFormuleSaisi)
+ self.connect(self.LENomsArgs,SIGNAL("returnPressed()"),self.argsSaisis)
+ self.connect(self.LECorpsFormule,SIGNAL("returnPressed()"),self.FormuleSaisie)
+ self.connect(self.bHelp,SIGNAL("clicked()"),self.ViewDoc)
+
def BSupPressed(self):
QTPanel.BSupPressed(self)
QTPanelTBW2.LBNouvCommandeClicked(self)
def NomFormuleSaisi(self):
- nomFormule = self.LENomFormule.text().latin1()
+ nomFormule = str(self.LENomFormule.text())
if nomFormule == '' : return
test,erreur = self.node.item.verif_nom(nomFormule)
if test :
self.editor.affiche_infos(commentaire)
def argsSaisis(self):
- arguments = self.LENomsArgs.text().latin1()
+ arguments = str(self.LENomsArgs.text())
if arguments == '' : return
test,erreur = self.node.item.verif_arguments(arguments)
self.editor.affiche_infos(commentaire)
def FormuleSaisie(self):
- nomFormule = self.LENomFormule.text().latin1()
- arguments = self.LENomsArgs.text().latin1()
- expression = self.LECorpsFormule.text().latin1()
+ nomFormule = str(self.LENomFormule.text())
+ arguments = str(self.LENomsArgs.text())
+ expression = str(self.LECorpsFormule.text())
if expression == '' : return
test,erreur = self.node.item.verif_formule_python((nomFormule,"REEL",arguments,expression))
def BOkPressedFormule(self):
if self.parent.modified == 'n' : self.parent.init_modif()
- nomFormule = self.LENomFormule.text().latin1()
+ nomFormule = str(self.LENomFormule.text())
test,erreur = self.node.item.verif_nom(nomFormule)
if not test :
self.editor.affiche_infos(erreur)
return
- arguments = self.LENomsArgs.text().latin1()
+ arguments = str(self.LENomsArgs.text())
test,erreur = self.node.item.verif_arguments(arguments)
if not test :
self.editor.affiche_infos(erreur)
return
- expression = self.LECorpsFormule.text().latin1()
+ expression = str(self.LECorpsFormule.text())
test,erreur = self.node.item.verif_formule_python((nomFormule,"REEL",arguments,expression))
if not test :
self.editor.affiche_infos(erreur)
# Modules Python
# Modules Eficas
-from desListeParam import DLisParam
-from PyQt4 import *
+from desListeParam import Ui_DLisParam
from PyQt4.QtGui import *
+from PyQt4.QtCore import *
# Import des panels
+class DLisParam(Ui_DLisParam,QDialog):
+ def __init__(self,parent ,modal ) :
+ QDialog.__init__(self,parent)
+ self.setupUi(self)
+ self.setModal(modal)
class MonListeParamPanel(DLisParam):
"""
"""
def __init__(self,liste,parent,name = None,fl = 0):
self.panel=parent
- DLisParam.__init__(self,parent,name,Qt.WType_Dialog)
+ DLisParam.__init__(self,parent,fl)
self.liste=liste
+ self.dictListe={}
self.initVal()
+ self.connecterSignaux()
+
+ def connecterSignaux(self) :
+ self.connect(self.LBParam,SIGNAL("itemPressed(QListWidgetItem*)"),self.LBParamItemPressed)
def initVal(self):
self.LBParam.clear()
for param in self.liste :
- self.LBParam.insertItem(QString(repr(param)))
+ self.LBParam.addItem(QString(repr(param)))
+ self.dictListe[QString(repr(param))] = param
def LBParamItemPressed(self):
- i=self.LBParam.index(self.LBParam.selectedItem())
- self.panel.Ajout1Valeur(self.liste[i])
+ i=self.LBParam.selectedItems()[0].text()
+ self.panel.Ajout1Valeur(self.dictListe[i])
# Modules Python
# Modules Eficas
-from desMCFact import DMCFact
+from desMCFact import Ui_DMCFact
from qtCommun import QTPanel
from qtCommun import QTPanelTBW1
-from PyQt4 import *
from PyQt4.QtGui import *
+from PyQt4.QtCore import *
+
+class DMCFact(Ui_DMCFact,QDialog):
+ def __init__(self,parent ,modal ) :
+ QDialog.__init__(self,parent)
+ self.setupUi(self)
+ self.setModal(modal)
# Import des panels
DMCFact.__init__(self,parent,name,fl)
QTPanel.__init__(self,node,parent)
QTPanelTBW1.__init__(self,node,parent)
+ self.connecterSignaux()
+
+ def connecterSignaux(self):
+ self.connect(self.bSup,SIGNAL("pressed()"),self.BSupPressed)
+ self.connect(self.bOk,SIGNAL("clicked()"),self.BOkPressed)
+ self.connect(self.bHelp,SIGNAL("clicked()"),self.ViewDoc)
def BSupPressed(self):
QTPanel.BSupPressed(self)
# Modules Python
# Modules Eficas
-from desMCListAjout import DMCListAjout
-from qtCommun import QTPanel
-from PyQt4 import *
+from desMCListAjout import Ui_DMCListAjout
from PyQt4.QtGui import *
+from PyQt4.QtCore import *
+from qtCommun import QTPanel
+class DMCListAjout(Ui_DMCListAjout,QDialog):
+ def __init__(self,parent ,modal ) :
+ QDialog.__init__(self,parent)
+ self.setupUi(self)
+ self.setModal(modal)
+
# Import des panels
class MonMCListAjoutPanel(DMCListAjout,QTPanel):
discrètes
"""
def __init__(self,node,parent = None,name = None,fl = 0):
- DMCListAjout.__init__(self,parent,name,fl)
+ DMCListAjout.__init__(self,parent,fl)
QTPanel.__init__(self,node,parent)
monMCFact=self.node.item.get_nom()
self.MCFacteur.setText(QString(monMCFact))
self.MCFacteur.setAlignment(Qt.AlignHCenter)
+ self.connecterSignaux()
+
+ def connecterSignaux(self):
+ self.connect(self.bOk,SIGNAL("clicked()"),self.BAjoutClicked)
+ self.connect(self.bAjout,SIGNAL("clicked()"),self.BAjoutClicked)
+ self.connect(self.bSup,SIGNAL("clicked()"),self.BSupPressed)
+ self.connect(self.bHelp,SIGNAL("clicked()"),self.ViewDoc)
def BSupPressed(self):
QTPanel.BSupPressed(self)
def BAjoutClicked(self):
- self.node.parent.append_child(self.node.item.get_nom())
+ self.node.treeParent.append_child(self.node.item.get_nom())
def ViewDoc(self):
QTPanel.ViewDoc(self)
# Modules Python
# Modules Eficas
-from desMacro import DMacro
+from desCommande import Ui_DComm
from qtCommun import QTPanel
from qtCommun import QTPanelTBW1
from qtCommun import QTPanelTBW2
from qtCommun import QTPanelTBW3
from PyQt4 import *
from PyQt4.QtGui import *
+from PyQt4.QtCore import *
+class DMacro(Ui_DComm,QDialog):
+ def __init__(self,parent ,modal ) :
+ QDialog.__init__(self,parent)
+ self.setupUi(self)
+ self.setModal(modal)
# Import des panels
discrètes
"""
def __init__(self,node, parent = None,name = None,fl = 0):
- DMacro.__init__(self,parent,name,fl)
+ DMacro.__init__(self,parent,fl)
QTPanel.__init__(self,node,parent)
QTPanelTBW2.__init__(self,node,parent)
QTPanelTBW1.__init__(self,node,parent)
+ self.connecterSignaux()
if self.node.item.object.get_type_produit() != None :
QTPanelTBW3.__init__(self,node,parent)
else :
- self.TWChoix.removePage(self.TWChoix.page(2))
+ self.TWChoix.removeTab(1)
+ def connecterSignaux(self):
+ self.connect(self.LBNouvCommande,SIGNAL("doubleClicked(QListBoxItem*)"),self.LBNouvCommandeClicked)
+ self.connect(self.LEFiltre,SIGNAL("textChanged(const QString&)"),self.LEFiltreTextChanged)
+ self.connect(self.LEFiltre,SIGNAL("returnPressed()"),self.LEfiltreReturnPressed)
+ self.connect(self.bSup,SIGNAL("pressed()"),self.BSupPressed)
+ self.connect(self.bOk,SIGNAL("clicked()"),self.BOkPressed)
+ self.connect(self.LENomConcept,SIGNAL("returnPressed()"),self.LENomConceptReturnPressed)
+ self.connect(self.RBGroupe,SIGNAL("clicked()"),self.BuildTabCommand)
+ self.connect(self.RBalpha,SIGNAL("clicked()"),self.BuildTabCommand)
+ self.connect(self.bHelp,SIGNAL("clicked()"),self.ViewDoc)
+ self.connect(self.BNext,SIGNAL("pressed()"),self.BNextPressed)
+
def ViewDoc(self):
QTPanel.ViewDoc(self)
from PyQt4 import *
from PyQt4.QtGui import *
+from PyQt4.QtCore import *
-
-from desParam import DParam
+from desParam import Ui_DParam
from qtCommun import QTPanel
from qtCommun import QTPanelTBW2
+class DParam(Ui_DParam,QDialog):
+ def __init__(self,parent ,modal ) :
+ QDialog.__init__(self,parent)
+ self.setupUi(self)
+ self.setModal(modal)
+
# Import des panels
class MonParamPanel(DParam,QTPanelTBW2,QTPanel):
discrètes
"""
def __init__(self,node, parent = None,name = None,fl = 0):
- DParam.__init__(self,parent,name,fl)
+ DParam.__init__(self,parent,fl)
QTPanel.__init__(self,node,parent)
QTPanelTBW2.__init__(self,node,parent)
self.InitLEs()
+ self.connecterSignaux()
+
+ def connecterSignaux(self) :
+ self.connect(self.LBNouvCommande,SIGNAL("doubleClicked(QListBoxItem*)"),self.LBNouvCommandeClicked)
+ self.connect(self.LEFiltre,SIGNAL("textChanged(const QString&)"),self.LEFiltreTextChanged)
+ self.connect(self.LEFiltre,SIGNAL("returnPressed()"),self.LEfiltreReturnPressed)
+ self.connect(self.bSup,SIGNAL("pressed()"),self.BSupPressed)
+ self.connect(self.bOk,SIGNAL("clicked()"),self.BOkPressed)
+ self.connect(self.RBGroupe,SIGNAL("clicked()"),self.BuildTabCommand)
+ self.connect(self.RBalpha,SIGNAL("clicked()"),self.BuildTabCommand)
+ self.connect(self.bHelp,SIGNAL("clicked()"),self.ViewDoc)
+ self.connect(self.BNext,SIGNAL("pressed()"),self.BNextPressed)
+ self.connect(self.lineEditVal,SIGNAL("returnPressed()"),self.BOkPressed)
def InitLEs(self):
nom=self.node.item.get_nom()
# Modules Python
# Modules Eficas
-from desRacine import DRac
+from desRacine import Ui_DRac
from qtCommun import QTPanel
from qtCommun import QTPanelTBW2
-from qtCommun import itemColore
+#from qtCommun import itemColore
from PyQt4 import *
from PyQt4.QtGui import *
+from PyQt4.QtCore import *
+
+class DRac(Ui_DRac,QDialog):
+ def __init__(self,parent ,modal = 0 ) :
+ QDialog.__init__(self,parent)
+ self.setupUi(self)
+ self.setModal(modal)
# Import des panels
discrètes
"""
def __init__(self,node, parent = None,name = None,fl = 0):
- DRac.__init__(self,parent,name,fl)
+ print "hhhhhhhhhhhhhhhhhhhhhhhhhhhhh"
+ print parent
+ print "hhhhhhhhhhhhhhhhhhhhhhhhhhhhh"
+ DRac.__init__(self,parent,0)
+ self.connecterSignaux()
QTPanel.__init__(self,node,parent)
QTPanelTBW2.__init__(self,node,parent,racine=1)
+ def connecterSignaux(self):
+ self.connect(self.LBNouvCommande,SIGNAL("doubleClicked(QListBoxItem*)"),self.LBNouvCommandeClicked)
+ self.connect(self.LEFiltre,SIGNAL("textChanged(const QString&)"),self.LEFiltreTextChanged)
+ self.connect(self.LEFiltre,SIGNAL("returnPressed()"),self.LEfiltreReturnPressed)
+ self.connect(self.bSup,SIGNAL("pressed()"),self.BSupPressed)
+ self.connect(self.bOk,SIGNAL("clicked()"),self.BOkPressed)
+ self.connect(self.RBalpha,SIGNAL("clicked()"),self.BuildTabCommand)
+ self.connect(self.RBGroupe,SIGNAL("clicked()"),self.BuildTabCommand)
+ self.connect(self.BNext,SIGNAL("clicked()"),self.BNextPressed)
+ self.connect(self.bHelp,SIGNAL("clicked()"),self.ViewDoc)
+
def BSupPressed(self):
QTPanel.BSupPressed(self)
self.BuildLBRegles(listeRegles,listeNomsEtapes)
def DefCmd(self):
- if self.LBNouvCommande.selectedItem()== None : return
- name=str(self.LBNouvCommande.selectedItem().text())
+ if self.LBNouvCommande.currentItem()== None : return
+ name=str(self.LBNouvCommande.currentItem().text())
if name==QString(" "): return
if name.find("GROUPE :")==0 : return
+ print self.editor
+ print self.editor.__class__
self.editor.init_modif()
+ print self.node.__class__
new_node = self.node.append_child(name,'first')
import string,types,os
# Modules Eficas
-import prefs
-from PyQt4 import *
from PyQt4.QtGui import *
+from PyQt4.QtCore import *
-from desUniqueASSD import DUnASSD
+from desUniqueASSD import Ui_DUnASSD
from qtCommun import QTPanel
from qtSaisie import SaisieValeur
from politiquesValidation import PolitiqueUnique
+class DUnASSD(Ui_DUnASSD,QDialog):
+ def __init__(self,parent ,modal ) :
+ QDialog.__init__(self,parent)
+ self.setupUi(self)
+ self.setModal(modal)
+
# Import des panels
class MonUniqueASSDPanel(DUnASSD,QTPanel,SaisieValeur):
def __init__(self,node, parent = None,name = None,fl = 0):
self.editor=parent
QTPanel.__init__(self,node,parent)
- DUnASSD.__init__(self,parent,name,fl)
+ DUnASSD.__init__(self,parent,fl)
self.politique=PolitiqueUnique(node,parent)
self.InitListBoxASSD()
self.InitCommentaire()
+ self.connecterSignaux()
+
+ def connecterSignaux(self) :
+ self.connect(self.bHelp,SIGNAL("clicked()"),self.ViewDoc)
+ self.connect(self.bOk,SIGNAL("clicked()"),self.BOkPressed)
+ self.connect(self.bSup,SIGNAL("clicked()"),self.BSupPressed)
+
def BOkPressed(self):
self.ClicASSD()
import string,types,os
# Modules Eficas
-import prefs
-
-from PyQt4 import *
from PyQt4.QtGui import *
+from PyQt4.QtCore import *
-from desUniqueBase import DUnBase
+from desUniqueBase import Ui_DUnBase
from qtCommun import QTPanel
from qtSaisie import SaisieValeur
from politiquesValidation import PolitiqueUnique
+class DUnBase(Ui_DUnBase,QDialog):
+ def __init__(self,parent ,modal ) :
+ QDialog.__init__(self,parent)
+ self.setupUi(self)
+ self.setModal(modal)
+
# Import des panels
class MonUniqueBasePanel(DUnBase,QTPanel,SaisieValeur):
def __init__(self,node, parent = None,name = None,fl = 0):
self.editor=parent
QTPanel.__init__(self,node,parent)
- DUnBase.__init__(self,parent,name,fl)
+ DUnBase.__init__(self,parent,fl)
self.politique=PolitiqueUnique(node,parent)
self.InitLineEditVal()
self.InitCommentaire()
self.detruitBouton()
+ self.connecterSignaux()
+
+ def connecterSignaux(self) :
+ self.connect(self.bHelp,SIGNAL("clicked()"),self.ViewDoc)
+ self.connect(self.bOk,SIGNAL("clicked()"),self.BOk2Pressed)
+ self.connect(self.bSup,SIGNAL("clicked()"),self.BSupPressed)
+ self.connect(self.lineEditVal,SIGNAL("returnPressed()"),self.LEValeurPressed)
+ self.connect(self.bParametres,SIGNAL("pressed()"),self.BParametresPressed)
+ self.connect(self.BSalome,SIGNAL("pressed()"),self.BSalomePressed)
+ self.connect(self.BView2D,SIGNAL("clicked()"),self.BView2DPressed)
def ViewDoc(self):
QTPanel.ViewDoc(self)
def InitLineEditVal(self):
valeur=self.node.item.get_valeur()
valeurTexte=self.politique.GetValeurTexte(valeur)
- if valeurTexte != None:
- try :
- str=QString("").setNum(valeurTexte)
- except :
- str=QString(valeurTexte)
+ if valeurTexte != None :
+ if repr(valeurTexte.__class__).find("PARAMETRE") > 0:
+ str = QString(repr(valeur))
+ else :
+ try :
+ str=QString("").setNum(valeurTexte)
+ except :
+ str=QString(valeurTexte)
self.lineEditVal.setText(str)
# Modules Python
import types
-from qt import *
-
#------------------
class Validation :
from PyQt4 import *
from PyQt4.QtGui import *
+from PyQt4.QtCore import *
import prefsQT
# Import des panels
def BOkPressed(self):
""" Impossible d utiliser les vrais labels avec designer ?? """
- label=self.TWChoix.tabLabel(self.TWChoix.currentPage())
+ label=self.TWChoix.tabText(self.TWChoix.currentIndex())
+ #print label
if label==QString("Nouvelle Commande"):
self.DefCmd()
if label==QString("Nommer Concept"):
texteMauvais,test = regle.verif(listeNomsEtapes)
for ligne in texteRegle.split("\n") :
if ligne == "" :
- self.LBRegles.insertItem(ligne)
+ self.LBRegles.insertItem(0,ligne)
continue
if ligne[0]=="\t" :
ligne=" "+ligne[1:]
if test :
- self.LBRegles.insertItem(ligne)
+ self.LBRegles.insertItem(0,ligne)
else :
- self.LBRegles.insertItem(ligne)
+ self.LBRegles.insertItem(0,ligne)
#self.LBRegles.insertItem(itemColore(ligne))
def BuildLBMCPermis(self):
self.LBMCPermis.clear()
- try :
- QObject.disconnect(self.LBMCPermis,SIGNAL("doubleClicked(QListBoxItem*)"),self.DefMC)
- except :
- # normal pour la première fois qu on passe
- # peut-etre inutile selon le connect ??
- pass
- QObject.connect(self.LBMCPermis,SIGNAL("doubleClicked(QListBoxItem*)"),self.DefMC)
-
+ QObject.connect(self.LBMCPermis,SIGNAL("itemDoubleClicked(QListWidegetItem*)"),self.DefMC)
jdc = self.node.item.get_jdc()
genea =self.node.item.get_genealogie()
liste_mc=self.node.item.get_liste_mc_ordonnee(genea,jdc.cata_ordonne_dico)
for aMc in liste_mc:
- self.LBMCPermis.insertItem( aMc)
+ self.LBMCPermis.addItem( aMc)
def DefMC(self):
self.editor = parent
self.node = node
self.BuildLBNouvCommande()
+ self.NbRecherches = 0
if racine == 1 : self.AppelleBuildLBRegles()
def BuildLBNouvCommande(self):
self.LBNouvCommande.clear()
- try :
- QObject.disconnect(self.LBNouvCommande,SIGNAL("doubleClicked(QListBoxItem*)"),self.DefCmd)
- except :
- # normal pour la première fois qu on passe
- # peut-etre inutile selon le connect ??
- pass
jdc=self.node.item.object.get_jdc_root()
- if self.RBalpha.isOn():
+ if self.RBalpha.isChecked():
listeCmd = jdc.get_liste_cmd()
for aCmd in listeCmd:
- self.LBNouvCommande.insertItem( aCmd )
+ self.LBNouvCommande.addItem( aCmd )
else :
listeGroupes,dictGroupes=jdc.get_groups()
for grp in listeGroupes:
if grp == "CACHE":continue
listeCmd=dictGroupes[grp]
texte="GROUPE : "+grp
- self.LBNouvCommande.insertItem( texte )
- self.LBNouvCommande.insertItem( " " )
+ self.LBNouvCommande.addItem( texte )
+ self.LBNouvCommande.addItem( " " )
for aCmd in listeCmd:
- self.LBNouvCommande.insertItem( aCmd)
- self.LBNouvCommande.insertItem( " " )
- QObject.connect( self.LBNouvCommande, SIGNAL("doubleClicked(QListBoxItem*)"),self.DefCmd )
- QObject.connect( self.LBNouvCommande, SIGNAL("returnPressed(QListBoxItem*)"),self.DefCmd )
+ self.LBNouvCommande.addItem( aCmd)
+ self.LBNouvCommande.addItem( " " )
+ QObject.connect( self.LBNouvCommande, SIGNAL("itemClicked(QListWidgetItem*)"),self.DefCmd )
+ QObject.connect( self.LBNouvCommande, SIGNAL("itemDoubleClicked(QListWidgetItem*)"),self.DefCmd )
def DefCmd(self):
+ print "iiiiiii"
if (self.editor.focusWidget())!=self.LBNouvCommande :
return
- if self.LBNouvCommande.selectedItem()== 0 : return
- if self.LBNouvCommande.selectedItem()== None : return
- name=str(self.LBNouvCommande.selectedItem().text())
+ if self.LBNouvCommande.currentItem()== 0 : return
+ if self.LBNouvCommande.currentItem()== None : return
+ name=str(self.LBNouvCommande.currentItem().text())
if name==QString(" "):
return
if name.find("GROUPE :")==0 :
return
self.editor.init_modif()
+ print self.node
+ print name
new_node = self.node.append_brother(name,'after')
def LEFiltreTextChanged(self):
- MonItem=self.LBNouvCommande.findItem(self.LEFiltre.text().upper(),Qt.Contains)
- if MonItem != None :
- self.LBNouvCommande.setCurrentItem(MonItem)
- self.LBNouvCommande.setSelected(MonItem,1)
+ self.NbRecherches = 0
try :
- QObject.disconnect(self.LBNouvCommande,SIGNAL("returnPressed(QListBoxItem*)"),self.DefCmd)
+ MonItem=self.LBNouvCommande.findItems(self.LEFiltre.text().toUpper(),Qt.MatchContains)[0]
+ self.LBNouvCommande.setCurrentItem(MonItem)
except :
pass
self.DefCmd()
def BNextPressed(self):
- MonItem=self.LBNouvCommande.findItem(self.LEFiltre.text().upper(),Qt.Contains)
- if MonItem != None :
- self.LBNouvCommande.setCurrentItem(self.LBNouvCommande.currentItem()+1)
- self.LEFiltreTextChanged()
+ self.NbRecherches = self.NbRecherches + 1
+ monItem = None
+ try :
+ MonItem=self.LBNouvCommande.findItems(self.LEFiltre.text().toUpper(),Qt.MatchContains)[self.NbRecherches]
+ except :
+ try : # ce try sert si la liste est vide
+ MonItem=self.LBNouvCommande.findItems(self.LEFiltre.text().toUpper(),Qt.MatchContains)[0]
+ self.NbRecherches = 0
+ except :
+ return
+ self.LBNouvCommande.setCurrentItem(MonItem)
def LBNouvCommandeClicked(self):
name=str(self.LBNouvCommande.currentText())
self.LENomConcept.setText("")
self.LENomConcept.setText(nomConcept)
-
-
def LENomConceptReturnPressed(self):
"""
Nomme le concept SD retourne par l'etape
"""
nom = str(self.LENomConcept.text())
nom = string.strip(nom)
-
if nom == '' : return # si pas de nom, on ressort sans rien faire
-
self.editor.init_modif()
test,mess = self.node.item.nomme_sd(nom)
self.editor.affiche_infos(mess)
-# ----------------------- #
-class ViewText(QDialog):
-# ----------------------- #
+# ------------------------------- #
+from desViewTexte import Ui_dView
+class ViewText(Ui_dView,QDialog):
+# ------------------------------- #
"""
Classe permettant la visualisation de texte
"""
- def __init__(self,parent = None,name = None,modal = 0,fl = 0):
- QDialog.__init__(self,parent,name,modal,fl)
-
- l1 = QVBoxLayout(self,11,6,)
- self.view = QTextEdit(self)
- self.view.setReadOnly(True)
-
- l2 = QHBoxLayout(None,0,6)
- Horizontal_Spacing2 = QSpacerItem(220,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
- bclose= QPushButton(self)
- bclose.setText(self.trUtf8( "Fermer"))
- bsave= QPushButton(self)
- bsave.setText(self.trUtf8( "Sauver"))
- l2.addItem(Horizontal_Spacing2)
- l2.addWidget(bsave)
- l2.addWidget(bclose)
-
- l1.addWidget(self.view)
- l1.addLayout(l2)
+ def __init__(self,parent):
+ QDialog.__init__(self,parent)
+ self.setupUi(self)
self.resize( QSize(600,507).expandedTo(self.minimumSizeHint()) )
- self.connect( bclose,SIGNAL("clicked()"), self, SLOT("close()") )
- self.connect( bsave,SIGNAL("clicked()"), self.saveFile )
+ self.connect( self.bclose,SIGNAL("clicked()"), self, SLOT("close()") )
+ self.connect( self.bsave,SIGNAL("clicked()"), self.saveFile )
def setText(self, txt ):
self.view.setText(txt)
def saveFile(self):
#recuperation du nom du fichier
fn = QFileDialog.getSaveFileName(None,
- self.trUtf8("All Files (*)"), self, None,
- self.trUtf8("Save File"), '', 0)
- if not fn.isNull():
- if QFileInfo(fn).exists():
- abort = QMessageBox.warning(self,
- self.trUtf8("Save File"),
- self.trUtf8("The file <b>%1</b> already exists.")
- .arg(fn),
- self.trUtf8("&Overwrite"),
- self.trUtf8("&Abort"), None, 1)
- if abort:
- return
- fn = unicode(QDir.convertSeparators(fn))
- else:
- return
+ self.trUtf8("Save File"),
+ self.trUtf8("/tmp"))
+ #if not fn.isNull():
+ # print "hhhhhhhhhhhhhhjjjjjjjjjjjjjjjjjjjjkkkkkkkkkkkkk"
+ # if QFileInfo(fn).exists():
+ # abort = QMessageBox.warning(self,
+ # self.trUtf8("Save File"),
+ # self.trUtf8("The file <b>%1</b> already exists.")
+ # .arg(fn),
+ # self.trUtf8("&Overwrite"),
+ # self.trUtf8("&Abort"))
+ # if abort:
+ # return
+ # fn = unicode(QDir.convertSeparators(fn))
+ #else:
+ # return
#ecriture du fichier
+ if fn.isNull() : return
try:
f = open(fn, 'wb')
- f.write(str(self.view.text()))
+ f.write(str(self.view.toPlainText()))
f.close()
return 1
except IOError, why:
#self.monAssistant=QAssistantClient(QString(""), self.viewmanager)
- if self.salome :
- from Editeur import session
- self.ouvreFichiers()
+ #if self.salome :
+ # from Editeur import session
+ # self.ouvreFichiers()
+ from Editeur import session
+ self.ouvreFichiers()
self.ficPatrons={}
self.initPatrons()
import string,types,os
from PyQt4 import *
from PyQt4.QtGui import *
+from PyQt4.QtCore import *
# Import des panels
def InitListBoxASSD(self):
listeNomsSD = self.node.item.get_sd_avant_du_bon_type()
for aSD in listeNomsSD:
- self.listBoxASSD.insertItem( aSD)
+ self.listBoxASSD.addItem( aSD)
QObject.connect(self.listBoxASSD, SIGNAL("doubleClicked(QListBoxItem*)" ), self.ClicASSD )
min,max = self.node.item.GetMinMax()
l= self.node.item.GetListeValeurs()
self.LBValeurs.clear()
listeValeurs=self.node.item.GetListeValeurs()
for valeur in listeValeurs:
- self.LBValeurs.insertItem(str(valeur))
+ self.LBValeurs.addItem(str(valeur))
if listeValeurs != None and listeValeurs != [] :
- self.LBValeurs.setCurrentItem(len(listeValeurs) - 1)
+ self.LBValeurs.setCurrentRow(len(listeValeurs) - 1)
def RemplitPanel(self,listeDejaLa=[]):
self.listBoxVal.clear()
lChoix=self.node.item.get_liste_possible(listeDejaLa)
for valeur in lChoix :
- self.listBoxVal.insertItem( str(valeur) )
+ self.listBoxVal.addItem( str(valeur) )
if len(lChoix) == 1 :
self.listBoxVal.setSelected(0,1)
#
# ======================================================================
-import os
+import os, string
from PyQt4.QtGui import *
from PyQt4.QtCore import *
-from utils import *
-
class MyTabview:
def __init__(self,appliEficas):
self.mesIndexes = {}
self.appliEficas=appliEficas
self.editors = []
- self.currentEditor = None
+ self.dict_editors={}
+ self.untitledCount = 0
self.myQtab = QTabWidget(self.appliEficas.centralWidget())
#self.connect(tw, SIGNAL('currentChanged(QWidget*)'), self.handleCurrentChanged)
- def handleOpen(self,fn=None,patron=0,units=None):
+ def handleOpen(self,fichier=None,patron=0,units=None):
print "passage dans handleOpen"
+ if fichier is None:
+ fichier = QFileDialog.getOpenFileName(self.appliEficas,
+ self.appliEficas.trUtf8('Ouvrir Fichier'),
+ self.getOpenStartDir(),
+ self.appliEficas.trUtf8('JDC Files (*.comm);;''All Files (*)'))
+ if fichier.isNull(): return
+
+ from utilitaires import normabspath
+ fichier = normabspath(unicode(fichier))
+ maPage=self.getEditor( fichier)
def handleClose(self):
print "passage dans Close"
print "passage dans newIncludeEditor"
def handleViewJdcFichierSource(self):
- print "passage dans handleViewJdcFichierSource"
+ index=self.myQtab.currentIndex()
+ if index < 0 : return
+ self.dict_editors[index].viewJdcSource()
def handleViewJdcRapport(self):
- print "passage dans handleViewRapport"
+ index=self.myQtab.currentIndex()
+ if index < 0 : return
+ self.dict_editors[index].viewJdcRapport()
def handleViewJdcPy(self):
- print "passage dans handleViewPy"
+ index=self.myQtab.currentIndex()
+ if index < 0 : return
+ self.dict_editors[index].viewJdcPy()
def saveCurrentEditor(self):
print "passage dans CurrentEditor"
print "passage dans AsCurrentEditor"
- def getEditor(self, fileName = None, jdc = None, units = None):
+ def getEditor(self,fichier = None,jdc = None, units = None):
newWin = 0
double = None
- for editor in self.editors:
- if samepath(fileName, editor.getFileName()):
- abort = QMessageBox.warning(self,
- self.trUtf8("Fichier"),
- self.trUtf8("Le fichier <b>%1</b> est deja ouvert.").arg(fileName),
- self.trUtf8("&Duplication"),
- self.trUtf8("&Abort"), None, 1)
+ indexEditor=0
+ #for editor in self.editors:
+ for indexEditor in self.dict_editors.keys():
+ editor=self.dict_editors[indexEditor]
+ from utilitaires import samepath
+ if samepath(fichier, editor.getFileName()):
+ abort = QMessageBox.warning(self.appliEficas,
+ self.appliEficas.trUtf8("Fichier"),
+ self.appliEficas.trUtf8("Le fichier <b>%1</b> est deja ouvert.").arg(fichier),
+ self.appliEficas.trUtf8("&Duplication"),
+ self.appliEficas.trUtf8("&Abort"))
if abort: break
else :
from editor import JDCEditor
- editor = JDCEditor(fileName, jdc, self.myQtab,units=units,appli=self.appliEficas)
+ editor = JDCEditor(fichier, jdc, self.myQtab,units=units,appli=self.appliEficas)
if editor.jdc: # le fichier est bien un jdc
self.editors.append(editor)
#self.connect(editor, SIGNAL('modificationStatusChanged'), self.handleModificationStatusChanged)
#self.connect(editor, SIGNAL('bookmarkToggled'), self.handleBookmarkToggled)
#self.connect(editor, SIGNAL('syntaxerrorToggled'), self.handleSyntaxErrorToggled)
#self.handleEditorOpened()
- #self.emit(SIGNAL('editorOpened'), (fn,))
+ #self.emit(SIGNAL('editorOpened'), (fichier,))
newWin = 1
else:
editor.closeIt()
+ hauteur=self.appliEficas.centralWidget().height()
+ largeur=self.appliEficas.centralWidget().width()
+ self.myQtab.setGeometry(0,0,hauteur,largeur)
if newWin:
- self.addView(editor, fn , title)
+ self.addView(editor, fichier)
elif editor.jdc:
- self.showView(editor, fn)
+ self.myQtab.setCurrentIndex(indexEditor)
+ index=self.myQtab.currentIndex()
+ self.dict_editors[index]=editor
return editor
- def addView(self, win, fn=None, title=None):
- #win.show()
- if fn is None:
- if title== None :
- self.untitledCount += 1
- self.currentTabWidget.addTab(win, self.trUtf8("Untitled %1").arg(self.untitledCount))
- else :
- self.currentTabWidget.addTab(win, title)
+ def addView(self, win, fichier=None):
+ if fichier is None:
+ self.untitledCount += 1
+ self.myQtab.addTab(win, self.appliEficas.trUtf8("Untitled %1").arg(self.untitledCount))
else:
- txt = os.path.basename(fn)
- if not QFileInfo(fn).isWritable():
+ liste=fichier.split('/')
+ txt = liste[-1]
+ if not QFileInfo(fichier).isWritable():
txt = '%s (ro)' % txt
- self.currentTabWidget.addTab(win, txt)
- self.currentTabWidget.setTabToolTip(win, os.path.dirname(fn))
- self.currentTabWidget.showPage(win)
- win.setFocus()
-
- def showView(self, win, fn=None):
- """
- Private method to show a view (i.e. window)
- @param win editor window to be shown
- @param fn filename of this editor
- """
- win.show()
- for tw in self.tabWidgets:
- if tw.hasEditor(win):
- tw.showPage(win)
- self.currentTabWidget = tw
- break
+ self.myQtab.addTab(win, txt)
+ self.myQtab.setCurrentWidget(win)
+ self.cuurentEditor=win
win.setFocus()
+ def getOpenStartDir(self) :
+ #PN --> Les Preferences
+ try :
+ userDir=os.path.expanduser("~/Eficas_install/")
+ return userDir
+ except :
+ return ""
# Form implementation generated from reading ui file 'desChoixCata.ui'
#
-# Created: Wed Jul 9 10:11:20 2008
+# Created: Wed Jul 16 16:27:33 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
class Ui_DChoixCata(object):
def setupUi(self, DChoixCata):
DChoixCata.setObjectName("DChoixCata")
- DChoixCata.resize(547,172)
+ DChoixCata.resize(547,192)
DChoixCata.setSizeGripEnabled(True)
- self.gridlayout = QtGui.QGridLayout(DChoixCata)
- self.gridlayout.setObjectName("gridlayout")
- self.frame3 = QtGui.QFrame(DChoixCata)
- self.frame3.setFrameShape(QtGui.QFrame.StyledPanel)
- self.frame3.setFrameShadow(QtGui.QFrame.Raised)
- self.frame3.setObjectName("frame3")
- self.buttonCancel = QtGui.QPushButton(self.frame3)
- self.buttonCancel.setGeometry(QtCore.QRect(380,6,90,30))
- self.buttonCancel.setAutoDefault(True)
- self.buttonCancel.setObjectName("buttonCancel")
- self.buttonOk = QtGui.QPushButton(self.frame3)
- self.buttonOk.setGeometry(QtCore.QRect(40,6,90,30))
- self.buttonOk.setAutoDefault(True)
- self.buttonOk.setDefault(True)
- self.buttonOk.setObjectName("buttonOk")
- self.gridlayout.addWidget(self.frame3,2,0,1,2)
+ self.gridLayout = QtGui.QGridLayout(DChoixCata)
+ self.gridLayout.setObjectName("gridLayout")
self.TLNb = QtGui.QLabel(DChoixCata)
self.TLNb.setMinimumSize(QtCore.QSize(30,0))
self.TLNb.setWordWrap(False)
self.TLNb.setObjectName("TLNb")
- self.gridlayout.addWidget(self.TLNb,0,0,1,1)
+ self.gridLayout.addWidget(self.TLNb,0,0,1,1)
self.CBChoixCata = QtGui.QComboBox(DChoixCata)
self.CBChoixCata.setEnabled(True)
+ self.CBChoixCata.setMinimumSize(QtCore.QSize(125,41))
+ self.CBChoixCata.setMaximumSize(QtCore.QSize(150,16777215))
self.CBChoixCata.setObjectName("CBChoixCata")
- self.gridlayout.addWidget(self.CBChoixCata,1,1,1,1)
+ self.gridLayout.addWidget(self.CBChoixCata,0,1,2,1)
self.textLabel1_2 = QtGui.QLabel(DChoixCata)
- self.textLabel1_2.setMinimumSize(QtCore.QSize(380,60))
+ self.textLabel1_2.setMinimumSize(QtCore.QSize(60,60))
self.textLabel1_2.setWordWrap(False)
self.textLabel1_2.setObjectName("textLabel1_2")
- self.gridlayout.addWidget(self.textLabel1_2,1,0,1,1)
+ self.gridLayout.addWidget(self.textLabel1_2,1,0,1,1)
+ self.frame3 = QtGui.QFrame(DChoixCata)
+ self.frame3.setFrameShape(QtGui.QFrame.StyledPanel)
+ self.frame3.setFrameShadow(QtGui.QFrame.Raised)
+ self.frame3.setObjectName("frame3")
+ self.horizontalLayout = QtGui.QHBoxLayout(self.frame3)
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ self.buttonOk = QtGui.QPushButton(self.frame3)
+ self.buttonOk.setAutoDefault(True)
+ self.buttonOk.setDefault(True)
+ self.buttonOk.setObjectName("buttonOk")
+ self.horizontalLayout.addWidget(self.buttonOk)
+ spacerItem = QtGui.QSpacerItem(334,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum)
+ self.horizontalLayout.addItem(spacerItem)
+ self.buttonCancel = QtGui.QPushButton(self.frame3)
+ self.buttonCancel.setAutoDefault(True)
+ self.buttonCancel.setObjectName("buttonCancel")
+ self.horizontalLayout.addWidget(self.buttonCancel)
+ self.gridLayout.addWidget(self.frame3,2,0,1,2)
self.retranslateUi(DChoixCata)
+ QtCore.QMetaObject.connectSlotsByName(DChoixCata)
def retranslateUi(self, DChoixCata):
DChoixCata.setWindowTitle(QtGui.QApplication.translate("DChoixCata", "Choix d\'une version du code Aster", None, QtGui.QApplication.UnicodeUTF8))
- self.buttonCancel.setText(QtGui.QApplication.translate("DChoixCata", "&Cancel", None, QtGui.QApplication.UnicodeUTF8))
+ self.TLNb.setText(QtGui.QApplication.translate("DChoixCata", "2 versions sont disponibles", None, QtGui.QApplication.UnicodeUTF8))
+ self.textLabel1_2.setText(QtGui.QApplication.translate("DChoixCata", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
+"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
+"p, li { white-space: pre-wrap; }\n"
+"</style></head><body style=\" font-family:\'Sans Serif\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
+"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:large;\">Veuillez choisir celle avec laquelle</span></p>\n"
+"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:large;\"><span style=\" font-size:large;\"> vous souhaitez travailler</span></p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
self.buttonOk.setText(QtGui.QApplication.translate("DChoixCata", "&OK", None, QtGui.QApplication.UnicodeUTF8))
- self.TLNb.setText(QtGui.QApplication.translate("DChoixCata", "2", None, QtGui.QApplication.UnicodeUTF8))
- self.textLabel1_2.setText(QtGui.QApplication.translate("DChoixCata", "<font size=\"+1\">Veuillez choisir celle avec laquelle vous souhaitez travailler</font>", None, QtGui.QApplication.UnicodeUTF8))
+ self.buttonCancel.setText(QtGui.QApplication.translate("DChoixCata", "&Cancel", None, QtGui.QApplication.UnicodeUTF8))
if __name__ == "__main__":
-<ui version="4.0" stdsetdef="1" >
- <author></author>
- <comment></comment>
- <exportmacro></exportmacro>
- <class>DChoixCata</class>
- <widget class="QDialog" name="DChoixCata" >
- <property name="geometry" >
- <rect>
- <x>0</x>
- <y>0</y>
- <width>547</width>
- <height>172</height>
- </rect>
- </property>
- <property name="windowTitle" >
- <string>Choix d'une version du code Aster</string>
- </property>
- <property name="sizeGripEnabled" >
+<ui version="4.0" >
+ <class>DChoixCata</class>
+ <widget class="QDialog" name="DChoixCata" >
+ <property name="geometry" >
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>547</width>
+ <height>192</height>
+ </rect>
+ </property>
+ <property name="windowTitle" >
+ <string>Choix d'une version du code Aster</string>
+ </property>
+ <property name="sizeGripEnabled" >
+ <bool>true</bool>
+ </property>
+ <layout class="QGridLayout" name="gridLayout" >
+ <item row="0" column="0" >
+ <widget class="QLabel" name="TLNb" >
+ <property name="minimumSize" >
+ <size>
+ <width>30</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="text" >
+ <string>2 versions sont disponibles</string>
+ </property>
+ <property name="wordWrap" >
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ <item rowspan="2" row="0" column="1" >
+ <widget class="QComboBox" name="CBChoixCata" >
+ <property name="enabled" >
<bool>true</bool>
- </property>
- <layout class="QGridLayout" >
- <item rowspan="1" row="2" column="0" colspan="2" >
- <widget class="QFrame" name="frame3" >
- <property name="frameShape" >
- <enum>StyledPanel</enum>
- </property>
- <property name="frameShadow" >
- <enum>Raised</enum>
- </property>
- <widget class="QPushButton" name="buttonCancel" >
- <property name="geometry" >
- <rect>
- <x>380</x>
- <y>6</y>
- <width>90</width>
- <height>30</height>
- </rect>
- </property>
- <property name="text" >
- <string>&Cancel</string>
- </property>
- <property name="shortcut" >
- <string/>
- </property>
- <property name="autoDefault" >
- <bool>true</bool>
- </property>
- </widget>
- <widget class="QPushButton" name="buttonOk" >
- <property name="geometry" >
- <rect>
- <x>40</x>
- <y>6</y>
- <width>90</width>
- <height>30</height>
- </rect>
- </property>
- <property name="text" >
- <string>&OK</string>
- </property>
- <property name="shortcut" >
- <string/>
- </property>
- <property name="autoDefault" >
- <bool>true</bool>
- </property>
- <property name="default" >
- <bool>true</bool>
- </property>
- </widget>
- </widget>
+ </property>
+ <property name="minimumSize" >
+ <size>
+ <width>125</width>
+ <height>41</height>
+ </size>
+ </property>
+ <property name="maximumSize" >
+ <size>
+ <width>150</width>
+ <height>16777215</height>
+ </size>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="0" >
+ <widget class="QLabel" name="textLabel1_2" >
+ <property name="minimumSize" >
+ <size>
+ <width>60</width>
+ <height>60</height>
+ </size>
+ </property>
+ <property name="text" >
+ <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+<html><head><meta name="qrichtext" content="1" /><style type="text/css">
+p, li { white-space: pre-wrap; }
+</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;">
+<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:large;">Veuillez choisir celle avec laquelle</span></p>
+<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:large;"><span style=" font-size:large;"> vous souhaitez travailler</span></p></body></html></string>
+ </property>
+ <property name="wordWrap" >
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ <item row="2" column="0" colspan="2" >
+ <widget class="QFrame" name="frame3" >
+ <property name="frameShape" >
+ <enum>QFrame::StyledPanel</enum>
+ </property>
+ <property name="frameShadow" >
+ <enum>QFrame::Raised</enum>
+ </property>
+ <layout class="QHBoxLayout" name="horizontalLayout" >
+ <item>
+ <widget class="QPushButton" name="buttonOk" >
+ <property name="text" >
+ <string>&OK</string>
+ </property>
+ <property name="shortcut" >
+ <string/>
+ </property>
+ <property name="autoDefault" >
+ <bool>true</bool>
+ </property>
+ <property name="default" >
+ <bool>true</bool>
+ </property>
+ </widget>
</item>
- <item row="0" column="0" >
- <widget class="QLabel" name="TLNb" >
- <property name="minimumSize" >
- <size>
- <width>30</width>
- <height>0</height>
- </size>
- </property>
- <property name="text" >
- <string>2</string>
- </property>
- <property name="wordWrap" >
- <bool>false</bool>
- </property>
- </widget>
+ <item>
+ <spacer name="horizontalSpacer" >
+ <property name="orientation" >
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0" >
+ <size>
+ <width>334</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
</item>
- <item row="1" column="1" >
- <widget class="QComboBox" name="CBChoixCata" >
- <property name="enabled" >
- <bool>true</bool>
- </property>
- </widget>
+ <item>
+ <widget class="QPushButton" name="buttonCancel" >
+ <property name="text" >
+ <string>&Cancel</string>
+ </property>
+ <property name="shortcut" >
+ <string/>
+ </property>
+ <property name="autoDefault" >
+ <bool>true</bool>
+ </property>
+ </widget>
</item>
- <item row="1" column="0" >
- <widget class="QLabel" name="textLabel1_2" >
- <property name="minimumSize" >
- <size>
- <width>380</width>
- <height>60</height>
- </size>
- </property>
- <property name="text" >
- <string><font size="+1">Veuillez choisir celle avec laquelle vous souhaitez travailler</font></string>
- </property>
- <property name="wordWrap" >
- <bool>false</bool>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
- <layoutdefault spacing="6" margin="11" />
- <pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
+ </layout>
+ </widget>
+ </item>
+ </layout>
+ <zorder>frame3</zorder>
+ <zorder>TLNb</zorder>
+ <zorder>textLabel1_2</zorder>
+ <zorder>CBChoixCata</zorder>
+ </widget>
+ <layoutdefault spacing="6" margin="11" />
+ <pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
+ <resources/>
+ <connections/>
</ui>
# Form implementation generated from reading ui file 'desCommande.ui'
#
-# Created: Wed Jul 9 10:11:20 2008
+# Created: Wed Jul 23 12:04:11 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
self.bHelp.setAutoDefault(True)
self.bHelp.setObjectName("bHelp")
self.gridlayout.addWidget(self.bHelp,2,2,1,1)
- self.LBRegles = QtGui.QTabWidget(DComm)
- self.LBRegles.setObjectName("LBRegles")
+ self.TWChoix = QtGui.QTabWidget(DComm)
+ self.TWChoix.setObjectName("TWChoix")
self.MotClef = QtGui.QWidget()
self.MotClef.setGeometry(QtCore.QRect(0,0,483,372))
self.MotClef.setObjectName("MotClef")
self.LBMCPermis = QtGui.QListWidget(self.MotClef)
self.LBMCPermis.setGeometry(QtCore.QRect(10,40,211,321))
self.LBMCPermis.setObjectName("LBMCPermis")
- self.LB = QtGui.QListWidget(self.MotClef)
- self.LB.setGeometry(QtCore.QRect(250,40,211,321))
- self.LB.setObjectName("LB")
- self.LBRegles.addTab(self.MotClef,"")
+ self.LBRegles = QtGui.QListWidget(self.MotClef)
+ self.LBRegles.setGeometry(QtCore.QRect(250,40,211,321))
+ self.LBRegles.setObjectName("LBRegles")
+ self.TWChoix.addTab(self.MotClef,"")
self.Concept = QtGui.QWidget()
self.Concept.setGeometry(QtCore.QRect(0,0,483,372))
self.Concept.setObjectName("Concept")
self.typeConcept.setWordWrap(False)
self.typeConcept.setObjectName("typeConcept")
self.gridlayout1.addWidget(self.groupBox1,0,0,1,1)
- self.LBRegles.addTab(self.Concept,"")
+ self.TWChoix.addTab(self.Concept,"")
self.Commande = QtGui.QWidget()
self.Commande.setGeometry(QtCore.QRect(0,0,483,372))
self.Commande.setObjectName("Commande")
+ self.gridLayout_2 = QtGui.QGridLayout(self.Commande)
+ self.gridLayout_2.setObjectName("gridLayout_2")
self.textLabel1_4 = QtGui.QLabel(self.Commande)
- self.textLabel1_4.setGeometry(QtCore.QRect(11,11,291,44))
self.textLabel1_4.setWordWrap(False)
self.textLabel1_4.setObjectName("textLabel1_4")
- self.textLabel4 = QtGui.QLabel(self.Commande)
- self.textLabel4.setGeometry(QtCore.QRect(11,341,457,17))
- self.textLabel4.setWordWrap(False)
- self.textLabel4.setObjectName("textLabel4")
- self.LEFiltre = QtGui.QLineEdit(self.Commande)
- self.LEFiltre.setGeometry(QtCore.QRect(60,60,169,30))
- self.LEFiltre.setMinimumSize(QtCore.QSize(160,30))
- self.LEFiltre.setObjectName("LEFiltre")
+ self.gridLayout_2.addWidget(self.textLabel1_4,0,0,1,1)
+ self.horizontalLayout = QtGui.QHBoxLayout()
+ self.horizontalLayout.setObjectName("horizontalLayout")
self.textLabel6 = QtGui.QLabel(self.Commande)
- self.textLabel6.setGeometry(QtCore.QRect(11,61,50,30))
self.textLabel6.setMinimumSize(QtCore.QSize(50,30))
self.textLabel6.setWordWrap(False)
self.textLabel6.setObjectName("textLabel6")
- self.RBGroupe = QtGui.QRadioButton(self.Commande)
- self.RBGroupe.setGeometry(QtCore.QRect(330,60,101,20))
- self.RBGroupe.setObjectName("RBGroupe")
- self.RBalpha = QtGui.QRadioButton(self.Commande)
- self.RBalpha.setGeometry(QtCore.QRect(330,30,120,20))
- self.RBalpha.setChecked(True)
- self.RBalpha.setObjectName("RBalpha")
+ self.horizontalLayout.addWidget(self.textLabel6)
+ self.LEFiltre = QtGui.QLineEdit(self.Commande)
+ self.LEFiltre.setMinimumSize(QtCore.QSize(160,30))
+ self.LEFiltre.setObjectName("LEFiltre")
+ self.horizontalLayout.addWidget(self.LEFiltre)
+ self.BNext = QtGui.QPushButton(self.Commande)
+ self.BNext.setObjectName("BNext")
+ self.horizontalLayout.addWidget(self.BNext)
+ self.gridLayout_2.addLayout(self.horizontalLayout,1,0,1,1)
self.groupBox = QtGui.QGroupBox(self.Commande)
- self.groupBox.setGeometry(QtCore.QRect(310,10,141,80))
self.groupBox.setObjectName("groupBox")
+ self.gridLayout = QtGui.QGridLayout(self.groupBox)
+ self.gridLayout.setObjectName("gridLayout")
+ self.RBalpha = QtGui.QRadioButton(self.groupBox)
+ self.RBalpha.setChecked(True)
+ self.RBalpha.setObjectName("RBalpha")
+ self.gridLayout.addWidget(self.RBalpha,0,0,1,1)
+ self.RBGroupe = QtGui.QRadioButton(self.groupBox)
+ self.RBGroupe.setObjectName("RBGroupe")
+ self.gridLayout.addWidget(self.RBGroupe,1,0,1,1)
+ self.gridLayout_2.addWidget(self.groupBox,0,1,2,1)
self.LBNouvCommande = QtGui.QListWidget(self.Commande)
- self.LBNouvCommande.setGeometry(QtCore.QRect(5,101,471,231))
self.LBNouvCommande.setObjectName("LBNouvCommande")
- self.pushButton = QtGui.QPushButton(self.Commande)
- self.pushButton.setGeometry(QtCore.QRect(233,60,71,27))
- self.pushButton.setObjectName("pushButton")
- self.LBRegles.addTab(self.Commande,"")
- self.gridlayout.addWidget(self.LBRegles,0,0,1,3)
+ self.gridLayout_2.addWidget(self.LBNouvCommande,2,0,1,2)
+ self.textLabel4 = QtGui.QLabel(self.Commande)
+ self.textLabel4.setWordWrap(False)
+ self.textLabel4.setObjectName("textLabel4")
+ self.gridLayout_2.addWidget(self.textLabel4,3,0,1,2)
+ self.TWChoix.addTab(self.Commande,"")
+ self.gridlayout.addWidget(self.TWChoix,0,0,1,3)
self.retranslateUi(DComm)
- self.LBRegles.setCurrentIndex(0)
+ self.TWChoix.setCurrentIndex(0)
+ QtCore.QMetaObject.connectSlotsByName(DComm)
DComm.setTabOrder(self.LEFiltre,self.LENomConcept)
- DComm.setTabOrder(self.LENomConcept,self.LBRegles)
- DComm.setTabOrder(self.LBRegles,self.RBalpha)
- DComm.setTabOrder(self.RBalpha,self.LBNouvCommande)
+ DComm.setTabOrder(self.LENomConcept,self.TWChoix)
+ DComm.setTabOrder(self.TWChoix,self.LBNouvCommande)
DComm.setTabOrder(self.LBNouvCommande,self.bOk)
DComm.setTabOrder(self.bOk,self.bSup)
DComm.setTabOrder(self.bSup,self.bHelp)
self.bHelp.setShortcut(QtGui.QApplication.translate("DComm", "Alt+D", None, QtGui.QApplication.UnicodeUTF8))
self.textLabel1.setText(QtGui.QApplication.translate("DComm", "<h3><p align=\"center\"><u><b>Mots Clefs Permis</b></u></p></h3>", None, QtGui.QApplication.UnicodeUTF8))
self.textLabel1_2.setText(QtGui.QApplication.translate("DComm", "<h3><p align=\"center\"><u><b>Règles</b></u></p></h3>", None, QtGui.QApplication.UnicodeUTF8))
- self.LBRegles.setTabText(self.LBRegles.indexOf(self.MotClef), QtGui.QApplication.translate("DComm", "Ajouter Mot-Clef", None, QtGui.QApplication.UnicodeUTF8))
+ self.TWChoix.setTabText(self.TWChoix.indexOf(self.MotClef), QtGui.QApplication.translate("DComm", "Ajouter Mot-Clef", None, QtGui.QApplication.UnicodeUTF8))
self.groupBox1.setTitle(QtGui.QApplication.translate("DComm", "Concept", None, QtGui.QApplication.UnicodeUTF8))
self.textLabel1_3.setText(QtGui.QApplication.translate("DComm", "<u>Nom du concept :</u>", None, QtGui.QApplication.UnicodeUTF8))
self.textLabel1_3_2.setText(QtGui.QApplication.translate("DComm", "<u>Type du concept :</u>", None, QtGui.QApplication.UnicodeUTF8))
self.textLabel3.setText(QtGui.QApplication.translate("DComm", "L\'opérateur retourne un concept de type :", None, QtGui.QApplication.UnicodeUTF8))
self.typeConcept.setText(QtGui.QApplication.translate("DComm", "TypeDuConcept", None, QtGui.QApplication.UnicodeUTF8))
- self.LBRegles.setTabText(self.LBRegles.indexOf(self.Concept), QtGui.QApplication.translate("DComm", "Nommer Concept", None, QtGui.QApplication.UnicodeUTF8))
+ self.TWChoix.setTabText(self.TWChoix.indexOf(self.Concept), QtGui.QApplication.translate("DComm", "Nommer Concept", None, QtGui.QApplication.UnicodeUTF8))
self.textLabel1_4.setText(QtGui.QApplication.translate("DComm", "<b><u>Commandes :</u></b>", None, QtGui.QApplication.UnicodeUTF8))
- self.textLabel4.setText(QtGui.QApplication.translate("DComm", "La commande choisie sera ajoutée APRES la commande courante", None, QtGui.QApplication.UnicodeUTF8))
self.textLabel6.setText(QtGui.QApplication.translate("DComm", "Filtre", None, QtGui.QApplication.UnicodeUTF8))
- self.RBGroupe.setText(QtGui.QApplication.translate("DComm", "par groupe", None, QtGui.QApplication.UnicodeUTF8))
- self.RBalpha.setText(QtGui.QApplication.translate("DComm", "alphabétique", None, QtGui.QApplication.UnicodeUTF8))
+ self.BNext.setText(QtGui.QApplication.translate("DComm", "Suivant", None, QtGui.QApplication.UnicodeUTF8))
self.groupBox.setTitle(QtGui.QApplication.translate("DComm", "Affichage", None, QtGui.QApplication.UnicodeUTF8))
- self.pushButton.setText(QtGui.QApplication.translate("DComm", "Suivant", None, QtGui.QApplication.UnicodeUTF8))
- self.LBRegles.setTabText(self.LBRegles.indexOf(self.Commande), QtGui.QApplication.translate("DComm", "Nouvelle Commande", None, QtGui.QApplication.UnicodeUTF8))
+ self.RBalpha.setText(QtGui.QApplication.translate("DComm", "alphabétique", None, QtGui.QApplication.UnicodeUTF8))
+ self.RBGroupe.setText(QtGui.QApplication.translate("DComm", "par groupe", None, QtGui.QApplication.UnicodeUTF8))
+ self.textLabel4.setText(QtGui.QApplication.translate("DComm", "La commande choisie sera ajoutée APRES la commande courante", None, QtGui.QApplication.UnicodeUTF8))
+ self.TWChoix.setTabText(self.TWChoix.indexOf(self.Commande), QtGui.QApplication.translate("DComm", "Nouvelle Commande", None, QtGui.QApplication.UnicodeUTF8))
if __name__ == "__main__":
</widget>
</item>
<item row="0" column="0" colspan="3" >
- <widget class="QTabWidget" name="LBRegles" >
+ <widget class="QTabWidget" name="TWChoix" >
<property name="currentIndex" >
<number>0</number>
</property>
</rect>
</property>
</widget>
- <widget class="QListWidget" name="LB" >
+ <widget class="QListWidget" name="LBRegles" >
<property name="geometry" >
<rect>
<x>250</x>
<attribute name="title" >
<string>Nouvelle Commande</string>
</attribute>
- <widget class="QLabel" name="textLabel1_4" >
- <property name="geometry" >
- <rect>
- <x>11</x>
- <y>11</y>
- <width>291</width>
- <height>44</height>
- </rect>
- </property>
- <property name="text" >
- <string><b><u>Commandes :</u></b></string>
- </property>
- <property name="wordWrap" >
- <bool>false</bool>
- </property>
- </widget>
- <widget class="QLabel" name="textLabel4" >
- <property name="geometry" >
- <rect>
- <x>11</x>
- <y>341</y>
- <width>457</width>
- <height>17</height>
- </rect>
- </property>
- <property name="text" >
- <string>La commande choisie sera ajoutée APRES la commande courante</string>
- </property>
- <property name="wordWrap" >
- <bool>false</bool>
- </property>
- </widget>
- <widget class="QLineEdit" name="LEFiltre" >
- <property name="geometry" >
- <rect>
- <x>60</x>
- <y>60</y>
- <width>169</width>
- <height>30</height>
- </rect>
- </property>
- <property name="minimumSize" >
- <size>
- <width>160</width>
- <height>30</height>
- </size>
- </property>
- </widget>
- <widget class="QLabel" name="textLabel6" >
- <property name="geometry" >
- <rect>
- <x>11</x>
- <y>61</y>
- <width>50</width>
- <height>30</height>
- </rect>
- </property>
- <property name="minimumSize" >
- <size>
- <width>50</width>
- <height>30</height>
- </size>
- </property>
- <property name="text" >
- <string>Filtre</string>
- </property>
- <property name="wordWrap" >
- <bool>false</bool>
- </property>
- </widget>
- <widget class="QRadioButton" name="RBGroupe" >
- <property name="geometry" >
- <rect>
- <x>330</x>
- <y>60</y>
- <width>101</width>
- <height>20</height>
- </rect>
- </property>
- <property name="text" >
- <string>par groupe</string>
- </property>
- </widget>
- <widget class="QRadioButton" name="RBalpha" >
- <property name="geometry" >
- <rect>
- <x>330</x>
- <y>30</y>
- <width>120</width>
- <height>20</height>
- </rect>
- </property>
- <property name="text" >
- <string>alphabétique</string>
- </property>
- <property name="checked" >
- <bool>true</bool>
- </property>
- </widget>
- <widget class="QGroupBox" name="groupBox" >
- <property name="geometry" >
- <rect>
- <x>310</x>
- <y>10</y>
- <width>141</width>
- <height>80</height>
- </rect>
- </property>
- <property name="title" >
- <string>Affichage</string>
- </property>
- </widget>
- <widget class="QListWidget" name="LBNouvCommande" >
- <property name="geometry" >
- <rect>
- <x>5</x>
- <y>101</y>
- <width>471</width>
- <height>231</height>
- </rect>
- </property>
- </widget>
- <widget class="QPushButton" name="pushButton" >
- <property name="geometry" >
- <rect>
- <x>233</x>
- <y>60</y>
- <width>71</width>
- <height>27</height>
- </rect>
- </property>
- <property name="text" >
- <string>Suivant</string>
- </property>
- </widget>
+ <layout class="QGridLayout" name="gridLayout_2" >
+ <item row="0" column="0" >
+ <widget class="QLabel" name="textLabel1_4" >
+ <property name="text" >
+ <string><b><u>Commandes :</u></b></string>
+ </property>
+ <property name="wordWrap" >
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="0" >
+ <layout class="QHBoxLayout" name="horizontalLayout" >
+ <item>
+ <widget class="QLabel" name="textLabel6" >
+ <property name="minimumSize" >
+ <size>
+ <width>50</width>
+ <height>30</height>
+ </size>
+ </property>
+ <property name="text" >
+ <string>Filtre</string>
+ </property>
+ <property name="wordWrap" >
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QLineEdit" name="LEFiltre" >
+ <property name="minimumSize" >
+ <size>
+ <width>160</width>
+ <height>30</height>
+ </size>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="BNext" >
+ <property name="text" >
+ <string>Suivant</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item rowspan="2" row="0" column="1" >
+ <widget class="QGroupBox" name="groupBox" >
+ <property name="title" >
+ <string>Affichage</string>
+ </property>
+ <layout class="QGridLayout" name="gridLayout" >
+ <item row="0" column="0" >
+ <widget class="QRadioButton" name="RBalpha" >
+ <property name="text" >
+ <string>alphabétique</string>
+ </property>
+ <property name="checked" >
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="0" >
+ <widget class="QRadioButton" name="RBGroupe" >
+ <property name="text" >
+ <string>par groupe</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ <item row="2" column="0" colspan="2" >
+ <widget class="QListWidget" name="LBNouvCommande" />
+ </item>
+ <item row="3" column="0" colspan="2" >
+ <widget class="QLabel" name="textLabel4" >
+ <property name="text" >
+ <string>La commande choisie sera ajoutée APRES la commande courante</string>
+ </property>
+ <property name="wordWrap" >
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ </layout>
</widget>
</widget>
</item>
</layout>
- <zorder>Commentaire</zorder>
- <zorder>bOk</zorder>
- <zorder>bSup</zorder>
- <zorder>bHelp</zorder>
- <zorder>listWidget</zorder>
- <zorder>LBRegles</zorder>
</widget>
<layoutdefault spacing="6" margin="11" />
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
<tabstops>
<tabstop>LEFiltre</tabstop>
<tabstop>LENomConcept</tabstop>
- <tabstop>LBRegles</tabstop>
- <tabstop>RBalpha</tabstop>
+ <tabstop>TWChoix</tabstop>
<tabstop>LBNouvCommande</tabstop>
<tabstop>bOk</tabstop>
<tabstop>bSup</tabstop>
<tabstop>bHelp</tabstop>
</tabstops>
<resources/>
+ <connections/>
</ui>
# Form implementation generated from reading ui file 'desCommentaire.ui'
#
-# Created: Wed Jul 9 10:11:20 2008
+# Created: Wed Jul 23 12:00:45 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
self.Commande = QtGui.QWidget()
self.Commande.setGeometry(QtCore.QRect(0,0,483,371))
self.Commande.setObjectName("Commande")
+ self.gridLayout_4 = QtGui.QGridLayout(self.Commande)
+ self.gridLayout_4.setObjectName("gridLayout_4")
self.textLabel1_4 = QtGui.QLabel(self.Commande)
- self.textLabel1_4.setGeometry(QtCore.QRect(11,11,291,44))
self.textLabel1_4.setWordWrap(False)
self.textLabel1_4.setObjectName("textLabel1_4")
- self.textLabel4 = QtGui.QLabel(self.Commande)
- self.textLabel4.setGeometry(QtCore.QRect(11,341,457,17))
- self.textLabel4.setWordWrap(False)
- self.textLabel4.setObjectName("textLabel4")
+ self.gridLayout_4.addWidget(self.textLabel1_4,0,0,1,3)
+ self.groupBox = QtGui.QGroupBox(self.Commande)
+ self.groupBox.setObjectName("groupBox")
+ self.gridLayout_3 = QtGui.QGridLayout(self.groupBox)
+ self.gridLayout_3.setObjectName("gridLayout_3")
+ self.RBalpha = QtGui.QRadioButton(self.groupBox)
+ self.RBalpha.setChecked(True)
+ self.RBalpha.setObjectName("RBalpha")
+ self.gridLayout_3.addWidget(self.RBalpha,0,0,1,1)
+ self.RBGroupe = QtGui.QRadioButton(self.groupBox)
+ self.RBGroupe.setObjectName("RBGroupe")
+ self.gridLayout_3.addWidget(self.RBGroupe,1,0,1,1)
+ self.gridLayout_4.addWidget(self.groupBox,0,3,2,1)
+ self.textLabel6_2 = QtGui.QLabel(self.Commande)
+ self.textLabel6_2.setMinimumSize(QtCore.QSize(50,30))
+ self.textLabel6_2.setWordWrap(False)
+ self.textLabel6_2.setObjectName("textLabel6_2")
+ self.gridLayout_4.addWidget(self.textLabel6_2,1,0,1,1)
self.LEFiltre = QtGui.QLineEdit(self.Commande)
- self.LEFiltre.setGeometry(QtCore.QRect(60,60,169,30))
self.LEFiltre.setMinimumSize(QtCore.QSize(160,30))
self.LEFiltre.setObjectName("LEFiltre")
- self.textLabel6 = QtGui.QLabel(self.Commande)
- self.textLabel6.setGeometry(QtCore.QRect(11,61,50,30))
- self.textLabel6.setMinimumSize(QtCore.QSize(50,30))
- self.textLabel6.setWordWrap(False)
- self.textLabel6.setObjectName("textLabel6")
- self.RBGroupe = QtGui.QRadioButton(self.Commande)
- self.RBGroupe.setGeometry(QtCore.QRect(330,60,101,20))
- self.RBGroupe.setObjectName("RBGroupe")
- self.RBalpha = QtGui.QRadioButton(self.Commande)
- self.RBalpha.setGeometry(QtCore.QRect(330,30,120,20))
- self.RBalpha.setChecked(True)
- self.RBalpha.setObjectName("RBalpha")
- self.groupBox = QtGui.QGroupBox(self.Commande)
- self.groupBox.setGeometry(QtCore.QRect(310,10,141,80))
- self.groupBox.setObjectName("groupBox")
+ self.gridLayout_4.addWidget(self.LEFiltre,1,1,1,1)
+ self.BNext = QtGui.QPushButton(self.Commande)
+ self.BNext.setObjectName("BNext")
+ self.gridLayout_4.addWidget(self.BNext,1,2,1,1)
self.LBNouvCommande = QtGui.QListWidget(self.Commande)
- self.LBNouvCommande.setGeometry(QtCore.QRect(5,101,471,231))
self.LBNouvCommande.setObjectName("LBNouvCommande")
- self.pushButton = QtGui.QPushButton(self.Commande)
- self.pushButton.setGeometry(QtCore.QRect(233,60,71,27))
- self.pushButton.setObjectName("pushButton")
+ self.gridLayout_4.addWidget(self.LBNouvCommande,2,0,1,4)
+ self.textLabel4 = QtGui.QLabel(self.Commande)
+ self.textLabel4.setWordWrap(False)
+ self.textLabel4.setObjectName("textLabel4")
+ self.gridLayout_4.addWidget(self.textLabel4,3,0,1,4)
self.TWChoix.addTab(self.Commande,"")
self.gridlayout.addWidget(self.TWChoix,0,0,1,3)
self.retranslateUi(DComment)
- self.TWChoix.setCurrentIndex(1)
- DComment.setTabOrder(self.LEFiltre,self.TWChoix)
- DComment.setTabOrder(self.TWChoix,self.RBalpha)
- DComment.setTabOrder(self.RBalpha,self.bOk)
+ self.TWChoix.setCurrentIndex(0)
+ QtCore.QMetaObject.connectSlotsByName(DComment)
+ DComment.setTabOrder(self.TWChoix,self.bOk)
DComment.setTabOrder(self.bOk,self.bSup)
DComment.setTabOrder(self.bSup,self.bHelp)
self.bHelp.setShortcut(QtGui.QApplication.translate("DComment", "Alt+D", None, QtGui.QApplication.UnicodeUTF8))
self.TWChoix.setTabText(self.TWChoix.indexOf(self.Valeur_Parametre), QtGui.QApplication.translate("DComment", "Commentaire", None, QtGui.QApplication.UnicodeUTF8))
self.textLabel1_4.setText(QtGui.QApplication.translate("DComment", "<b><u>Commandes :</u></b>", None, QtGui.QApplication.UnicodeUTF8))
- self.textLabel4.setText(QtGui.QApplication.translate("DComment", "La commande choisie sera ajoutée APRES la commande courante", None, QtGui.QApplication.UnicodeUTF8))
- self.textLabel6.setText(QtGui.QApplication.translate("DComment", "Filtre", None, QtGui.QApplication.UnicodeUTF8))
- self.RBGroupe.setText(QtGui.QApplication.translate("DComment", "par groupe", None, QtGui.QApplication.UnicodeUTF8))
- self.RBalpha.setText(QtGui.QApplication.translate("DComment", "alphabétique", None, QtGui.QApplication.UnicodeUTF8))
self.groupBox.setTitle(QtGui.QApplication.translate("DComment", "Affichage", None, QtGui.QApplication.UnicodeUTF8))
- self.pushButton.setText(QtGui.QApplication.translate("DComment", "Suivant", None, QtGui.QApplication.UnicodeUTF8))
+ self.RBalpha.setText(QtGui.QApplication.translate("DComment", "alphabétique", None, QtGui.QApplication.UnicodeUTF8))
+ self.RBGroupe.setText(QtGui.QApplication.translate("DComment", "par groupe", None, QtGui.QApplication.UnicodeUTF8))
+ self.textLabel6_2.setText(QtGui.QApplication.translate("DComment", "Filtre", None, QtGui.QApplication.UnicodeUTF8))
+ self.BNext.setText(QtGui.QApplication.translate("DComment", "Suivant", None, QtGui.QApplication.UnicodeUTF8))
+ self.textLabel4.setText(QtGui.QApplication.translate("DComment", "La commande choisie sera ajoutée APRES la commande courante", None, QtGui.QApplication.UnicodeUTF8))
self.TWChoix.setTabText(self.TWChoix.indexOf(self.Commande), QtGui.QApplication.translate("DComment", "Nouvelle Commande", None, QtGui.QApplication.UnicodeUTF8))
<item row="0" column="0" colspan="3" >
<widget class="QTabWidget" name="TWChoix" >
<property name="currentIndex" >
- <number>1</number>
+ <number>0</number>
</property>
<widget class="QWidget" name="Valeur_Parametre" >
<property name="geometry" >
<attribute name="title" >
<string>Nouvelle Commande</string>
</attribute>
- <widget class="QLabel" name="textLabel1_4" >
- <property name="geometry" >
- <rect>
- <x>11</x>
- <y>11</y>
- <width>291</width>
- <height>44</height>
- </rect>
- </property>
- <property name="text" >
- <string><b><u>Commandes :</u></b></string>
- </property>
- <property name="wordWrap" >
- <bool>false</bool>
- </property>
- </widget>
- <widget class="QLabel" name="textLabel4" >
- <property name="geometry" >
- <rect>
- <x>11</x>
- <y>341</y>
- <width>457</width>
- <height>17</height>
- </rect>
- </property>
- <property name="text" >
- <string>La commande choisie sera ajoutée APRES la commande courante</string>
- </property>
- <property name="wordWrap" >
- <bool>false</bool>
- </property>
- </widget>
- <widget class="QLineEdit" name="LEFiltre" >
- <property name="geometry" >
- <rect>
- <x>60</x>
- <y>60</y>
- <width>169</width>
- <height>30</height>
- </rect>
- </property>
- <property name="minimumSize" >
- <size>
- <width>160</width>
- <height>30</height>
- </size>
- </property>
- </widget>
- <widget class="QLabel" name="textLabel6" >
- <property name="geometry" >
- <rect>
- <x>11</x>
- <y>61</y>
- <width>50</width>
- <height>30</height>
- </rect>
- </property>
- <property name="minimumSize" >
- <size>
- <width>50</width>
- <height>30</height>
- </size>
- </property>
- <property name="text" >
- <string>Filtre</string>
- </property>
- <property name="wordWrap" >
- <bool>false</bool>
- </property>
- </widget>
- <widget class="QRadioButton" name="RBGroupe" >
- <property name="geometry" >
- <rect>
- <x>330</x>
- <y>60</y>
- <width>101</width>
- <height>20</height>
- </rect>
- </property>
- <property name="text" >
- <string>par groupe</string>
- </property>
- </widget>
- <widget class="QRadioButton" name="RBalpha" >
- <property name="geometry" >
- <rect>
- <x>330</x>
- <y>30</y>
- <width>120</width>
- <height>20</height>
- </rect>
- </property>
- <property name="text" >
- <string>alphabétique</string>
- </property>
- <property name="checked" >
- <bool>true</bool>
- </property>
- </widget>
- <widget class="QGroupBox" name="groupBox" >
- <property name="geometry" >
- <rect>
- <x>310</x>
- <y>10</y>
- <width>141</width>
- <height>80</height>
- </rect>
- </property>
- <property name="title" >
- <string>Affichage</string>
- </property>
- </widget>
- <widget class="QListWidget" name="LBNouvCommande" >
- <property name="geometry" >
- <rect>
- <x>5</x>
- <y>101</y>
- <width>471</width>
- <height>231</height>
- </rect>
- </property>
- </widget>
- <widget class="QPushButton" name="pushButton" >
- <property name="geometry" >
- <rect>
- <x>233</x>
- <y>60</y>
- <width>71</width>
- <height>27</height>
- </rect>
- </property>
- <property name="text" >
- <string>Suivant</string>
- </property>
- </widget>
+ <layout class="QGridLayout" name="gridLayout_4" >
+ <item row="0" column="0" colspan="3" >
+ <widget class="QLabel" name="textLabel1_4" >
+ <property name="text" >
+ <string><b><u>Commandes :</u></b></string>
+ </property>
+ <property name="wordWrap" >
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ <item rowspan="2" row="0" column="3" >
+ <widget class="QGroupBox" name="groupBox" >
+ <property name="title" >
+ <string>Affichage</string>
+ </property>
+ <layout class="QGridLayout" name="gridLayout_3" >
+ <item row="0" column="0" >
+ <widget class="QRadioButton" name="RBalpha" >
+ <property name="text" >
+ <string>alphabétique</string>
+ </property>
+ <property name="checked" >
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="0" >
+ <widget class="QRadioButton" name="RBGroupe" >
+ <property name="text" >
+ <string>par groupe</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ <item row="1" column="0" >
+ <widget class="QLabel" name="textLabel6_2" >
+ <property name="minimumSize" >
+ <size>
+ <width>50</width>
+ <height>30</height>
+ </size>
+ </property>
+ <property name="text" >
+ <string>Filtre</string>
+ </property>
+ <property name="wordWrap" >
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="1" >
+ <widget class="QLineEdit" name="LEFiltre" >
+ <property name="minimumSize" >
+ <size>
+ <width>160</width>
+ <height>30</height>
+ </size>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="2" >
+ <widget class="QPushButton" name="BNext" >
+ <property name="text" >
+ <string>Suivant</string>
+ </property>
+ </widget>
+ </item>
+ <item row="2" column="0" colspan="4" >
+ <widget class="QListWidget" name="LBNouvCommande" />
+ </item>
+ <item row="3" column="0" colspan="4" >
+ <widget class="QLabel" name="textLabel4" >
+ <property name="text" >
+ <string>La commande choisie sera ajoutée APRES la commande courante</string>
+ </property>
+ <property name="wordWrap" >
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ </layout>
</widget>
</widget>
</item>
<layoutdefault spacing="6" margin="11" />
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
<tabstops>
- <tabstop>LEFiltre</tabstop>
<tabstop>TWChoix</tabstop>
- <tabstop>RBalpha</tabstop>
<tabstop>bOk</tabstop>
<tabstop>bSup</tabstop>
<tabstop>bHelp</tabstop>
</tabstops>
<resources/>
+ <connections/>
</ui>
# Form implementation generated from reading ui file 'desFormule.ui'
#
-# Created: Wed Jul 9 10:11:21 2008
+# Created: Wed Jul 23 11:43:53 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
self.Commande = QtGui.QWidget()
self.Commande.setGeometry(QtCore.QRect(0,0,507,384))
self.Commande.setObjectName("Commande")
+ self.gridLayout_2 = QtGui.QGridLayout(self.Commande)
+ self.gridLayout_2.setObjectName("gridLayout_2")
self.textLabel1_4 = QtGui.QLabel(self.Commande)
- self.textLabel1_4.setGeometry(QtCore.QRect(11,11,291,44))
self.textLabel1_4.setWordWrap(False)
self.textLabel1_4.setObjectName("textLabel1_4")
- self.textLabel4 = QtGui.QLabel(self.Commande)
- self.textLabel4.setGeometry(QtCore.QRect(11,341,457,17))
- self.textLabel4.setWordWrap(False)
- self.textLabel4.setObjectName("textLabel4")
- self.LEFiltre = QtGui.QLineEdit(self.Commande)
- self.LEFiltre.setGeometry(QtCore.QRect(60,60,169,30))
- self.LEFiltre.setMinimumSize(QtCore.QSize(160,30))
- self.LEFiltre.setObjectName("LEFiltre")
+ self.gridLayout_2.addWidget(self.textLabel1_4,0,0,1,1)
+ self.groupBox = QtGui.QGroupBox(self.Commande)
+ self.groupBox.setObjectName("groupBox")
+ self.gridLayout = QtGui.QGridLayout(self.groupBox)
+ self.gridLayout.setObjectName("gridLayout")
+ self.RBalpha = QtGui.QRadioButton(self.groupBox)
+ self.RBalpha.setChecked(True)
+ self.RBalpha.setObjectName("RBalpha")
+ self.gridLayout.addWidget(self.RBalpha,0,0,1,1)
+ self.RBGroupe = QtGui.QRadioButton(self.groupBox)
+ self.RBGroupe.setObjectName("RBGroupe")
+ self.gridLayout.addWidget(self.RBGroupe,1,0,1,1)
+ self.gridLayout_2.addWidget(self.groupBox,0,1,2,1)
+ self.horizontalLayout = QtGui.QHBoxLayout()
+ self.horizontalLayout.setObjectName("horizontalLayout")
self.textLabel6 = QtGui.QLabel(self.Commande)
- self.textLabel6.setGeometry(QtCore.QRect(11,61,50,30))
self.textLabel6.setMinimumSize(QtCore.QSize(50,30))
self.textLabel6.setWordWrap(False)
self.textLabel6.setObjectName("textLabel6")
- self.RBGroupe = QtGui.QRadioButton(self.Commande)
- self.RBGroupe.setGeometry(QtCore.QRect(330,60,101,20))
- self.RBGroupe.setObjectName("RBGroupe")
- self.RBalpha = QtGui.QRadioButton(self.Commande)
- self.RBalpha.setGeometry(QtCore.QRect(330,30,120,20))
- self.RBalpha.setChecked(True)
- self.RBalpha.setObjectName("RBalpha")
- self.groupBox = QtGui.QGroupBox(self.Commande)
- self.groupBox.setGeometry(QtCore.QRect(310,10,141,80))
- self.groupBox.setObjectName("groupBox")
+ self.horizontalLayout.addWidget(self.textLabel6)
+ self.LEFiltre = QtGui.QLineEdit(self.Commande)
+ self.LEFiltre.setMinimumSize(QtCore.QSize(160,30))
+ self.LEFiltre.setObjectName("LEFiltre")
+ self.horizontalLayout.addWidget(self.LEFiltre)
+ self.BNext = QtGui.QPushButton(self.Commande)
+ self.BNext.setObjectName("BNext")
+ self.horizontalLayout.addWidget(self.BNext)
+ self.gridLayout_2.addLayout(self.horizontalLayout,1,0,1,1)
self.LBNouvCommande = QtGui.QListWidget(self.Commande)
- self.LBNouvCommande.setGeometry(QtCore.QRect(5,101,471,231))
self.LBNouvCommande.setObjectName("LBNouvCommande")
- self.pushButton = QtGui.QPushButton(self.Commande)
- self.pushButton.setGeometry(QtCore.QRect(233,60,71,27))
- self.pushButton.setObjectName("pushButton")
+ self.gridLayout_2.addWidget(self.LBNouvCommande,2,0,1,2)
+ self.textLabel4 = QtGui.QLabel(self.Commande)
+ self.textLabel4.setWordWrap(False)
+ self.textLabel4.setObjectName("textLabel4")
+ self.gridLayout_2.addWidget(self.textLabel4,3,0,1,2)
self.TWChoix.addTab(self.Commande,"")
self.gridlayout.addWidget(self.TWChoix,0,0,1,1)
self.textLabel1_2.setText(QtGui.QApplication.translate("DFormule", "<h3><p align=\"center\"><u><b>Arguments</b></u></p></h3>", None, QtGui.QApplication.UnicodeUTF8))
self.TWChoix.setTabText(self.TWChoix.indexOf(self.Formule), QtGui.QApplication.translate("DFormule", "Définition Formule", None, QtGui.QApplication.UnicodeUTF8))
self.textLabel1_4.setText(QtGui.QApplication.translate("DFormule", "<b><u>Commandes :</u></b>", None, QtGui.QApplication.UnicodeUTF8))
- self.textLabel4.setText(QtGui.QApplication.translate("DFormule", "La commande choisie sera ajoutée APRES la commande courante", None, QtGui.QApplication.UnicodeUTF8))
- self.textLabel6.setText(QtGui.QApplication.translate("DFormule", "Filtre", None, QtGui.QApplication.UnicodeUTF8))
- self.RBGroupe.setText(QtGui.QApplication.translate("DFormule", "par groupe", None, QtGui.QApplication.UnicodeUTF8))
- self.RBalpha.setText(QtGui.QApplication.translate("DFormule", "alphabétique", None, QtGui.QApplication.UnicodeUTF8))
self.groupBox.setTitle(QtGui.QApplication.translate("DFormule", "Affichage", None, QtGui.QApplication.UnicodeUTF8))
- self.pushButton.setText(QtGui.QApplication.translate("DFormule", "Suivant", None, QtGui.QApplication.UnicodeUTF8))
+ self.RBalpha.setText(QtGui.QApplication.translate("DFormule", "alphabétique", None, QtGui.QApplication.UnicodeUTF8))
+ self.RBGroupe.setText(QtGui.QApplication.translate("DFormule", "par groupe", None, QtGui.QApplication.UnicodeUTF8))
+ self.textLabel6.setText(QtGui.QApplication.translate("DFormule", "Filtre", None, QtGui.QApplication.UnicodeUTF8))
+ self.BNext.setText(QtGui.QApplication.translate("DFormule", "Suivant", None, QtGui.QApplication.UnicodeUTF8))
+ self.textLabel4.setText(QtGui.QApplication.translate("DFormule", "La commande choisie sera ajoutée APRES la commande courante", None, QtGui.QApplication.UnicodeUTF8))
self.TWChoix.setTabText(self.TWChoix.indexOf(self.Commande), QtGui.QApplication.translate("DFormule", "Nouvelle Commande", None, QtGui.QApplication.UnicodeUTF8))
<attribute name="title" >
<string>Nouvelle Commande</string>
</attribute>
- <widget class="QLabel" name="textLabel1_4" >
- <property name="geometry" >
- <rect>
- <x>11</x>
- <y>11</y>
- <width>291</width>
- <height>44</height>
- </rect>
- </property>
- <property name="text" >
- <string><b><u>Commandes :</u></b></string>
- </property>
- <property name="wordWrap" >
- <bool>false</bool>
- </property>
- </widget>
- <widget class="QLabel" name="textLabel4" >
- <property name="geometry" >
- <rect>
- <x>11</x>
- <y>341</y>
- <width>457</width>
- <height>17</height>
- </rect>
- </property>
- <property name="text" >
- <string>La commande choisie sera ajoutée APRES la commande courante</string>
- </property>
- <property name="wordWrap" >
- <bool>false</bool>
- </property>
- </widget>
- <widget class="QLineEdit" name="LEFiltre" >
- <property name="geometry" >
- <rect>
- <x>60</x>
- <y>60</y>
- <width>169</width>
- <height>30</height>
- </rect>
- </property>
- <property name="minimumSize" >
- <size>
- <width>160</width>
- <height>30</height>
- </size>
- </property>
- </widget>
- <widget class="QLabel" name="textLabel6" >
- <property name="geometry" >
- <rect>
- <x>11</x>
- <y>61</y>
- <width>50</width>
- <height>30</height>
- </rect>
- </property>
- <property name="minimumSize" >
- <size>
- <width>50</width>
- <height>30</height>
- </size>
- </property>
- <property name="text" >
- <string>Filtre</string>
- </property>
- <property name="wordWrap" >
- <bool>false</bool>
- </property>
- </widget>
- <widget class="QRadioButton" name="RBGroupe" >
- <property name="geometry" >
- <rect>
- <x>330</x>
- <y>60</y>
- <width>101</width>
- <height>20</height>
- </rect>
- </property>
- <property name="text" >
- <string>par groupe</string>
- </property>
- </widget>
- <widget class="QRadioButton" name="RBalpha" >
- <property name="geometry" >
- <rect>
- <x>330</x>
- <y>30</y>
- <width>120</width>
- <height>20</height>
- </rect>
- </property>
- <property name="text" >
- <string>alphabétique</string>
- </property>
- <property name="checked" >
- <bool>true</bool>
- </property>
- </widget>
- <widget class="QGroupBox" name="groupBox" >
- <property name="geometry" >
- <rect>
- <x>310</x>
- <y>10</y>
- <width>141</width>
- <height>80</height>
- </rect>
- </property>
- <property name="title" >
- <string>Affichage</string>
- </property>
- </widget>
- <widget class="QListWidget" name="LBNouvCommande" >
- <property name="geometry" >
- <rect>
- <x>5</x>
- <y>101</y>
- <width>471</width>
- <height>231</height>
- </rect>
- </property>
- </widget>
- <widget class="QPushButton" name="pushButton" >
- <property name="geometry" >
- <rect>
- <x>233</x>
- <y>60</y>
- <width>71</width>
- <height>27</height>
- </rect>
- </property>
- <property name="text" >
- <string>Suivant</string>
- </property>
- </widget>
+ <layout class="QGridLayout" name="gridLayout_2" >
+ <item row="0" column="0" >
+ <widget class="QLabel" name="textLabel1_4" >
+ <property name="text" >
+ <string><b><u>Commandes :</u></b></string>
+ </property>
+ <property name="wordWrap" >
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ <item rowspan="2" row="0" column="1" >
+ <widget class="QGroupBox" name="groupBox" >
+ <property name="title" >
+ <string>Affichage</string>
+ </property>
+ <layout class="QGridLayout" name="gridLayout" >
+ <item row="0" column="0" >
+ <widget class="QRadioButton" name="RBalpha" >
+ <property name="text" >
+ <string>alphabétique</string>
+ </property>
+ <property name="checked" >
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="0" >
+ <widget class="QRadioButton" name="RBGroupe" >
+ <property name="text" >
+ <string>par groupe</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ <item row="1" column="0" >
+ <layout class="QHBoxLayout" name="horizontalLayout" >
+ <item>
+ <widget class="QLabel" name="textLabel6" >
+ <property name="minimumSize" >
+ <size>
+ <width>50</width>
+ <height>30</height>
+ </size>
+ </property>
+ <property name="text" >
+ <string>Filtre</string>
+ </property>
+ <property name="wordWrap" >
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QLineEdit" name="LEFiltre" >
+ <property name="minimumSize" >
+ <size>
+ <width>160</width>
+ <height>30</height>
+ </size>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="BNext" >
+ <property name="text" >
+ <string>Suivant</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item row="2" column="0" colspan="2" >
+ <widget class="QListWidget" name="LBNouvCommande" />
+ </item>
+ <item row="3" column="0" colspan="2" >
+ <widget class="QLabel" name="textLabel4" >
+ <property name="text" >
+ <string>La commande choisie sera ajoutée APRES la commande courante</string>
+ </property>
+ <property name="wordWrap" >
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ </layout>
</widget>
</widget>
</item>
# Form implementation generated from reading ui file 'desInclude.ui'
#
-# Created: Wed Jul 9 10:11:21 2008
+# Created: Wed Jul 23 11:48:02 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
self.MotClef.setObjectName("MotClef")
self.gridlayout1 = QtGui.QGridLayout(self.MotClef)
self.gridlayout1.setObjectName("gridlayout1")
- self.LBMCPermis = QtGui.QListView(self.MotClef)
+ self.LBMCPermis = QtGui.QListWidget(self.MotClef)
self.LBMCPermis.setMinimumSize(QtCore.QSize(0,0))
self.LBMCPermis.setObjectName("LBMCPermis")
self.gridlayout1.addWidget(self.LBMCPermis,1,0,1,1)
self.textLabel1.setWordWrap(False)
self.textLabel1.setObjectName("textLabel1")
self.gridlayout1.addWidget(self.textLabel1,0,0,1,1)
- self.LBRegles = QtGui.QListView(self.MotClef)
+ self.LBRegles = QtGui.QListWidget(self.MotClef)
self.LBRegles.setObjectName("LBRegles")
self.gridlayout1.addWidget(self.LBRegles,1,1,1,1)
self.textLabel1_2 = QtGui.QLabel(self.MotClef)
self.Commande = QtGui.QWidget()
self.Commande.setGeometry(QtCore.QRect(0,0,499,400))
self.Commande.setObjectName("Commande")
+ self.gridLayout_2 = QtGui.QGridLayout(self.Commande)
+ self.gridLayout_2.setObjectName("gridLayout_2")
self.textLabel1_4 = QtGui.QLabel(self.Commande)
- self.textLabel1_4.setGeometry(QtCore.QRect(11,11,291,44))
self.textLabel1_4.setWordWrap(False)
self.textLabel1_4.setObjectName("textLabel1_4")
- self.textLabel4 = QtGui.QLabel(self.Commande)
- self.textLabel4.setGeometry(QtCore.QRect(11,341,457,17))
- self.textLabel4.setWordWrap(False)
- self.textLabel4.setObjectName("textLabel4")
- self.LEFiltre = QtGui.QLineEdit(self.Commande)
- self.LEFiltre.setGeometry(QtCore.QRect(60,60,169,30))
- self.LEFiltre.setMinimumSize(QtCore.QSize(160,30))
- self.LEFiltre.setObjectName("LEFiltre")
+ self.gridLayout_2.addWidget(self.textLabel1_4,0,0,1,3)
+ self.groupBox = QtGui.QGroupBox(self.Commande)
+ self.groupBox.setObjectName("groupBox")
+ self.gridLayout = QtGui.QGridLayout(self.groupBox)
+ self.gridLayout.setObjectName("gridLayout")
+ self.RBalpha = QtGui.QRadioButton(self.groupBox)
+ self.RBalpha.setChecked(True)
+ self.RBalpha.setObjectName("RBalpha")
+ self.gridLayout.addWidget(self.RBalpha,0,0,1,1)
+ self.RBGroupe = QtGui.QRadioButton(self.groupBox)
+ self.RBGroupe.setObjectName("RBGroupe")
+ self.gridLayout.addWidget(self.RBGroupe,1,0,1,1)
+ self.gridLayout_2.addWidget(self.groupBox,0,3,2,1)
self.textLabel6 = QtGui.QLabel(self.Commande)
- self.textLabel6.setGeometry(QtCore.QRect(11,61,50,30))
self.textLabel6.setMinimumSize(QtCore.QSize(50,30))
self.textLabel6.setWordWrap(False)
self.textLabel6.setObjectName("textLabel6")
- self.RBGroupe = QtGui.QRadioButton(self.Commande)
- self.RBGroupe.setGeometry(QtCore.QRect(330,60,101,20))
- self.RBGroupe.setObjectName("RBGroupe")
- self.RBalpha = QtGui.QRadioButton(self.Commande)
- self.RBalpha.setGeometry(QtCore.QRect(330,30,120,20))
- self.RBalpha.setChecked(True)
- self.RBalpha.setObjectName("RBalpha")
- self.groupBox = QtGui.QGroupBox(self.Commande)
- self.groupBox.setGeometry(QtCore.QRect(310,10,141,80))
- self.groupBox.setObjectName("groupBox")
+ self.gridLayout_2.addWidget(self.textLabel6,1,0,1,1)
+ self.LEFiltre = QtGui.QLineEdit(self.Commande)
+ self.LEFiltre.setMinimumSize(QtCore.QSize(160,30))
+ self.LEFiltre.setObjectName("LEFiltre")
+ self.gridLayout_2.addWidget(self.LEFiltre,1,1,1,1)
+ self.BNext = QtGui.QPushButton(self.Commande)
+ self.BNext.setObjectName("BNext")
+ self.gridLayout_2.addWidget(self.BNext,1,2,1,1)
self.LBNouvCommande = QtGui.QListWidget(self.Commande)
- self.LBNouvCommande.setGeometry(QtCore.QRect(5,101,471,231))
self.LBNouvCommande.setObjectName("LBNouvCommande")
- self.pushButton = QtGui.QPushButton(self.Commande)
- self.pushButton.setGeometry(QtCore.QRect(233,60,71,27))
- self.pushButton.setObjectName("pushButton")
+ self.gridLayout_2.addWidget(self.LBNouvCommande,2,0,1,4)
+ self.textLabel4 = QtGui.QLabel(self.Commande)
+ self.textLabel4.setWordWrap(False)
+ self.textLabel4.setObjectName("textLabel4")
+ self.gridLayout_2.addWidget(self.textLabel4,3,0,1,4)
self.TWChoix.addTab(self.Commande,"")
self.TabPage = QtGui.QWidget()
self.TabPage.setGeometry(QtCore.QRect(0,0,499,400))
self.gridlayout.addWidget(self.TWChoix,0,0,1,3)
self.retranslateUi(DInc1)
- self.TWChoix.setCurrentIndex(0)
+ self.TWChoix.setCurrentIndex(2)
QtCore.QMetaObject.connectSlotsByName(DInc1)
DInc1.setTabOrder(self.LEFiltre,self.LENomFichier)
DInc1.setTabOrder(self.LENomFichier,self.bHelp)
self.textLabel1_2.setText(QtGui.QApplication.translate("DInc1", "<h3><p align=\"center\"><u><b>Régles</b></u></p></h3>", None, QtGui.QApplication.UnicodeUTF8))
self.TWChoix.setTabText(self.TWChoix.indexOf(self.MotClef), QtGui.QApplication.translate("DInc1", "Ajouter Mot-Clef", None, QtGui.QApplication.UnicodeUTF8))
self.textLabel1_4.setText(QtGui.QApplication.translate("DInc1", "<b><u>Commandes :</u></b>", None, QtGui.QApplication.UnicodeUTF8))
- self.textLabel4.setText(QtGui.QApplication.translate("DInc1", "La commande choisie sera ajoutée APRES la commande courante", None, QtGui.QApplication.UnicodeUTF8))
- self.textLabel6.setText(QtGui.QApplication.translate("DInc1", "Filtre", None, QtGui.QApplication.UnicodeUTF8))
- self.RBGroupe.setText(QtGui.QApplication.translate("DInc1", "par groupe", None, QtGui.QApplication.UnicodeUTF8))
- self.RBalpha.setText(QtGui.QApplication.translate("DInc1", "alphabétique", None, QtGui.QApplication.UnicodeUTF8))
self.groupBox.setTitle(QtGui.QApplication.translate("DInc1", "Affichage", None, QtGui.QApplication.UnicodeUTF8))
- self.pushButton.setText(QtGui.QApplication.translate("DInc1", "Suivant", None, QtGui.QApplication.UnicodeUTF8))
+ self.RBalpha.setText(QtGui.QApplication.translate("DInc1", "alphabétique", None, QtGui.QApplication.UnicodeUTF8))
+ self.RBGroupe.setText(QtGui.QApplication.translate("DInc1", "par groupe", None, QtGui.QApplication.UnicodeUTF8))
+ self.textLabel6.setText(QtGui.QApplication.translate("DInc1", "Filtre", None, QtGui.QApplication.UnicodeUTF8))
+ self.BNext.setText(QtGui.QApplication.translate("DInc1", "Suivant", None, QtGui.QApplication.UnicodeUTF8))
+ self.textLabel4.setText(QtGui.QApplication.translate("DInc1", "La commande choisie sera ajoutée APRES la commande courante", None, QtGui.QApplication.UnicodeUTF8))
self.TWChoix.setTabText(self.TWChoix.indexOf(self.Commande), QtGui.QApplication.translate("DInc1", "Nouvelle Commande", None, QtGui.QApplication.UnicodeUTF8))
self.textLabel1_3.setText(QtGui.QApplication.translate("DInc1", "<font size=\"+1\">La commande INCLUDE requiert un nom de Fichier :</font>", None, QtGui.QApplication.UnicodeUTF8))
self.BBrowse.setText(QtGui.QApplication.translate("DInc1", "Edit", None, QtGui.QApplication.UnicodeUTF8))
<item row="0" column="0" colspan="3" >
<widget class="QTabWidget" name="TWChoix" >
<property name="currentIndex" >
- <number>0</number>
+ <number>2</number>
</property>
<widget class="QWidget" name="MotClef" >
<property name="geometry" >
</attribute>
<layout class="QGridLayout" >
<item row="1" column="0" >
- <widget class="QListView" name="LBMCPermis" >
+ <widget class="QListWidget" name="LBMCPermis" >
<property name="minimumSize" >
<size>
<width>0</width>
</widget>
</item>
<item row="1" column="1" >
- <widget class="QListView" name="LBRegles" />
+ <widget class="QListWidget" name="LBRegles" />
</item>
<item row="0" column="1" >
<widget class="QLabel" name="textLabel1_2" >
<attribute name="title" >
<string>Nouvelle Commande</string>
</attribute>
- <widget class="QLabel" name="textLabel1_4" >
- <property name="geometry" >
- <rect>
- <x>11</x>
- <y>11</y>
- <width>291</width>
- <height>44</height>
- </rect>
- </property>
- <property name="text" >
- <string><b><u>Commandes :</u></b></string>
- </property>
- <property name="wordWrap" >
- <bool>false</bool>
- </property>
- </widget>
- <widget class="QLabel" name="textLabel4" >
- <property name="geometry" >
- <rect>
- <x>11</x>
- <y>341</y>
- <width>457</width>
- <height>17</height>
- </rect>
- </property>
- <property name="text" >
- <string>La commande choisie sera ajoutée APRES la commande courante</string>
- </property>
- <property name="wordWrap" >
- <bool>false</bool>
- </property>
- </widget>
- <widget class="QLineEdit" name="LEFiltre" >
- <property name="geometry" >
- <rect>
- <x>60</x>
- <y>60</y>
- <width>169</width>
- <height>30</height>
- </rect>
- </property>
- <property name="minimumSize" >
- <size>
- <width>160</width>
- <height>30</height>
- </size>
- </property>
- </widget>
- <widget class="QLabel" name="textLabel6" >
- <property name="geometry" >
- <rect>
- <x>11</x>
- <y>61</y>
- <width>50</width>
- <height>30</height>
- </rect>
- </property>
- <property name="minimumSize" >
- <size>
- <width>50</width>
- <height>30</height>
- </size>
- </property>
- <property name="text" >
- <string>Filtre</string>
- </property>
- <property name="wordWrap" >
- <bool>false</bool>
- </property>
- </widget>
- <widget class="QRadioButton" name="RBGroupe" >
- <property name="geometry" >
- <rect>
- <x>330</x>
- <y>60</y>
- <width>101</width>
- <height>20</height>
- </rect>
- </property>
- <property name="text" >
- <string>par groupe</string>
- </property>
- </widget>
- <widget class="QRadioButton" name="RBalpha" >
- <property name="geometry" >
- <rect>
- <x>330</x>
- <y>30</y>
- <width>120</width>
- <height>20</height>
- </rect>
- </property>
- <property name="text" >
- <string>alphabétique</string>
- </property>
- <property name="checked" >
- <bool>true</bool>
- </property>
- </widget>
- <widget class="QGroupBox" name="groupBox" >
- <property name="geometry" >
- <rect>
- <x>310</x>
- <y>10</y>
- <width>141</width>
- <height>80</height>
- </rect>
- </property>
- <property name="title" >
- <string>Affichage</string>
- </property>
- </widget>
- <widget class="QListWidget" name="LBNouvCommande" >
- <property name="geometry" >
- <rect>
- <x>5</x>
- <y>101</y>
- <width>471</width>
- <height>231</height>
- </rect>
- </property>
- </widget>
- <widget class="QPushButton" name="pushButton" >
- <property name="geometry" >
- <rect>
- <x>233</x>
- <y>60</y>
- <width>71</width>
- <height>27</height>
- </rect>
- </property>
- <property name="text" >
- <string>Suivant</string>
- </property>
- </widget>
+ <layout class="QGridLayout" name="gridLayout_2" >
+ <item row="0" column="0" colspan="3" >
+ <widget class="QLabel" name="textLabel1_4" >
+ <property name="text" >
+ <string><b><u>Commandes :</u></b></string>
+ </property>
+ <property name="wordWrap" >
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ <item rowspan="2" row="0" column="3" >
+ <widget class="QGroupBox" name="groupBox" >
+ <property name="title" >
+ <string>Affichage</string>
+ </property>
+ <layout class="QGridLayout" name="gridLayout" >
+ <item row="0" column="0" >
+ <widget class="QRadioButton" name="RBalpha" >
+ <property name="text" >
+ <string>alphabétique</string>
+ </property>
+ <property name="checked" >
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="0" >
+ <widget class="QRadioButton" name="RBGroupe" >
+ <property name="text" >
+ <string>par groupe</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ <item row="1" column="0" >
+ <widget class="QLabel" name="textLabel6" >
+ <property name="minimumSize" >
+ <size>
+ <width>50</width>
+ <height>30</height>
+ </size>
+ </property>
+ <property name="text" >
+ <string>Filtre</string>
+ </property>
+ <property name="wordWrap" >
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="1" >
+ <widget class="QLineEdit" name="LEFiltre" >
+ <property name="minimumSize" >
+ <size>
+ <width>160</width>
+ <height>30</height>
+ </size>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="2" >
+ <widget class="QPushButton" name="BNext" >
+ <property name="text" >
+ <string>Suivant</string>
+ </property>
+ </widget>
+ </item>
+ <item row="2" column="0" colspan="4" >
+ <widget class="QListWidget" name="LBNouvCommande" />
+ </item>
+ <item row="3" column="0" colspan="4" >
+ <widget class="QLabel" name="textLabel4" >
+ <property name="text" >
+ <string>La commande choisie sera ajoutée APRES la commande courante</string>
+ </property>
+ <property name="wordWrap" >
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ </layout>
</widget>
<widget class="QWidget" name="TabPage" >
<property name="geometry" >
# Form implementation generated from reading ui file 'desListeParam.ui'
#
-# Created: Wed Jul 9 10:11:21 2008
+# Created: Fri Jul 18 16:24:34 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
DLisParam.resize(413,394)
self.gridlayout = QtGui.QGridLayout(DLisParam)
self.gridlayout.setObjectName("gridlayout")
- self.LBParam = QtGui.QListView(DLisParam)
+ self.LBParam = QtGui.QListWidget(DLisParam)
self.LBParam.setObjectName("LBParam")
self.gridlayout.addWidget(self.LBParam,0,0,1,1)
</property>
<layout class="QGridLayout" >
<item row="0" column="0" >
- <widget class="QListView" name="LBParam" />
+ <widget class="QListWidget" name="LBParam" />
</item>
</layout>
</widget>
# Form implementation generated from reading ui file 'desMCFact.ui'
#
-# Created: Wed Jul 9 10:11:21 2008
+# Created: Fri Jul 18 16:24:34 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
self.textLabel1.setWordWrap(False)
self.textLabel1.setObjectName("textLabel1")
self.gridlayout1.addWidget(self.textLabel1,0,0,1,1)
- self.LBMCPermis = QtGui.QListView(self.MotClef)
+ self.LBMCPermis = QtGui.QListWidget(self.MotClef)
self.LBMCPermis.setMinimumSize(QtCore.QSize(0,0))
self.LBMCPermis.setObjectName("LBMCPermis")
self.gridlayout1.addWidget(self.LBMCPermis,1,0,1,1)
- self.LBRegles = QtGui.QListView(self.MotClef)
+ self.LBRegles = QtGui.QListWidget(self.MotClef)
self.LBRegles.setObjectName("LBRegles")
self.gridlayout1.addWidget(self.LBRegles,1,1,1,1)
self.textLabel1_2 = QtGui.QLabel(self.MotClef)
</widget>
</item>
<item row="1" column="0" >
- <widget class="QListView" name="LBMCPermis" >
+ <widget class="QListWidget" name="LBMCPermis" >
<property name="minimumSize" >
<size>
<width>0</width>
</widget>
</item>
<item row="1" column="1" >
- <widget class="QListView" name="LBRegles" />
+ <widget class="QListWidget" name="LBRegles" />
</item>
<item row="0" column="1" >
<widget class="QLabel" name="textLabel1_2" >
# Form implementation generated from reading ui file 'desParam.ui'
#
-# Created: Wed Jul 9 10:11:21 2008
+# Created: Wed Jul 23 11:49:56 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
self.TWChoix = QtGui.QTabWidget(DParam)
self.TWChoix.setObjectName("TWChoix")
self.Valeur_Parametre = QtGui.QWidget()
+ self.Valeur_Parametre.setGeometry(QtCore.QRect(0,0,483,372))
self.Valeur_Parametre.setObjectName("Valeur_Parametre")
self.textLabel2_2_2 = QtGui.QLabel(self.Valeur_Parametre)
self.textLabel2_2_2.setGeometry(QtCore.QRect(80,11,231,89))
self.lineEditVal.setObjectName("lineEditVal")
self.TWChoix.addTab(self.Valeur_Parametre,"")
self.Commande = QtGui.QWidget()
- self.Commande.setGeometry(QtCore.QRect(0,0,483,371))
+ self.Commande.setGeometry(QtCore.QRect(0,0,483,372))
self.Commande.setObjectName("Commande")
+ self.gridLayout_2 = QtGui.QGridLayout(self.Commande)
+ self.gridLayout_2.setObjectName("gridLayout_2")
self.textLabel1_4 = QtGui.QLabel(self.Commande)
- self.textLabel1_4.setGeometry(QtCore.QRect(11,11,291,44))
self.textLabel1_4.setWordWrap(False)
self.textLabel1_4.setObjectName("textLabel1_4")
- self.textLabel4 = QtGui.QLabel(self.Commande)
- self.textLabel4.setGeometry(QtCore.QRect(11,341,457,17))
- self.textLabel4.setWordWrap(False)
- self.textLabel4.setObjectName("textLabel4")
- self.LEFiltre = QtGui.QLineEdit(self.Commande)
- self.LEFiltre.setGeometry(QtCore.QRect(60,60,169,30))
- self.LEFiltre.setMinimumSize(QtCore.QSize(160,30))
- self.LEFiltre.setObjectName("LEFiltre")
+ self.gridLayout_2.addWidget(self.textLabel1_4,0,0,1,3)
+ self.groupBox = QtGui.QGroupBox(self.Commande)
+ self.groupBox.setObjectName("groupBox")
+ self.gridLayout = QtGui.QGridLayout(self.groupBox)
+ self.gridLayout.setObjectName("gridLayout")
+ self.RBGroupe = QtGui.QRadioButton(self.groupBox)
+ self.RBGroupe.setObjectName("RBGroupe")
+ self.gridLayout.addWidget(self.RBGroupe,1,0,1,1)
+ self.RBalpha = QtGui.QRadioButton(self.groupBox)
+ self.RBalpha.setChecked(True)
+ self.RBalpha.setObjectName("RBalpha")
+ self.gridLayout.addWidget(self.RBalpha,0,0,1,1)
+ self.gridLayout_2.addWidget(self.groupBox,0,3,2,1)
self.textLabel6 = QtGui.QLabel(self.Commande)
- self.textLabel6.setGeometry(QtCore.QRect(11,61,50,30))
self.textLabel6.setMinimumSize(QtCore.QSize(50,30))
self.textLabel6.setWordWrap(False)
self.textLabel6.setObjectName("textLabel6")
- self.RBGroupe = QtGui.QRadioButton(self.Commande)
- self.RBGroupe.setGeometry(QtCore.QRect(330,60,101,20))
- self.RBGroupe.setObjectName("RBGroupe")
- self.RBalpha = QtGui.QRadioButton(self.Commande)
- self.RBalpha.setGeometry(QtCore.QRect(330,30,120,20))
- self.RBalpha.setChecked(True)
- self.RBalpha.setObjectName("RBalpha")
- self.groupBox = QtGui.QGroupBox(self.Commande)
- self.groupBox.setGeometry(QtCore.QRect(310,10,141,80))
- self.groupBox.setObjectName("groupBox")
+ self.gridLayout_2.addWidget(self.textLabel6,1,0,1,1)
+ self.LEFiltre = QtGui.QLineEdit(self.Commande)
+ self.LEFiltre.setMinimumSize(QtCore.QSize(160,30))
+ self.LEFiltre.setObjectName("LEFiltre")
+ self.gridLayout_2.addWidget(self.LEFiltre,1,1,1,1)
+ self.BNext = QtGui.QPushButton(self.Commande)
+ self.BNext.setObjectName("BNext")
+ self.gridLayout_2.addWidget(self.BNext,1,2,1,1)
self.LBNouvCommande = QtGui.QListWidget(self.Commande)
- self.LBNouvCommande.setGeometry(QtCore.QRect(5,101,471,231))
self.LBNouvCommande.setObjectName("LBNouvCommande")
- self.pushButton = QtGui.QPushButton(self.Commande)
- self.pushButton.setGeometry(QtCore.QRect(233,60,71,27))
- self.pushButton.setObjectName("pushButton")
+ self.gridLayout_2.addWidget(self.LBNouvCommande,2,0,1,4)
+ self.textLabel4 = QtGui.QLabel(self.Commande)
+ self.textLabel4.setWordWrap(False)
+ self.textLabel4.setObjectName("textLabel4")
+ self.gridLayout_2.addWidget(self.textLabel4,3,0,1,4)
self.TWChoix.addTab(self.Commande,"")
self.gridlayout.addWidget(self.TWChoix,0,0,1,3)
self.bOk = QtGui.QPushButton(DParam)
self.bOk.setMinimumSize(QtCore.QSize(0,30))
self.bOk.setAutoDefault(True)
self.bOk.setDefault(True)
- self.bOk.setProperty("toolTip",QtCore.QVariant(QtGui.QApplication.translate("DParam", "validation de la saisie", None, QtGui.QApplication.UnicodeUTF8)))
self.bOk.setObjectName("bOk")
self.gridlayout.addWidget(self.bOk,2,1,1,1)
self.bSup = QtGui.QPushButton(DParam)
self.bSup.setMinimumSize(QtCore.QSize(0,30))
self.bSup.setAutoDefault(True)
- self.bSup.setProperty("toolTip",QtCore.QVariant(QtGui.QApplication.translate("DParam", "suppression du mot clef", None, QtGui.QApplication.UnicodeUTF8)))
self.bSup.setObjectName("bSup")
self.gridlayout.addWidget(self.bSup,2,0,1,1)
self.bHelp = QtGui.QPushButton(DParam)
self.bHelp.setMinimumSize(QtCore.QSize(0,30))
self.bHelp.setAutoDefault(True)
- self.bHelp.setProperty("toolTip",QtCore.QVariant(QtGui.QApplication.translate("DParam", "affichage documentation aster", None, QtGui.QApplication.UnicodeUTF8)))
self.bHelp.setObjectName("bHelp")
self.gridlayout.addWidget(self.bHelp,2,2,1,1)
self.retranslateUi(DParam)
+ self.TWChoix.setCurrentIndex(0)
+ QtCore.QMetaObject.connectSlotsByName(DParam)
DParam.setTabOrder(self.LEFiltre,self.TWChoix)
DParam.setTabOrder(self.TWChoix,self.lineEditNom)
DParam.setTabOrder(self.lineEditNom,self.lineEditVal)
"appuyé sur le bouton Valider.", None, QtGui.QApplication.UnicodeUTF8))
self.TWChoix.setTabText(self.TWChoix.indexOf(self.Valeur_Parametre), QtGui.QApplication.translate("DParam", "Valeur Parametre", None, QtGui.QApplication.UnicodeUTF8))
self.textLabel1_4.setText(QtGui.QApplication.translate("DParam", "<b><u>Commandes :</u></b>", None, QtGui.QApplication.UnicodeUTF8))
- self.textLabel4.setText(QtGui.QApplication.translate("DParam", "La commande choisie sera ajoutée APRES la commande courante", None, QtGui.QApplication.UnicodeUTF8))
- self.textLabel6.setText(QtGui.QApplication.translate("DParam", "Filtre", None, QtGui.QApplication.UnicodeUTF8))
+ self.groupBox.setTitle(QtGui.QApplication.translate("DParam", "Affichage", None, QtGui.QApplication.UnicodeUTF8))
self.RBGroupe.setText(QtGui.QApplication.translate("DParam", "par groupe", None, QtGui.QApplication.UnicodeUTF8))
self.RBalpha.setText(QtGui.QApplication.translate("DParam", "alphabétique", None, QtGui.QApplication.UnicodeUTF8))
- self.groupBox.setTitle(QtGui.QApplication.translate("DParam", "Affichage", None, QtGui.QApplication.UnicodeUTF8))
- self.pushButton.setText(QtGui.QApplication.translate("DParam", "Suivant", None, QtGui.QApplication.UnicodeUTF8))
+ self.textLabel6.setText(QtGui.QApplication.translate("DParam", "Filtre", None, QtGui.QApplication.UnicodeUTF8))
+ self.BNext.setText(QtGui.QApplication.translate("DParam", "Suivant", None, QtGui.QApplication.UnicodeUTF8))
+ self.textLabel4.setText(QtGui.QApplication.translate("DParam", "La commande choisie sera ajoutée APRES la commande courante", None, QtGui.QApplication.UnicodeUTF8))
self.TWChoix.setTabText(self.TWChoix.indexOf(self.Commande), QtGui.QApplication.translate("DParam", "Nouvelle Commande", None, QtGui.QApplication.UnicodeUTF8))
+ self.bOk.setToolTip(QtGui.QApplication.translate("DParam", "validation de la saisie", None, QtGui.QApplication.UnicodeUTF8))
self.bOk.setText(QtGui.QApplication.translate("DParam", "&Valider", None, QtGui.QApplication.UnicodeUTF8))
self.bOk.setShortcut(QtGui.QApplication.translate("DParam", "Shift+A, Alt+A, Alt+A, Alt+A", None, QtGui.QApplication.UnicodeUTF8))
+ self.bSup.setToolTip(QtGui.QApplication.translate("DParam", "suppression du mot clef", None, QtGui.QApplication.UnicodeUTF8))
self.bSup.setText(QtGui.QApplication.translate("DParam", "&Supprimer", None, QtGui.QApplication.UnicodeUTF8))
self.bSup.setShortcut(QtGui.QApplication.translate("DParam", "Alt+S", None, QtGui.QApplication.UnicodeUTF8))
+ self.bHelp.setToolTip(QtGui.QApplication.translate("DParam", "affichage documentation aster", None, QtGui.QApplication.UnicodeUTF8))
self.bHelp.setText(QtGui.QApplication.translate("DParam", "&Documentation", None, QtGui.QApplication.UnicodeUTF8))
self.bHelp.setShortcut(QtGui.QApplication.translate("DParam", "Alt+D", None, QtGui.QApplication.UnicodeUTF8))
-<ui version="4.0" stdsetdef="1" >
- <author></author>
- <comment></comment>
- <exportmacro></exportmacro>
- <class>DParam</class>
- <widget class="QWidget" name="DParam" >
- <property name="geometry" >
- <rect>
+<ui version="4.0" >
+ <class>DParam</class>
+ <widget class="QWidget" name="DParam" >
+ <property name="geometry" >
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>505</width>
+ <height>483</height>
+ </rect>
+ </property>
+ <property name="minimumSize" >
+ <size>
+ <width>505</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="windowTitle" >
+ <string>DComm</string>
+ </property>
+ <layout class="QGridLayout" >
+ <item row="1" column="0" colspan="3" >
+ <widget class="QLabel" name="Commentaire" >
+ <property name="frameShape" >
+ <enum>QFrame::NoFrame</enum>
+ </property>
+ <property name="frameShadow" >
+ <enum>QFrame::Plain</enum>
+ </property>
+ <property name="text" >
+ <string/>
+ </property>
+ <property name="wordWrap" >
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="0" colspan="3" >
+ <widget class="QTabWidget" name="TWChoix" >
+ <property name="currentIndex" >
+ <number>0</number>
+ </property>
+ <widget class="QWidget" name="Valeur_Parametre" >
+ <property name="geometry" >
+ <rect>
<x>0</x>
<y>0</y>
- <width>505</width>
- <height>483</height>
- </rect>
- </property>
- <property name="minimumSize" >
- <size>
- <width>505</width>
- <height>0</height>
- </size>
- </property>
- <property name="windowTitle" >
- <string>DComm</string>
- </property>
- <layout class="QGridLayout" >
- <item rowspan="1" row="1" column="0" colspan="3" >
- <widget class="QLabel" name="Commentaire" >
- <property name="frameShape" >
- <enum>QFrame::NoFrame</enum>
- </property>
- <property name="frameShadow" >
- <enum>QFrame::Plain</enum>
- </property>
- <property name="text" >
- <string/>
- </property>
- <property name="wordWrap" >
- <bool>false</bool>
- </property>
- </widget>
- </item>
- <item rowspan="1" row="0" column="0" colspan="3" >
- <widget class="QTabWidget" name="TWChoix" >
- <widget class="QWidget" name="Valeur_Parametre" >
- <attribute name="title" >
- <string>Valeur Parametre</string>
- </attribute>
- <widget class="QLabel" name="textLabel2_2_2" >
- <property name="geometry" >
- <rect>
- <x>80</x>
- <y>11</y>
- <width>231</width>
- <height>89</height>
- </rect>
- </property>
- <property name="text" >
- <string><u><b><p align="center">Parametre</p></b></u></string>
- </property>
- <property name="wordWrap" >
- <bool>false</bool>
- </property>
- </widget>
- <widget class="QLabel" name="Commentaire_2" >
- <property name="geometry" >
- <rect>
- <x>11</x>
- <y>275</y>
- <width>459</width>
- <height>89</height>
- </rect>
- </property>
- <property name="text" >
- <string/>
- </property>
- <property name="wordWrap" >
- <bool>false</bool>
- </property>
- </widget>
- <widget class="QLineEdit" name="lineEditNom" >
- <property name="geometry" >
- <rect>
- <x>80</x>
- <y>106</y>
- <width>231</width>
- <height>31</height>
- </rect>
- </property>
- <property name="minimumSize" >
- <size>
- <width>231</width>
- <height>31</height>
- </size>
- </property>
- </widget>
- <widget class="QLabel" name="textLabel2_2" >
- <property name="geometry" >
- <rect>
- <x>11</x>
- <y>106</y>
- <width>63</width>
- <height>31</height>
- </rect>
- </property>
- <property name="text" >
- <string><b> Nom: </b></string>
- </property>
- <property name="wordWrap" >
- <bool>false</bool>
- </property>
- </widget>
- <widget class="QLabel" name="textLabel2" >
- <property name="geometry" >
- <rect>
- <x>11</x>
- <y>143</y>
- <width>63</width>
- <height>31</height>
- </rect>
- </property>
- <property name="text" >
- <string><b> Valeur: </b></string>
- </property>
- <property name="wordWrap" >
- <bool>false</bool>
- </property>
- </widget>
- <widget class="QLabel" name="Commentaire2" >
- <property name="geometry" >
- <rect>
- <x>11</x>
- <y>180</y>
- <width>459</width>
- <height>89</height>
- </rect>
- </property>
- <property name="text" >
- <string>Retour Chariot dans une sone de saisie permet de vérifier la
+ <width>483</width>
+ <height>372</height>
+ </rect>
+ </property>
+ <attribute name="title" >
+ <string>Valeur Parametre</string>
+ </attribute>
+ <widget class="QLabel" name="textLabel2_2_2" >
+ <property name="geometry" >
+ <rect>
+ <x>80</x>
+ <y>11</y>
+ <width>231</width>
+ <height>89</height>
+ </rect>
+ </property>
+ <property name="text" >
+ <string><u><b><p align="center">Parametre</p></b></u></string>
+ </property>
+ <property name="wordWrap" >
+ <bool>false</bool>
+ </property>
+ </widget>
+ <widget class="QLabel" name="Commentaire_2" >
+ <property name="geometry" >
+ <rect>
+ <x>11</x>
+ <y>275</y>
+ <width>459</width>
+ <height>89</height>
+ </rect>
+ </property>
+ <property name="text" >
+ <string/>
+ </property>
+ <property name="wordWrap" >
+ <bool>false</bool>
+ </property>
+ </widget>
+ <widget class="QLineEdit" name="lineEditNom" >
+ <property name="geometry" >
+ <rect>
+ <x>80</x>
+ <y>106</y>
+ <width>231</width>
+ <height>31</height>
+ </rect>
+ </property>
+ <property name="minimumSize" >
+ <size>
+ <width>231</width>
+ <height>31</height>
+ </size>
+ </property>
+ </widget>
+ <widget class="QLabel" name="textLabel2_2" >
+ <property name="geometry" >
+ <rect>
+ <x>11</x>
+ <y>106</y>
+ <width>63</width>
+ <height>31</height>
+ </rect>
+ </property>
+ <property name="text" >
+ <string><b> Nom: </b></string>
+ </property>
+ <property name="wordWrap" >
+ <bool>false</bool>
+ </property>
+ </widget>
+ <widget class="QLabel" name="textLabel2" >
+ <property name="geometry" >
+ <rect>
+ <x>11</x>
+ <y>143</y>
+ <width>63</width>
+ <height>31</height>
+ </rect>
+ </property>
+ <property name="text" >
+ <string><b> Valeur: </b></string>
+ </property>
+ <property name="wordWrap" >
+ <bool>false</bool>
+ </property>
+ </widget>
+ <widget class="QLabel" name="Commentaire2" >
+ <property name="geometry" >
+ <rect>
+ <x>11</x>
+ <y>180</y>
+ <width>459</width>
+ <height>89</height>
+ </rect>
+ </property>
+ <property name="text" >
+ <string>Retour Chariot dans une sone de saisie permet de vérifier la
validité de la valeur saisie.
Les nouvelles valeurs ne seront prises en compte qu'après avoir
appuyé sur le bouton Valider.</string>
- </property>
- <property name="wordWrap" >
- <bool>false</bool>
- </property>
- </widget>
- <widget class="QLineEdit" name="lineEditVal" >
- <property name="geometry" >
- <rect>
- <x>80</x>
- <y>143</y>
- <width>231</width>
- <height>31</height>
- </rect>
- </property>
- <property name="minimumSize" >
- <size>
- <width>231</width>
- <height>31</height>
- </size>
- </property>
- </widget>
- </widget>
- <widget class="QWidget" name="Commande" >
- <property name="geometry" >
- <rect>
- <x>0</x>
- <y>0</y>
- <width>483</width>
- <height>371</height>
- </rect>
- </property>
- <attribute name="title" >
- <string>Nouvelle Commande</string>
- </attribute>
- <widget class="QLabel" name="textLabel1_4" >
- <property name="geometry" >
- <rect>
- <x>11</x>
- <y>11</y>
- <width>291</width>
- <height>44</height>
- </rect>
- </property>
- <property name="text" >
- <string><b><u>Commandes :</u></b></string>
- </property>
- <property name="wordWrap" >
- <bool>false</bool>
- </property>
- </widget>
- <widget class="QLabel" name="textLabel4" >
- <property name="geometry" >
- <rect>
- <x>11</x>
- <y>341</y>
- <width>457</width>
- <height>17</height>
- </rect>
- </property>
- <property name="text" >
- <string>La commande choisie sera ajoutée APRES la commande courante</string>
- </property>
- <property name="wordWrap" >
- <bool>false</bool>
- </property>
- </widget>
- <widget class="QLineEdit" name="LEFiltre" >
- <property name="geometry" >
- <rect>
- <x>60</x>
- <y>60</y>
- <width>169</width>
- <height>30</height>
- </rect>
- </property>
- <property name="minimumSize" >
- <size>
- <width>160</width>
- <height>30</height>
- </size>
- </property>
- </widget>
- <widget class="QLabel" name="textLabel6" >
- <property name="geometry" >
- <rect>
- <x>11</x>
- <y>61</y>
- <width>50</width>
- <height>30</height>
- </rect>
- </property>
- <property name="minimumSize" >
- <size>
- <width>50</width>
- <height>30</height>
- </size>
- </property>
- <property name="text" >
- <string>Filtre</string>
- </property>
- <property name="wordWrap" >
- <bool>false</bool>
- </property>
- </widget>
+ </property>
+ <property name="wordWrap" >
+ <bool>false</bool>
+ </property>
+ </widget>
+ <widget class="QLineEdit" name="lineEditVal" >
+ <property name="geometry" >
+ <rect>
+ <x>80</x>
+ <y>143</y>
+ <width>231</width>
+ <height>31</height>
+ </rect>
+ </property>
+ <property name="minimumSize" >
+ <size>
+ <width>231</width>
+ <height>31</height>
+ </size>
+ </property>
+ </widget>
+ </widget>
+ <widget class="QWidget" name="Commande" >
+ <property name="geometry" >
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>483</width>
+ <height>372</height>
+ </rect>
+ </property>
+ <attribute name="title" >
+ <string>Nouvelle Commande</string>
+ </attribute>
+ <layout class="QGridLayout" name="gridLayout_2" >
+ <item row="0" column="0" colspan="3" >
+ <widget class="QLabel" name="textLabel1_4" >
+ <property name="text" >
+ <string><b><u>Commandes :</u></b></string>
+ </property>
+ <property name="wordWrap" >
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ <item rowspan="2" row="0" column="3" >
+ <widget class="QGroupBox" name="groupBox" >
+ <property name="title" >
+ <string>Affichage</string>
+ </property>
+ <layout class="QGridLayout" name="gridLayout" >
+ <item row="1" column="0" >
<widget class="QRadioButton" name="RBGroupe" >
- <property name="geometry" >
- <rect>
- <x>330</x>
- <y>60</y>
- <width>101</width>
- <height>20</height>
- </rect>
- </property>
<property name="text" >
<string>par groupe</string>
</property>
</widget>
+ </item>
+ <item row="0" column="0" >
<widget class="QRadioButton" name="RBalpha" >
- <property name="geometry" >
- <rect>
- <x>330</x>
- <y>30</y>
- <width>120</width>
- <height>20</height>
- </rect>
- </property>
<property name="text" >
<string>alphabétique</string>
</property>
<bool>true</bool>
</property>
</widget>
- <widget class="QGroupBox" name="groupBox" >
- <property name="geometry" >
- <rect>
- <x>310</x>
- <y>10</y>
- <width>141</width>
- <height>80</height>
- </rect>
- </property>
- <property name="title" >
- <string>Affichage</string>
- </property>
- </widget>
- <widget class="QListWidget" name="LBNouvCommande" >
- <property name="geometry" >
- <rect>
- <x>5</x>
- <y>101</y>
- <width>471</width>
- <height>231</height>
- </rect>
- </property>
- </widget>
- <widget class="QPushButton" name="pushButton" >
- <property name="geometry" >
- <rect>
- <x>233</x>
- <y>60</y>
- <width>71</width>
- <height>27</height>
- </rect>
- </property>
- <property name="text" >
- <string>Suivant</string>
- </property>
- </widget>
- </widget>
+ </item>
+ </layout>
+ <zorder>RBGroupe</zorder>
+ <zorder>RBalpha</zorder>
</widget>
- </item>
- <item row="2" column="1" >
- <widget class="QPushButton" name="bOk" >
- <property name="minimumSize" >
- <size>
- <width>0</width>
- <height>30</height>
- </size>
- </property>
- <property name="text" >
- <string>&Valider</string>
- </property>
- <property name="shortcut" >
- <string>Shift+A, Alt+A, Alt+A, Alt+A</string>
- </property>
- <property name="autoDefault" >
- <bool>true</bool>
- </property>
- <property name="default" >
- <bool>true</bool>
- </property>
- <property name="toolTip" stdset="0" >
- <string>validation de la saisie</string>
- </property>
+ </item>
+ <item row="1" column="0" >
+ <widget class="QLabel" name="textLabel6" >
+ <property name="minimumSize" >
+ <size>
+ <width>50</width>
+ <height>30</height>
+ </size>
+ </property>
+ <property name="text" >
+ <string>Filtre</string>
+ </property>
+ <property name="wordWrap" >
+ <bool>false</bool>
+ </property>
</widget>
- </item>
- <item row="2" column="0" >
- <widget class="QPushButton" name="bSup" >
- <property name="minimumSize" >
- <size>
- <width>0</width>
- <height>30</height>
- </size>
- </property>
- <property name="text" >
- <string>&Supprimer</string>
- </property>
- <property name="shortcut" >
- <string>Alt+S</string>
- </property>
- <property name="autoDefault" >
- <bool>true</bool>
- </property>
- <property name="toolTip" stdset="0" >
- <string>suppression du mot clef</string>
- </property>
+ </item>
+ <item row="1" column="1" >
+ <widget class="QLineEdit" name="LEFiltre" >
+ <property name="minimumSize" >
+ <size>
+ <width>160</width>
+ <height>30</height>
+ </size>
+ </property>
</widget>
- </item>
- <item row="2" column="2" >
- <widget class="QPushButton" name="bHelp" >
- <property name="minimumSize" >
- <size>
- <width>0</width>
- <height>30</height>
- </size>
- </property>
- <property name="text" >
- <string>&Documentation</string>
- </property>
- <property name="shortcut" >
- <string>Alt+D</string>
- </property>
- <property name="autoDefault" >
- <bool>true</bool>
- </property>
- <property name="toolTip" stdset="0" >
- <string>affichage documentation aster</string>
- </property>
+ </item>
+ <item row="1" column="2" >
+ <widget class="QPushButton" name="BNext" >
+ <property name="text" >
+ <string>Suivant</string>
+ </property>
</widget>
- </item>
- </layout>
- </widget>
- <layoutdefault spacing="6" margin="11" />
- <pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
- <tabstops>
- <tabstop>LEFiltre</tabstop>
- <tabstop>TWChoix</tabstop>
- <tabstop>lineEditNom</tabstop>
- <tabstop>lineEditVal</tabstop>
- <tabstop>LBNouvCommande</tabstop>
- <tabstop>RBalpha</tabstop>
- <tabstop>bOk</tabstop>
- <tabstop>bSup</tabstop>
- <tabstop>bHelp</tabstop>
- </tabstops>
+ </item>
+ <item row="2" column="0" colspan="4" >
+ <widget class="QListWidget" name="LBNouvCommande" />
+ </item>
+ <item row="3" column="0" colspan="4" >
+ <widget class="QLabel" name="textLabel4" >
+ <property name="text" >
+ <string>La commande choisie sera ajoutée APRES la commande courante</string>
+ </property>
+ <property name="wordWrap" >
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </widget>
+ </item>
+ <item row="2" column="1" >
+ <widget class="QPushButton" name="bOk" >
+ <property name="minimumSize" >
+ <size>
+ <width>0</width>
+ <height>30</height>
+ </size>
+ </property>
+ <property name="toolTip" >
+ <string>validation de la saisie</string>
+ </property>
+ <property name="text" >
+ <string>&Valider</string>
+ </property>
+ <property name="shortcut" >
+ <string>Shift+A, Alt+A, Alt+A, Alt+A</string>
+ </property>
+ <property name="autoDefault" >
+ <bool>true</bool>
+ </property>
+ <property name="default" >
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ <item row="2" column="0" >
+ <widget class="QPushButton" name="bSup" >
+ <property name="minimumSize" >
+ <size>
+ <width>0</width>
+ <height>30</height>
+ </size>
+ </property>
+ <property name="toolTip" >
+ <string>suppression du mot clef</string>
+ </property>
+ <property name="text" >
+ <string>&Supprimer</string>
+ </property>
+ <property name="shortcut" >
+ <string>Alt+S</string>
+ </property>
+ <property name="autoDefault" >
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ <item row="2" column="2" >
+ <widget class="QPushButton" name="bHelp" >
+ <property name="minimumSize" >
+ <size>
+ <width>0</width>
+ <height>30</height>
+ </size>
+ </property>
+ <property name="toolTip" >
+ <string>affichage documentation aster</string>
+ </property>
+ <property name="text" >
+ <string>&Documentation</string>
+ </property>
+ <property name="shortcut" >
+ <string>Alt+D</string>
+ </property>
+ <property name="autoDefault" >
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ <layoutdefault spacing="6" margin="11" />
+ <pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
+ <tabstops>
+ <tabstop>LEFiltre</tabstop>
+ <tabstop>TWChoix</tabstop>
+ <tabstop>lineEditNom</tabstop>
+ <tabstop>lineEditVal</tabstop>
+ <tabstop>LBNouvCommande</tabstop>
+ <tabstop>RBalpha</tabstop>
+ <tabstop>bOk</tabstop>
+ <tabstop>bSup</tabstop>
+ <tabstop>bHelp</tabstop>
+ </tabstops>
+ <resources/>
+ <connections/>
</ui>
# Form implementation generated from reading ui file 'desPlusieursBase.ui'
#
-# Created: Wed Jul 9 10:32:21 2008
+# Created: Fri Jul 18 16:24:35 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
self.textLabel1.setWordWrap(False)
self.textLabel1.setObjectName("textLabel1")
self.gridlayout1.addWidget(self.textLabel1,0,0,1,1)
- self.LBValeurs = QtGui.QListView(self.Widget8)
+ self.LBValeurs = QtGui.QListWidget(self.Widget8)
self.LBValeurs.setMinimumSize(QtCore.QSize(200,0))
self.LBValeurs.setObjectName("LBValeurs")
self.gridlayout1.addWidget(self.LBValeurs,1,0,9,1)
</widget>
</item>
<item rowspan="9" row="1" column="0" >
- <widget class="QListView" name="LBValeurs" >
+ <widget class="QListWidget" name="LBValeurs" >
<property name="minimumSize" >
<size>
<width>200</width>
# Form implementation generated from reading ui file 'desPlusieursInto.ui'
#
-# Created: Wed Jul 9 10:11:21 2008
+# Created: Fri Jul 18 16:24:35 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
self.gridlayout1.addWidget(self.Commentaire,2,0,1,4)
self.hboxlayout = QtGui.QHBoxLayout()
self.hboxlayout.setObjectName("hboxlayout")
- self.LBValeurs = QtGui.QListView(self.Widget8)
+ self.LBValeurs = QtGui.QListWidget(self.Widget8)
self.LBValeurs.setObjectName("LBValeurs")
self.hboxlayout.addWidget(self.LBValeurs)
self.vboxlayout = QtGui.QVBoxLayout()
self.vboxlayout1.addItem(spacerItem1)
self.vboxlayout.addLayout(self.vboxlayout1)
self.hboxlayout.addLayout(self.vboxlayout)
- self.listBoxVal = QtGui.QListView(self.Widget8)
+ self.listBoxVal = QtGui.QListWidget(self.Widget8)
self.listBoxVal.setObjectName("listBoxVal")
self.hboxlayout.addWidget(self.listBoxVal)
self.gridlayout1.addLayout(self.hboxlayout,1,0,1,4)
<item row="1" column="0" colspan="4" >
<layout class="QHBoxLayout" >
<item>
- <widget class="QListView" name="LBValeurs" />
+ <widget class="QListWidget" name="LBValeurs" />
</item>
<item>
<layout class="QVBoxLayout" >
</layout>
</item>
<item>
- <widget class="QListView" name="listBoxVal" />
+ <widget class="QListWidget" name="listBoxVal" />
</item>
</layout>
</item>
# Form implementation generated from reading ui file 'desPoursuite.ui'
#
-# Created: Wed Jul 9 10:11:21 2008
+# Created: Wed Jul 23 11:56:47 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
self.textLabel1_2.setWordWrap(False)
self.textLabel1_2.setObjectName("textLabel1_2")
self.gridlayout1.addWidget(self.textLabel1_2,0,1,1,1)
- self.LBMCPermis = QtGui.QListView(self.MotClef)
+ self.LBMCPermis = QtGui.QListWidget(self.MotClef)
self.LBMCPermis.setMinimumSize(QtCore.QSize(0,0))
self.LBMCPermis.setObjectName("LBMCPermis")
self.gridlayout1.addWidget(self.LBMCPermis,1,0,1,1)
- self.LBRegles = QtGui.QListView(self.MotClef)
+ self.LBRegles = QtGui.QListWidget(self.MotClef)
self.LBRegles.setObjectName("LBRegles")
self.gridlayout1.addWidget(self.LBRegles,1,1,1,1)
self.textLabel1 = QtGui.QLabel(self.MotClef)
self.Commande = QtGui.QWidget()
self.Commande.setGeometry(QtCore.QRect(0,0,499,388))
self.Commande.setObjectName("Commande")
+ self.gridLayout_2 = QtGui.QGridLayout(self.Commande)
+ self.gridLayout_2.setObjectName("gridLayout_2")
self.textLabel1_4 = QtGui.QLabel(self.Commande)
- self.textLabel1_4.setGeometry(QtCore.QRect(11,11,291,44))
self.textLabel1_4.setWordWrap(False)
self.textLabel1_4.setObjectName("textLabel1_4")
- self.textLabel4 = QtGui.QLabel(self.Commande)
- self.textLabel4.setGeometry(QtCore.QRect(11,341,457,17))
- self.textLabel4.setWordWrap(False)
- self.textLabel4.setObjectName("textLabel4")
- self.LEFiltre = QtGui.QLineEdit(self.Commande)
- self.LEFiltre.setGeometry(QtCore.QRect(60,60,169,30))
- self.LEFiltre.setMinimumSize(QtCore.QSize(160,30))
- self.LEFiltre.setObjectName("LEFiltre")
+ self.gridLayout_2.addWidget(self.textLabel1_4,0,0,1,3)
+ self.groupBox = QtGui.QGroupBox(self.Commande)
+ self.groupBox.setObjectName("groupBox")
+ self.gridLayout = QtGui.QGridLayout(self.groupBox)
+ self.gridLayout.setObjectName("gridLayout")
+ self.RBalpha = QtGui.QRadioButton(self.groupBox)
+ self.RBalpha.setChecked(True)
+ self.RBalpha.setObjectName("RBalpha")
+ self.gridLayout.addWidget(self.RBalpha,0,0,1,1)
+ self.RBGroupe = QtGui.QRadioButton(self.groupBox)
+ self.RBGroupe.setObjectName("RBGroupe")
+ self.gridLayout.addWidget(self.RBGroupe,1,0,1,1)
+ self.gridLayout_2.addWidget(self.groupBox,0,3,2,1)
self.textLabel6 = QtGui.QLabel(self.Commande)
- self.textLabel6.setGeometry(QtCore.QRect(11,61,50,30))
self.textLabel6.setMinimumSize(QtCore.QSize(50,30))
self.textLabel6.setWordWrap(False)
self.textLabel6.setObjectName("textLabel6")
- self.RBGroupe = QtGui.QRadioButton(self.Commande)
- self.RBGroupe.setGeometry(QtCore.QRect(330,60,101,20))
- self.RBGroupe.setObjectName("RBGroupe")
- self.RBalpha = QtGui.QRadioButton(self.Commande)
- self.RBalpha.setGeometry(QtCore.QRect(330,30,120,20))
- self.RBalpha.setChecked(True)
- self.RBalpha.setObjectName("RBalpha")
- self.groupBox = QtGui.QGroupBox(self.Commande)
- self.groupBox.setGeometry(QtCore.QRect(310,10,141,80))
- self.groupBox.setObjectName("groupBox")
- self.LBNouvCommande = QtGui.QListWidget(self.Commande)
- self.LBNouvCommande.setGeometry(QtCore.QRect(5,101,471,231))
- self.LBNouvCommande.setObjectName("LBNouvCommande")
+ self.gridLayout_2.addWidget(self.textLabel6,1,0,1,1)
+ self.LEFiltre = QtGui.QLineEdit(self.Commande)
+ self.LEFiltre.setMinimumSize(QtCore.QSize(160,30))
+ self.LEFiltre.setObjectName("LEFiltre")
+ self.gridLayout_2.addWidget(self.LEFiltre,1,1,1,1)
self.pushButton = QtGui.QPushButton(self.Commande)
- self.pushButton.setGeometry(QtCore.QRect(233,60,71,27))
self.pushButton.setObjectName("pushButton")
+ self.gridLayout_2.addWidget(self.pushButton,1,2,1,1)
+ self.LBNouvCommande = QtGui.QListWidget(self.Commande)
+ self.LBNouvCommande.setObjectName("LBNouvCommande")
+ self.gridLayout_2.addWidget(self.LBNouvCommande,2,0,1,4)
+ self.textLabel4 = QtGui.QLabel(self.Commande)
+ self.textLabel4.setWordWrap(False)
+ self.textLabel4.setObjectName("textLabel4")
+ self.gridLayout_2.addWidget(self.textLabel4,3,0,1,4)
self.TWChoix.addTab(self.Commande,"")
self.TabPage = QtGui.QWidget()
self.TabPage.setGeometry(QtCore.QRect(0,0,499,388))
self.textLabel1.setText(QtGui.QApplication.translate("DPour", "<h3><p align=\"center\"><u><b>Mots Clefs Permis</b></u></p></h3>", None, QtGui.QApplication.UnicodeUTF8))
self.TWChoix.setTabText(self.TWChoix.indexOf(self.MotClef), QtGui.QApplication.translate("DPour", "Ajouter Mot-Clef", None, QtGui.QApplication.UnicodeUTF8))
self.textLabel1_4.setText(QtGui.QApplication.translate("DPour", "<b><u>Commandes :</u></b>", None, QtGui.QApplication.UnicodeUTF8))
- self.textLabel4.setText(QtGui.QApplication.translate("DPour", "La commande choisie sera ajoutée APRES la commande courante", None, QtGui.QApplication.UnicodeUTF8))
- self.textLabel6.setText(QtGui.QApplication.translate("DPour", "Filtre", None, QtGui.QApplication.UnicodeUTF8))
- self.RBGroupe.setText(QtGui.QApplication.translate("DPour", "par groupe", None, QtGui.QApplication.UnicodeUTF8))
- self.RBalpha.setText(QtGui.QApplication.translate("DPour", "alphabétique", None, QtGui.QApplication.UnicodeUTF8))
self.groupBox.setTitle(QtGui.QApplication.translate("DPour", "Affichage", None, QtGui.QApplication.UnicodeUTF8))
+ self.RBalpha.setText(QtGui.QApplication.translate("DPour", "alphabétique", None, QtGui.QApplication.UnicodeUTF8))
+ self.RBGroupe.setText(QtGui.QApplication.translate("DPour", "par groupe", None, QtGui.QApplication.UnicodeUTF8))
+ self.textLabel6.setText(QtGui.QApplication.translate("DPour", "Filtre", None, QtGui.QApplication.UnicodeUTF8))
self.pushButton.setText(QtGui.QApplication.translate("DPour", "Suivant", None, QtGui.QApplication.UnicodeUTF8))
+ self.textLabel4.setText(QtGui.QApplication.translate("DPour", "La commande choisie sera ajoutée APRES la commande courante", None, QtGui.QApplication.UnicodeUTF8))
self.TWChoix.setTabText(self.TWChoix.indexOf(self.Commande), QtGui.QApplication.translate("DPour", "Nouvelle Commande", None, QtGui.QApplication.UnicodeUTF8))
self.textLabel1_3.setText(QtGui.QApplication.translate("DPour", "<font size=\"+1\">La commande POURSUITE requiert un nom de Fichier :</font>", None, QtGui.QApplication.UnicodeUTF8))
self.BBrowse.setText(QtGui.QApplication.translate("DPour", "Edit", None, QtGui.QApplication.UnicodeUTF8))
</widget>
</item>
<item row="1" column="0" >
- <widget class="QListView" name="LBMCPermis" >
+ <widget class="QListWidget" name="LBMCPermis" >
<property name="minimumSize" >
<size>
<width>0</width>
</widget>
</item>
<item row="1" column="1" >
- <widget class="QListView" name="LBRegles" />
+ <widget class="QListWidget" name="LBRegles" />
</item>
<item row="0" column="0" >
<widget class="QLabel" name="textLabel1" >
<attribute name="title" >
<string>Nouvelle Commande</string>
</attribute>
- <widget class="QLabel" name="textLabel1_4" >
- <property name="geometry" >
- <rect>
- <x>11</x>
- <y>11</y>
- <width>291</width>
- <height>44</height>
- </rect>
- </property>
- <property name="text" >
- <string><b><u>Commandes :</u></b></string>
- </property>
- <property name="wordWrap" >
- <bool>false</bool>
- </property>
- </widget>
- <widget class="QLabel" name="textLabel4" >
- <property name="geometry" >
- <rect>
- <x>11</x>
- <y>341</y>
- <width>457</width>
- <height>17</height>
- </rect>
- </property>
- <property name="text" >
- <string>La commande choisie sera ajoutée APRES la commande courante</string>
- </property>
- <property name="wordWrap" >
- <bool>false</bool>
- </property>
- </widget>
- <widget class="QLineEdit" name="LEFiltre" >
- <property name="geometry" >
- <rect>
- <x>60</x>
- <y>60</y>
- <width>169</width>
- <height>30</height>
- </rect>
- </property>
- <property name="minimumSize" >
- <size>
- <width>160</width>
- <height>30</height>
- </size>
- </property>
- </widget>
- <widget class="QLabel" name="textLabel6" >
- <property name="geometry" >
- <rect>
- <x>11</x>
- <y>61</y>
- <width>50</width>
- <height>30</height>
- </rect>
- </property>
- <property name="minimumSize" >
- <size>
- <width>50</width>
- <height>30</height>
- </size>
- </property>
- <property name="text" >
- <string>Filtre</string>
- </property>
- <property name="wordWrap" >
- <bool>false</bool>
- </property>
- </widget>
- <widget class="QRadioButton" name="RBGroupe" >
- <property name="geometry" >
- <rect>
- <x>330</x>
- <y>60</y>
- <width>101</width>
- <height>20</height>
- </rect>
- </property>
- <property name="text" >
- <string>par groupe</string>
- </property>
- </widget>
- <widget class="QRadioButton" name="RBalpha" >
- <property name="geometry" >
- <rect>
- <x>330</x>
- <y>30</y>
- <width>120</width>
- <height>20</height>
- </rect>
- </property>
- <property name="text" >
- <string>alphabétique</string>
- </property>
- <property name="checked" >
- <bool>true</bool>
- </property>
- </widget>
- <widget class="QGroupBox" name="groupBox" >
- <property name="geometry" >
- <rect>
- <x>310</x>
- <y>10</y>
- <width>141</width>
- <height>80</height>
- </rect>
- </property>
- <property name="title" >
- <string>Affichage</string>
- </property>
- </widget>
- <widget class="QListWidget" name="LBNouvCommande" >
- <property name="geometry" >
- <rect>
- <x>5</x>
- <y>101</y>
- <width>471</width>
- <height>231</height>
- </rect>
- </property>
- </widget>
- <widget class="QPushButton" name="pushButton" >
- <property name="geometry" >
- <rect>
- <x>233</x>
- <y>60</y>
- <width>71</width>
- <height>27</height>
- </rect>
- </property>
- <property name="text" >
- <string>Suivant</string>
- </property>
- </widget>
+ <layout class="QGridLayout" name="gridLayout_2" >
+ <item row="0" column="0" colspan="3" >
+ <widget class="QLabel" name="textLabel1_4" >
+ <property name="text" >
+ <string><b><u>Commandes :</u></b></string>
+ </property>
+ <property name="wordWrap" >
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ <item rowspan="2" row="0" column="3" >
+ <widget class="QGroupBox" name="groupBox" >
+ <property name="title" >
+ <string>Affichage</string>
+ </property>
+ <layout class="QGridLayout" name="gridLayout" >
+ <item row="0" column="0" >
+ <widget class="QRadioButton" name="RBalpha" >
+ <property name="text" >
+ <string>alphabétique</string>
+ </property>
+ <property name="checked" >
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="0" >
+ <widget class="QRadioButton" name="RBGroupe" >
+ <property name="text" >
+ <string>par groupe</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ <item row="1" column="0" >
+ <widget class="QLabel" name="textLabel6" >
+ <property name="minimumSize" >
+ <size>
+ <width>50</width>
+ <height>30</height>
+ </size>
+ </property>
+ <property name="text" >
+ <string>Filtre</string>
+ </property>
+ <property name="wordWrap" >
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="1" >
+ <widget class="QLineEdit" name="LEFiltre" >
+ <property name="minimumSize" >
+ <size>
+ <width>160</width>
+ <height>30</height>
+ </size>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="2" >
+ <widget class="QPushButton" name="pushButton" >
+ <property name="text" >
+ <string>Suivant</string>
+ </property>
+ </widget>
+ </item>
+ <item row="2" column="0" colspan="4" >
+ <widget class="QListWidget" name="LBNouvCommande" />
+ </item>
+ <item row="3" column="0" colspan="4" >
+ <widget class="QLabel" name="textLabel4" >
+ <property name="text" >
+ <string>La commande choisie sera ajoutée APRES la commande courante</string>
+ </property>
+ <property name="wordWrap" >
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ </layout>
</widget>
<widget class="QWidget" name="TabPage" >
<property name="geometry" >
# Form implementation generated from reading ui file 'desRacine.ui'
#
-# Created: Wed Jul 9 10:11:22 2008
+# Created: Fri Jul 18 16:24:35 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
self.LEFiltre.setMinimumSize(QtCore.QSize(0,30))
self.LEFiltre.setObjectName("LEFiltre")
self.gridLayout.addWidget(self.LEFiltre,3,1,1,1)
- self.pushButton = QtGui.QPushButton(DRac)
- self.pushButton.setObjectName("pushButton")
- self.gridLayout.addWidget(self.pushButton,3,2,1,1)
- self.LBRegles = QtGui.QListView(DRac)
+ self.BNext = QtGui.QPushButton(DRac)
+ self.BNext.setObjectName("BNext")
+ self.gridLayout.addWidget(self.BNext,3,2,1,1)
+ self.LBRegles = QtGui.QListWidget(DRac)
self.LBRegles.setMinimumSize(QtCore.QSize(240,350))
self.LBRegles.setObjectName("LBRegles")
self.gridLayout.addWidget(self.LBRegles,3,3,2,3)
- self.LBNouvCommande = QtGui.QListView(DRac)
+ self.LBNouvCommande = QtGui.QListWidget(DRac)
self.LBNouvCommande.setObjectName("LBNouvCommande")
self.gridLayout.addWidget(self.LBNouvCommande,4,0,1,3)
self.bSup = QtGui.QPushButton(DRac)
self.gridLayout.addWidget(self.bHelp,5,5,1,1)
self.retranslateUi(DRac)
+ QtCore.QMetaObject.connectSlotsByName(DRac)
DRac.setTabOrder(self.LEFiltre,self.LBNouvCommande)
DRac.setTabOrder(self.LBNouvCommande,self.bSup)
DRac.setTabOrder(self.bSup,self.bOk)
self.RBalpha.setText(QtGui.QApplication.translate("DRac", "alphabétique", None, QtGui.QApplication.UnicodeUTF8))
self.RBGroupe.setText(QtGui.QApplication.translate("DRac", "par groupe", None, QtGui.QApplication.UnicodeUTF8))
self.textLabel6.setText(QtGui.QApplication.translate("DRac", "Filtre", None, QtGui.QApplication.UnicodeUTF8))
- self.pushButton.setText(QtGui.QApplication.translate("DRac", "Suivant", None, QtGui.QApplication.UnicodeUTF8))
+ self.BNext.setText(QtGui.QApplication.translate("DRac", "Suivant", None, QtGui.QApplication.UnicodeUTF8))
self.bSup.setToolTip(QtGui.QApplication.translate("DRac", "suppression du mot clef", None, QtGui.QApplication.UnicodeUTF8))
self.bSup.setText(QtGui.QApplication.translate("DRac", "&Supprimer", None, QtGui.QApplication.UnicodeUTF8))
self.bSup.setShortcut(QtGui.QApplication.translate("DRac", "Alt+S", None, QtGui.QApplication.UnicodeUTF8))
</widget>
</item>
<item row="3" column="2" >
- <widget class="QPushButton" name="pushButton" >
+ <widget class="QPushButton" name="BNext" >
<property name="text" >
<string>Suivant</string>
</property>
</widget>
</item>
<item rowspan="2" row="3" column="3" colspan="3" >
- <widget class="QListView" name="LBRegles" >
+ <widget class="QListWidget" name="LBRegles" >
<property name="minimumSize" >
<size>
<width>240</width>
</widget>
</item>
<item row="4" column="0" colspan="3" >
- <widget class="QListView" name="LBNouvCommande" />
+ <widget class="QListWidget" name="LBNouvCommande" />
</item>
<item row="5" column="0" colspan="2" >
<widget class="QPushButton" name="bSup" >
<tabstop>LBRegles</tabstop>
</tabstops>
<resources/>
+ <connections/>
</ui>
# Form implementation generated from reading ui file 'desUniqueASSD.ui'
#
-# Created: Wed Jul 9 10:11:22 2008
+# Created: Fri Jul 18 16:24:35 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
self.textLabel2.setWordWrap(False)
self.textLabel2.setObjectName("textLabel2")
self.gridlayout1.addWidget(self.textLabel2,0,0,1,1)
- self.listBoxASSD = QtGui.QListView(self.Widget8)
+ self.listBoxASSD = QtGui.QListWidget(self.Widget8)
self.listBoxASSD.setObjectName("listBoxASSD")
self.gridlayout1.addWidget(self.listBoxASSD,1,0,1,1)
self.Commentaire = QtGui.QLabel(self.Widget8)
</widget>
</item>
<item row="1" column="0" >
- <widget class="QListView" name="listBoxASSD" />
+ <widget class="QListWidget" name="listBoxASSD" />
</item>
<item row="2" column="0" >
<widget class="QLabel" name="Commentaire" >
# Form implementation generated from reading ui file 'desUniqueBase.ui'
#
-# Created: Wed Jul 9 10:11:22 2008
+# Created: Thu Jul 24 10:46:31 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
self.gridlayout.addWidget(self.tabuniqueinto,0,0,1,1)
self.retranslateUi(DUnBase)
- DUnBase.setTabOrder(self.lineEditVal,self.tabuniqueinto)
- DUnBase.setTabOrder(self.tabuniqueinto,self.bParametres)
- DUnBase.setTabOrder(self.bParametres,self.bSup)
- DUnBase.setTabOrder(self.bSup,self.bOk)
- DUnBase.setTabOrder(self.bOk,self.bHelp)
+ QtCore.QMetaObject.connectSlotsByName(DUnBase)
+ DUnBase.setTabOrder(self.lineEditVal,self.bOk)
+ DUnBase.setTabOrder(self.bOk,self.bSup)
+ DUnBase.setTabOrder(self.bSup,self.BSalome)
+ DUnBase.setTabOrder(self.BSalome,self.bHelp)
DUnBase.setTabOrder(self.bHelp,self.BView2D)
- DUnBase.setTabOrder(self.BView2D,self.BSalome)
+ DUnBase.setTabOrder(self.BView2D,self.bParametres)
+ DUnBase.setTabOrder(self.bParametres,self.tabuniqueinto)
def retranslateUi(self, DUnBase):
DUnBase.setWindowTitle(QtGui.QApplication.translate("DUnBase", "DUnIn", None, QtGui.QApplication.UnicodeUTF8))
<layoutdefault spacing="6" margin="11" />
<tabstops>
<tabstop>lineEditVal</tabstop>
- <tabstop>tabuniqueinto</tabstop>
- <tabstop>bParametres</tabstop>
- <tabstop>bSup</tabstop>
<tabstop>bOk</tabstop>
+ <tabstop>bSup</tabstop>
+ <tabstop>BSalome</tabstop>
<tabstop>bHelp</tabstop>
<tabstop>BView2D</tabstop>
- <tabstop>BSalome</tabstop>
+ <tabstop>bParametres</tabstop>
+ <tabstop>tabuniqueinto</tabstop>
</tabstops>
<resources/>
+ <connections/>
</ui>
# Form implementation generated from reading ui file 'desUniqueInto.ui'
#
-# Created: Wed Jul 9 10:11:22 2008
+# Created: Fri Jul 18 16:24:35 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
self.bHelp.setObjectName("bHelp")
self.hboxlayout.addWidget(self.bHelp)
self.gridlayout1.addLayout(self.hboxlayout,3,0,1,1)
- self.listBoxVal = QtGui.QListView(self.Widget8)
+ self.listBoxVal = QtGui.QListWidget(self.Widget8)
self.listBoxVal.setObjectName("listBoxVal")
self.gridlayout1.addWidget(self.listBoxVal,1,0,1,1)
self.textLabel2 = QtGui.QLabel(self.Widget8)
</layout>
</item>
<item row="1" column="0" >
- <widget class="QListView" name="listBoxVal" />
+ <widget class="QListWidget" name="listBoxVal" />
</item>
<item row="0" column="0" >
<widget class="QLabel" name="textLabel2" >
# Form implementation generated from reading ui file 'desUniqueSDCOInto.ui'
#
-# Created: Wed Jul 9 10:11:22 2008
+# Created: Fri Jul 18 16:24:35 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
self.textLabel2.setWordWrap(False)
self.textLabel2.setObjectName("textLabel2")
self.gridlayout1.addWidget(self.textLabel2,0,0,1,3)
- self.LBSDCO = QtGui.QListView(self.Widget8)
+ self.LBSDCO = QtGui.QListWidget(self.Widget8)
self.LBSDCO.setObjectName("LBSDCO")
self.gridlayout1.addWidget(self.LBSDCO,1,0,1,3)
self.textLabel2_3 = QtGui.QLabel(self.Widget8)
</widget>
</item>
<item rowspan="1" row="1" column="0" colspan="3" >
- <widget class="QListView" name="LBSDCO" />
+ <widget class="QListWidget" name="LBSDCO" />
</item>
<item rowspan="1" row="5" column="0" colspan="3" >
<widget class="QLabel" name="textLabel2_3" >
PY_FILES = desChoixCata.py desCommande.py desCommentaire.py desError.py desFormule.py desInactif.py \
- desInclude.py desListeParam.py desMacro.py desMCFact.py desMCListAjout.py desParam.py \
+ desInclude.py desListeParam.py desMCFact.py desMCListAjout.py desParam.py \
desPlusieursBase.py desPlusieursInto.py desPoursuite.py desRacine.py desSelectVal.py \
desUniqueASSD.py desUniqueBase.py desUniqueComp.py desUniqueInto.py desUniqueSDCOInto.py \
- desUniqueSDCO.py desVisu.py aideQT.py OptionsEditeur.py OptionsPdf.py myMain.py
+ desUniqueSDCO.py desVisu.py aideQT.py OptionsEditeur.py OptionsPdf.py myMain.py \
+ desViewTexte.py
%.py:%.ui
${PYUIC} -x -o $@ $<