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

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric3/Wizards/FontDialogWizard/FontDialogWizardForm.ui'
#
# Created: Mon Feb 10 21:48:21 2003
#      by: The PyQt User Interface Compiler (pyuic)
#
# WARNING! All changes made in this file will be lost!


import sys
from qt import *


class FontDialogWizardForm(QDialog):
    def __init__(self,parent = None,name = None,modal = 0,fl = 0):
        QDialog.__init__(self,parent,name,modal,fl)

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


        FontDialogWizardFormLayout = QVBoxLayout(self,6,6,"FontDialogWizardFormLayout")

        Layout2 = QHBoxLayout(None,0,6,"Layout2")
        spacer = QSpacerItem(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
        Layout2.addItem(spacer)

        self.PushButton1 = QPushButton(self,"PushButton1")
        Layout2.addWidget(self.PushButton1)
        spacer_2 = QSpacerItem(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
        Layout2.addItem(spacer_2)
        FontDialogWizardFormLayout.addLayout(Layout2)

        self.TextLabel1 = QLabel(self,"TextLabel1")
        FontDialogWizardFormLayout.addWidget(self.TextLabel1)

        self.eVariable = QLineEdit(self,"eVariable")
        FontDialogWizardFormLayout.addWidget(self.eVariable)

        Layout1 = QHBoxLayout(None,0,6,"Layout1")
        spacer_3 = QSpacerItem(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
        Layout1.addItem(spacer_3)

        self.PushButton2 = QPushButton(self,"PushButton2")
        Layout1.addWidget(self.PushButton2)

        self.PushButton3 = QPushButton(self,"PushButton3")
        Layout1.addWidget(self.PushButton3)

        self.bTest = QPushButton(self,"bTest")
        self.bTest.setDefault(1)
        Layout1.addWidget(self.bTest)
        spacer_4 = QSpacerItem(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
        Layout1.addItem(spacer_4)
        FontDialogWizardFormLayout.addLayout(Layout1)

        self.languageChange()

        self.resize(QSize(377,121).expandedTo(self.minimumSizeHint()))

        self.connect(self.eVariable,SIGNAL("textChanged(const QString&)"),self.handleVar)
        self.connect(self.PushButton1,SIGNAL("clicked()"),self.handleSelectFont)
        self.connect(self.PushButton2,SIGNAL("clicked()"),self,SLOT("accept()"))
        self.connect(self.PushButton3,SIGNAL("clicked()"),self,SLOT("reject()"))
        self.connect(self.bTest,SIGNAL("clicked()"),self.testDlg)

        self.setTabOrder(self.PushButton1,self.eVariable)
        self.setTabOrder(self.eVariable,self.bTest)
        self.setTabOrder(self.bTest,self.PushButton2)
        self.setTabOrder(self.PushButton2,self.PushButton3)

    def languageChange(self):
        self.setCaption(self.tr("QFontDialog Wizard"))
        self.PushButton1.setText(self.tr("Select Font ..."))
        QToolTip.add(self.PushButton1,self.tr("Press to select a font via a dialog"))
        self.TextLabel1.setText(self.tr("Variable"))
        QToolTip.add(self.eVariable,self.tr("Enter a variable name"))
        self.PushButton2.setText(self.tr("&OK"))
        self.PushButton3.setText(self.tr("&Cancel"))
        self.bTest.setText(self.tr("&Test"))

    def handleSelectFont(self):
        print "FontDialogWizardForm.handleSelectFont(): Not implemented yet"

    def handleVar(self,a0):
        print "FontDialogWizardForm.handleVar(const QString&): Not implemented yet"

    def testDlg(self):
        print "FontDialogWizardForm.testDlg(): Not implemented yet"


if __name__ == "__main__":
    a = QApplication(sys.argv)
    QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
    w = FontDialogWizardForm()
    a.setMainWidget(w)
    w.show()
    a.exec_loop()
