# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'desFormule.ui'
#
# Created: mar jan 13 14:22:17 2009
#      by: The PyQt User Interface Compiler (pyuic) 3.17.4
#
# WARNING! All changes made in this file will be lost!


from qt import *


class DFormule(QWidget):
    def __init__(self,parent = None,name = None,fl = 0):
        QWidget.__init__(self,parent,name,fl)

        if not name:
            self.setName("DFormule")

        self.setMinimumSize(QSize(505,0))

        DFormuleLayout = QGridLayout(self,1,1,11,6,"DFormuleLayout")

        layout4 = QHBoxLayout(None,0,6,"layout4")

        self.bSup = QPushButton(self,"bSup")
        self.bSup.setMinimumSize(QSize(0,30))
        self.bSup.setAutoDefault(1)
        layout4.addWidget(self.bSup)

        self.bOk = QPushButton(self,"bOk")
        self.bOk.setMinimumSize(QSize(0,30))
        self.bOk.setAutoDefault(1)
        self.bOk.setDefault(1)
        layout4.addWidget(self.bOk)

        self.bHelp = QPushButton(self,"bHelp")
        self.bHelp.setMinimumSize(QSize(0,30))
        self.bHelp.setAutoDefault(1)
        layout4.addWidget(self.bHelp)

        DFormuleLayout.addLayout(layout4,2,0)

        self.Commentaire = QLabel(self,"Commentaire")

        DFormuleLayout.addWidget(self.Commentaire,1,0)

        self.TWChoix = QTabWidget(self,"TWChoix")

        self.Formule = QWidget(self.TWChoix,"Formule")

        self.textLabel1 = QLabel(self.Formule,"textLabel1")
        self.textLabel1.setGeometry(QRect(11,11,242,40))
        self.textLabel1.setMinimumSize(QSize(0,0))

        LayoutWidget = QWidget(self.Formule,"layout6")
        LayoutWidget.setGeometry(QRect(11,103,489,44))
        layout6 = QHBoxLayout(LayoutWidget,11,6,"layout6")

        self.LENomFormule = QLineEdit(LayoutWidget,"LENomFormule")
        self.LENomFormule.setMinimumSize(QSize(0,40))
        layout6.addWidget(self.LENomFormule)

        layout4_2 = QHBoxLayout(None,0,6,"layout4_2")

        self.textLabel1_6 = QLabel(LayoutWidget,"textLabel1_6")
        layout4_2.addWidget(self.textLabel1_6)

        self.LENomsArgs = QLineEdit(LayoutWidget,"LENomsArgs")
        self.LENomsArgs.setMinimumSize(QSize(230,40))
        layout4_2.addWidget(self.LENomsArgs)

        self.textLabel1_6_2 = QLabel(LayoutWidget,"textLabel1_6_2")
        layout4_2.addWidget(self.textLabel1_6_2)
        layout6.addLayout(layout4_2)

        self.textLabel2 = QLabel(self.Formule,"textLabel2")
        self.textLabel2.setGeometry(QRect(259,57,241,40))

        self.textLabel2_2 = QLabel(self.Formule,"textLabel2_2")
        self.textLabel2_2.setGeometry(QRect(11,153,489,39))

        self.textLabel1_5 = QLabel(self.Formule,"textLabel1_5")
        self.textLabel1_5.setGeometry(QRect(11,198,489,40))
        self.textLabel1_5.setMinimumSize(QSize(0,0))

        self.LECorpsFormule = QLineEdit(self.Formule,"LECorpsFormule")
        self.LECorpsFormule.setGeometry(QRect(11,244,489,30))
        self.LECorpsFormule.setMinimumSize(QSize(0,30))

        self.textLabel1_2 = QLabel(self.Formule,"textLabel1_2")
        self.textLabel1_2.setGeometry(QRect(259,11,241,40))

        self.textLabel1_3_2 = QLabel(self.Formule,"textLabel1_3_2")
        self.textLabel1_3_2.setGeometry(QRect(11,326,470,40))
        self.textLabel1_3_2.setSizePolicy(QSizePolicy(QSizePolicy.MinimumExpanding,QSizePolicy.Preferred,0,0,self.textLabel1_3_2.sizePolicy().hasHeightForWidth()))

        self.textLabel1_3 = QLabel(self.Formule,"textLabel1_3")
        self.textLabel1_3.setGeometry(QRect(11,280,460,40))
        self.textLabel1_3.setSizePolicy(QSizePolicy(QSizePolicy.Ignored,QSizePolicy.Preferred,0,0,self.textLabel1_3.sizePolicy().hasHeightForWidth()))
        self.TWChoix.insertTab(self.Formule,QString.fromLatin1(""))

        self.Commande = QWidget(self.TWChoix,"Commande")

        self.textLabel6 = QLabel(self.Commande,"textLabel6")
        self.textLabel6.setGeometry(QRect(11,59,40,40))
        self.textLabel6.setMinimumSize(QSize(40,0))

        self.BNext = QToolButton(self.Commande,"BNext")
        self.BNext.setGeometry(QRect(249,59,60,40))
        self.BNext.setMinimumSize(QSize(60,40))
        self.BNext.setIconSet(QIconSet())

        self.LBNouvCommande = QListBox(self.Commande,"LBNouvCommande")
        self.LBNouvCommande.setGeometry(QRect(11,105,490,234))

        self.LEFiltre = QLineEdit(self.Commande,"LEFiltre")
        self.LEFiltre.setGeometry(QRect(57,59,180,40))
        self.LEFiltre.setMinimumSize(QSize(20,40))

        self.textLabel1_4 = QLabel(self.Commande,"textLabel1_4")
        self.textLabel1_4.setGeometry(QRect(11,11,260,42))
        self.textLabel1_4.setSizePolicy(QSizePolicy(QSizePolicy.Ignored,QSizePolicy.Ignored,0,0,self.textLabel1_4.sizePolicy().hasHeightForWidth()))

        self.buttonGroup1 = QButtonGroup(self.Commande,"buttonGroup1")
        self.buttonGroup1.setGeometry(QRect(315,11,180,86))
        self.buttonGroup1.setSizePolicy(QSizePolicy(QSizePolicy.MinimumExpanding,QSizePolicy.Preferred,0,0,self.buttonGroup1.sizePolicy().hasHeightForWidth()))
        self.buttonGroup1.setColumnLayout(0,Qt.Vertical)
        self.buttonGroup1.layout().setSpacing(6)
        self.buttonGroup1.layout().setMargin(11)
        buttonGroup1Layout = QGridLayout(self.buttonGroup1.layout())
        buttonGroup1Layout.setAlignment(Qt.AlignTop)

        layout1 = QVBoxLayout(None,0,6,"layout1")

        self.RBalpha = QRadioButton(self.buttonGroup1,"RBalpha")
        self.RBalpha.setChecked(1)
        layout1.addWidget(self.RBalpha)

        self.RBGroupe = QRadioButton(self.buttonGroup1,"RBGroupe")
        layout1.addWidget(self.RBGroupe)

        buttonGroup1Layout.addLayout(layout1,0,0)

        self.textLabel4 = QLabel(self.Commande,"textLabel4")
        self.textLabel4.setGeometry(QRect(10,340,480,21))
        self.textLabel4.setSizePolicy(QSizePolicy(QSizePolicy.MinimumExpanding,QSizePolicy.Preferred,0,0,self.textLabel4.sizePolicy().hasHeightForWidth()))
        self.TWChoix.insertTab(self.Commande,QString.fromLatin1(""))

        DFormuleLayout.addWidget(self.TWChoix,0,0)

        self.languageChange()

        self.resize(QSize(537,493).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)

        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)

        self.setTabOrder(self.LEFiltre,self.LENomFormule)
        self.setTabOrder(self.LENomFormule,self.LENomsArgs)
        self.setTabOrder(self.LENomsArgs,self.LECorpsFormule)
        self.setTabOrder(self.LECorpsFormule,self.bSup)
        self.setTabOrder(self.bSup,self.bOk)
        self.setTabOrder(self.bOk,self.bHelp)
        self.setTabOrder(self.bHelp,self.TWChoix)
        self.setTabOrder(self.TWChoix,self.RBalpha)
        self.setTabOrder(self.RBalpha,self.RBGroupe)
        self.setTabOrder(self.RBGroupe,self.LBNouvCommande)


    def languageChange(self):
        self.setCaption(self.__tr("DMacro"))
        self.bSup.setText(self.__tr("&Supprimer"))
        self.bSup.setAccel(QKeySequence(self.__tr("Alt+S")))
        QToolTip.add(self.bSup,self.__tr("suppression du mot clef"))
        self.bOk.setText(self.__tr("&Valider"))
        self.bOk.setAccel(QKeySequence(self.__tr("Shift+A, Alt+A, Alt+A, Alt+A")))
        QToolTip.add(self.bOk,self.__tr("validation de la saisie"))
        self.bHelp.setText(self.__tr("&Documentation"))
        self.bHelp.setAccel(QKeySequence(self.__tr("Alt+D")))
        QToolTip.add(self.bHelp,self.__tr("affichage documentation aster"))
        self.Commentaire.setText(QString.null)
        self.textLabel1.setText(self.__tr("<h3><p align=\"center\"><u><b>Nom de la formule</b></u></p></h3>"))
        self.textLabel1_6.setText(self.__tr("<h1><b>(</b></h1>"))
        self.textLabel1_6_2.setText(self.__tr("<h1><b>)</b></h1>"))
        self.textLabel2.setText(self.__trUtf8("\x76\x61\x72\x69\x61\x62\x6c\x65\x73\x20\x73\xc3\xa9\x70\x61\x72\xc3\xa9\x65\x73\x20\x70\x61\x72\x20\x64\x65\x73\x20\x22\x2c\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x70\x61\x72\x20\x65\x78\x2e\x20\x3a\x20\x78\x2c\x79\x2c\x7a"))
        self.textLabel2_2.setText(self.__tr("<font size=\"+4\" face=\"Helvetica\"><b>=</b></font>"))
        self.textLabel1_5.setText(self.__tr("<h3><p align=\"center\"><u><b>Expression</b></u></p></h3>"))
        self.textLabel1_2.setText(self.__tr("<h3><p align=\"center\"><u><b>Arguments</b></u></p></h3>"))
        self.textLabel1_3_2.setText(self.__trUtf8("\x43\x65\x20\x6e\x27\x65\x73\x74\x20\x71\x75\x27\x61\x70\x72\xc3\xa8\x73\x20\x61\x76\x6f\x69\x72\x20\x61\x70\x70\x75\x79\xc3\xa9\x20\x73\x75\x72\x20\x6c\x65\x20\x62\x6f\x75\x74\x6f\x6e\x20\x56\x61\x6c\x69\x64\x65\x72\x20\x71\x75\x65\x20\x6c\x65\x73\x20\x6e\x6f\x75\x76\x65\x6c\x6c\x65\x73\x0a\x76\x61\x6c\x65\x75\x72\x73\x20\x73\x65\x72\x6f\x6e\x74\x20\x65\x66\x66\x65\x63\x74\x69\x76\x65\x6d\x65\x6e\x74\x20\x70\x72\x69\x73\x65\x73\x20\x65\x6e\x20\x63\x6f\x6d\x70\x74\x65"))
        self.textLabel1_3.setText(self.__trUtf8("\x52\x65\x74\x6f\x75\x72\x2d\x43\x68\x61\x72\x69\x6f\x74\x20\x70\x65\x72\x6d\x65\x74\x20\x64\x65\x20\x76\xc3\xa9\x72\x69\x66\x69\x65\x72\x20\x71\x75\x65\x20\x6c\x27\x65\x78\x70\x72\x65\x73\x73\x69\x6f\x6e\x20\x65\x73\x74\x20\x76\x61\x6c\x69\x64\x65\x2e"))
        self.TWChoix.changeTab(self.Formule,self.__trUtf8("\x44\xc3\xa9\x66\x69\x6e\x69\x74\x69\x6f\x6e\x20\x46\x6f\x72\x6d\x75\x6c\x65"))
        self.textLabel6.setText(self.__tr("Filtre"))
        self.BNext.setText(self.__tr("Suivant"))
        QToolTip.add(self.BNext,self.__tr("affiche la prochaine occurence"))
        self.textLabel1_4.setText(self.__tr("<b><u>Commandes :</u></b>"))
        self.buttonGroup1.setTitle(self.__tr("Affichage"))
        self.RBalpha.setText(self.__trUtf8("\x61\x6c\x70\x68\x61\x62\xc3\xa9\x74\x69\x71\x75\x65"))
        self.RBGroupe.setText(self.__tr("par groupe"))
        self.textLabel4.setText(self.__trUtf8("\x3c\x70\x20\x61\x6c\x69\x67\x6e\x3d\x22\x6c\x65\x66\x74\x22\x3e\x4c\x61\x20\x63\x6f\x6d\x6d\x61\x6e\x64\x65\x20\x63\x68\x6f\x69\x73\x69\x65\x20\x73\x65\x72\x61\x20\x61\x6a\x6f\x75\x74\xc3\xa9\x65\x20\x41\x50\x52\x45\x53\x20\x6c\x61\x20\x63\x6f\x6d\x6d\x61\x6e\x64\x65\x20\x63\x6f\x75\x72\x61\x6e\x74\x65\x3c\x2f\x70\x3e"))
        self.TWChoix.changeTab(self.Commande,self.__tr("Nouvelle Commande"))


    def LBNouvCommandeClicked(self):
        print "DFormule.LBNouvCommandeClicked(): Not implemented yet"

    def LEFiltreTextChanged(self):
        print "DFormule.LEFiltreTextChanged(): Not implemented yet"

    def LEfiltreReturnPressed(self):
        print "DFormule.LEfiltreReturnPressed(): Not implemented yet"

    def BSupPressed(self):
        print "DFormule.BSupPressed(): Not implemented yet"

    def BOkPressed(self):
        print "DFormule.BOkPressed(): Not implemented yet"

    def BuildTabCommand(self):
        print "DFormule.BuildTabCommand(): Not implemented yet"

    def BNextPressed(self):
        print "DFormule.BNextPressed(): Not implemented yet"

    def NomFormuleSaisi(self):
        print "DFormule.NomFormuleSaisi(): Not implemented yet"

    def argsSaisis(self):
        print "DFormule.argsSaisis(): Not implemented yet"

    def FormuleSaisie(self):
        print "DFormule.FormuleSaisie(): Not implemented yet"

    def ViewDoc(self):
        print "DFormule.ViewDoc(): Not implemented yet"

    def __tr(self,s,c = None):
        return qApp.translate("DFormule",s,c)

    def __trUtf8(self,s,c = None):
        return qApp.translate("DFormule",s,c,QApplication.UnicodeUTF8)
