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

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric3_6/eric3/Wizards/FontDialogWizard/FontDialogWizardForm.ui'
#
# Created: Do Dez 30 14:12:36 2004
#      by: The PyQt User Interface Compiler (pyuic) snapshot-20041229
#
# 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")
        Spacer3 = QSpacerItem(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
        Layout2.addItem(Spacer3)

        self.PushButton1 = QPushButton(self,"PushButton1")
        Layout2.addWidget(self.PushButton1)
        Spacer4 = QSpacerItem(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
        Layout2.addItem(Spacer4)
        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")
        Spacer1 = QSpacerItem(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
        Layout1.addItem(Spacer1)

        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)
        Spacer2 = QSpacerItem(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
        Layout1.addItem(Spacer2)
        FontDialogWizardFormLayout.addLayout(Layout1)

        self.languageChange()

        self.resize(QSize(377,121).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)

        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.accept)
        self.connect(self.PushButton3,SIGNAL("clicked()"),self.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"

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

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()
