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

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric3_9/eric3/Wizards/InputDialogWizard/InputDialogWizardForm.ui'
#
# Created: Sa Dez 31 12:37:41 2005
#      by: The PyQt User Interface Compiler (pyuic) 3.15.1
#
# WARNING! All changes made in this file will be lost!


import sys
from qt import *


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

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

        self.setSizeGripEnabled(1)

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

        self.qtButtonGroup = QButtonGroup(self,"qtButtonGroup")
        self.qtButtonGroup.setColumnLayout(0,Qt.Vertical)
        self.qtButtonGroup.layout().setSpacing(6)
        self.qtButtonGroup.layout().setMargin(6)
        qtButtonGroupLayout = QHBoxLayout(self.qtButtonGroup.layout())
        qtButtonGroupLayout.setAlignment(Qt.AlignTop)

        self.rQt3 = QRadioButton(self.qtButtonGroup,"rQt3")
        self.rQt3.setChecked(1)
        qtButtonGroupLayout.addWidget(self.rQt3)

        self.rQt4 = QRadioButton(self.qtButtonGroup,"rQt4")
        self.rQt4.setFocusPolicy(QRadioButton.TabFocus)
        qtButtonGroupLayout.addWidget(self.rQt4)
        spacer3 = QSpacerItem(40,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
        qtButtonGroupLayout.addItem(spacer3)
        InputDialogWizardFormLayout.addWidget(self.qtButtonGroup)

        self.ButtonGroup1 = QButtonGroup(self,"ButtonGroup1")
        self.ButtonGroup1.setColumnLayout(0,Qt.Vertical)
        self.ButtonGroup1.layout().setSpacing(6)
        self.ButtonGroup1.layout().setMargin(11)
        ButtonGroup1Layout = QHBoxLayout(self.ButtonGroup1.layout())
        ButtonGroup1Layout.setAlignment(Qt.AlignTop)

        self.rText = QRadioButton(self.ButtonGroup1,"rText")
        self.rText.setChecked(1)
        ButtonGroup1Layout.addWidget(self.rText)

        self.rInteger = QRadioButton(self.ButtonGroup1,"rInteger")
        ButtonGroup1Layout.addWidget(self.rInteger)

        self.rDouble = QRadioButton(self.ButtonGroup1,"rDouble")
        ButtonGroup1Layout.addWidget(self.rDouble)

        self.rItem = QRadioButton(self.ButtonGroup1,"rItem")
        ButtonGroup1Layout.addWidget(self.rItem)
        InputDialogWizardFormLayout.addWidget(self.ButtonGroup1)

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

        self.eCaption = QLineEdit(self,"eCaption")
        InputDialogWizardFormLayout.addWidget(self.eCaption)

        self.TextLabel2 = QLabel(self,"TextLabel2")
        InputDialogWizardFormLayout.addWidget(self.TextLabel2)

        self.eLabel = QLineEdit(self,"eLabel")
        InputDialogWizardFormLayout.addWidget(self.eLabel)

        self.GroupBox1 = QGroupBox(self,"GroupBox1")
        self.GroupBox1.setColumnLayout(0,Qt.Vertical)
        self.GroupBox1.layout().setSpacing(6)
        self.GroupBox1.layout().setMargin(11)
        GroupBox1Layout = QVBoxLayout(self.GroupBox1.layout())
        GroupBox1Layout.setAlignment(Qt.AlignTop)

        self.ButtonGroup2 = QButtonGroup(self.GroupBox1,"ButtonGroup2")
        self.ButtonGroup2.setColumnLayout(0,Qt.Vertical)
        self.ButtonGroup2.layout().setSpacing(6)
        self.ButtonGroup2.layout().setMargin(11)
        ButtonGroup2Layout = QHBoxLayout(self.ButtonGroup2.layout())
        ButtonGroup2Layout.setAlignment(Qt.AlignTop)

        self.rEchoNormal = QRadioButton(self.ButtonGroup2,"rEchoNormal")
        self.rEchoNormal.setChecked(1)
        ButtonGroup2Layout.addWidget(self.rEchoNormal)

        self.rEchoNoEcho = QRadioButton(self.ButtonGroup2,"rEchoNoEcho")
        ButtonGroup2Layout.addWidget(self.rEchoNoEcho)

        self.rEchoPassword = QRadioButton(self.ButtonGroup2,"rEchoPassword")
        ButtonGroup2Layout.addWidget(self.rEchoPassword)
        GroupBox1Layout.addWidget(self.ButtonGroup2)

        self.TextLabel3 = QLabel(self.GroupBox1,"TextLabel3")
        GroupBox1Layout.addWidget(self.TextLabel3)

        self.eTextDefault = QLineEdit(self.GroupBox1,"eTextDefault")
        GroupBox1Layout.addWidget(self.eTextDefault)
        InputDialogWizardFormLayout.addWidget(self.GroupBox1)

        self.GroupBox2 = QGroupBox(self,"GroupBox2")
        self.GroupBox2.setEnabled(0)
        self.GroupBox2.setColumnLayout(0,Qt.Vertical)
        self.GroupBox2.layout().setSpacing(6)
        self.GroupBox2.layout().setMargin(11)
        GroupBox2Layout = QGridLayout(self.GroupBox2.layout())
        GroupBox2Layout.setAlignment(Qt.AlignTop)

        self.TextLabel4 = QLabel(self.GroupBox2,"TextLabel4")

        GroupBox2Layout.addWidget(self.TextLabel4,0,0)

        self.TextLabel4_2 = QLabel(self.GroupBox2,"TextLabel4_2")

        GroupBox2Layout.addWidget(self.TextLabel4_2,0,1)

        self.TextLabel4_3 = QLabel(self.GroupBox2,"TextLabel4_3")

        GroupBox2Layout.addWidget(self.TextLabel4_3,0,2)

        self.TextLabel4_4 = QLabel(self.GroupBox2,"TextLabel4_4")

        GroupBox2Layout.addWidget(self.TextLabel4_4,0,3)

        self.sIntDefault = QSpinBox(self.GroupBox2,"sIntDefault")
        self.sIntDefault.setMaxValue(2147483647)
        self.sIntDefault.setMinValue(-2147483647)

        GroupBox2Layout.addWidget(self.sIntDefault,1,0)

        self.sIntTo = QSpinBox(self.GroupBox2,"sIntTo")
        self.sIntTo.setMaxValue(2147483647)
        self.sIntTo.setMinValue(-2147483647)
        self.sIntTo.setValue(2147483647)

        GroupBox2Layout.addWidget(self.sIntTo,1,2)

        self.sIntStep = QSpinBox(self.GroupBox2,"sIntStep")
        self.sIntStep.setMaxValue(2147483647)
        self.sIntStep.setMinValue(-2147483647)
        self.sIntStep.setValue(1)

        GroupBox2Layout.addWidget(self.sIntStep,1,3)

        self.sIntFrom = QSpinBox(self.GroupBox2,"sIntFrom")
        self.sIntFrom.setMaxValue(2147483647)
        self.sIntFrom.setMinValue(-2147483647)
        self.sIntFrom.setValue(-2147483647)

        GroupBox2Layout.addWidget(self.sIntFrom,1,1)
        InputDialogWizardFormLayout.addWidget(self.GroupBox2)

        self.GroupBox3 = QGroupBox(self,"GroupBox3")
        self.GroupBox3.setEnabled(0)
        self.GroupBox3.setColumnLayout(0,Qt.Vertical)
        self.GroupBox3.layout().setSpacing(6)
        self.GroupBox3.layout().setMargin(11)
        GroupBox3Layout = QGridLayout(self.GroupBox3.layout())
        GroupBox3Layout.setAlignment(Qt.AlignTop)

        self.TextLabel6 = QLabel(self.GroupBox3,"TextLabel6")

        GroupBox3Layout.addWidget(self.TextLabel6,0,1)

        self.TextLabel7 = QLabel(self.GroupBox3,"TextLabel7")

        GroupBox3Layout.addWidget(self.TextLabel7,0,2)

        self.TextLabel8 = QLabel(self.GroupBox3,"TextLabel8")

        GroupBox3Layout.addWidget(self.TextLabel8,0,3)

        self.sDoubleDecimals = QSpinBox(self.GroupBox3,"sDoubleDecimals")
        self.sDoubleDecimals.setMaxValue(2147483647)
        self.sDoubleDecimals.setMinValue(-2147483647)
        self.sDoubleDecimals.setValue(1)

        GroupBox3Layout.addWidget(self.sDoubleDecimals,1,3)

        self.TextLabel5 = QLabel(self.GroupBox3,"TextLabel5")

        GroupBox3Layout.addWidget(self.TextLabel5,0,0)

        self.eDoubleDefault = QLineEdit(self.GroupBox3,"eDoubleDefault")

        GroupBox3Layout.addWidget(self.eDoubleDefault,1,0)

        self.eDoubleFrom = QLineEdit(self.GroupBox3,"eDoubleFrom")

        GroupBox3Layout.addWidget(self.eDoubleFrom,1,1)

        self.eDoubleTo = QLineEdit(self.GroupBox3,"eDoubleTo")

        GroupBox3Layout.addWidget(self.eDoubleTo,1,2)
        InputDialogWizardFormLayout.addWidget(self.GroupBox3)

        self.GroupBox4 = QGroupBox(self,"GroupBox4")
        self.GroupBox4.setEnabled(0)
        self.GroupBox4.setColumnLayout(0,Qt.Vertical)
        self.GroupBox4.layout().setSpacing(6)
        self.GroupBox4.layout().setMargin(11)
        GroupBox4Layout = QGridLayout(self.GroupBox4.layout())
        GroupBox4Layout.setAlignment(Qt.AlignTop)

        self.TextLabel9 = QLabel(self.GroupBox4,"TextLabel9")

        GroupBox4Layout.addWidget(self.TextLabel9,0,0)

        self.TextLabel10 = QLabel(self.GroupBox4,"TextLabel10")

        GroupBox4Layout.addWidget(self.TextLabel10,0,1)

        self.eVariable = QLineEdit(self.GroupBox4,"eVariable")

        GroupBox4Layout.addWidget(self.eVariable,1,0)

        self.sCurrentItem = QSpinBox(self.GroupBox4,"sCurrentItem")

        GroupBox4Layout.addWidget(self.sCurrentItem,1,1)

        self.cEditable = QCheckBox(self.GroupBox4,"cEditable")
        self.cEditable.setChecked(1)

        GroupBox4Layout.addWidget(self.cEditable,1,2)
        InputDialogWizardFormLayout.addWidget(self.GroupBox4)

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

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

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

        self.PushButton3 = QPushButton(self,"PushButton3")
        self.PushButton3.setDefault(1)
        Layout1.addWidget(self.PushButton3)
        Spacer2 = QSpacerItem(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
        Layout1.addItem(Spacer2)
        InputDialogWizardFormLayout.addLayout(Layout1)

        self.languageChange()

        self.resize(QSize(501,607).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)

        self.connect(self.rText,SIGNAL("toggled(bool)"),self.GroupBox1.setEnabled)
        self.connect(self.rText,SIGNAL("toggled(bool)"),self.GroupBox2.setDisabled)
        self.connect(self.rText,SIGNAL("toggled(bool)"),self.GroupBox3.setDisabled)
        self.connect(self.rText,SIGNAL("toggled(bool)"),self.GroupBox4.setDisabled)
        self.connect(self.rInteger,SIGNAL("toggled(bool)"),self.GroupBox1.setDisabled)
        self.connect(self.rInteger,SIGNAL("toggled(bool)"),self.GroupBox2.setEnabled)
        self.connect(self.rInteger,SIGNAL("toggled(bool)"),self.GroupBox3.setDisabled)
        self.connect(self.rInteger,SIGNAL("toggled(bool)"),self.GroupBox4.setDisabled)
        self.connect(self.rDouble,SIGNAL("toggled(bool)"),self.GroupBox1.setDisabled)
        self.connect(self.rDouble,SIGNAL("toggled(bool)"),self.GroupBox2.setDisabled)
        self.connect(self.rDouble,SIGNAL("toggled(bool)"),self.GroupBox3.setEnabled)
        self.connect(self.rDouble,SIGNAL("toggled(bool)"),self.GroupBox4.setDisabled)
        self.connect(self.rItem,SIGNAL("toggled(bool)"),self.GroupBox1.setDisabled)
        self.connect(self.rItem,SIGNAL("toggled(bool)"),self.GroupBox2.setDisabled)
        self.connect(self.rItem,SIGNAL("toggled(bool)"),self.GroupBox3.setDisabled)
        self.connect(self.rItem,SIGNAL("toggled(bool)"),self.GroupBox4.setEnabled)
        self.connect(self.PushButton1,SIGNAL("clicked()"),self.accept)
        self.connect(self.PushButton2,SIGNAL("clicked()"),self.reject)
        self.connect(self.PushButton3,SIGNAL("clicked()"),self.testDlg)
        self.connect(self.rItem,SIGNAL("toggled(bool)"),self.PushButton3.setDisabled)
        self.connect(self.rDouble,SIGNAL("toggled(bool)"),self.PushButton3.setEnabled)
        self.connect(self.rInteger,SIGNAL("toggled(bool)"),self.PushButton3.setEnabled)
        self.connect(self.rText,SIGNAL("toggled(bool)"),self.PushButton3.setEnabled)

        self.setTabOrder(self.rQt3,self.rQt4)
        self.setTabOrder(self.rQt4,self.rText)
        self.setTabOrder(self.rText,self.rInteger)
        self.setTabOrder(self.rInteger,self.rDouble)
        self.setTabOrder(self.rDouble,self.rItem)
        self.setTabOrder(self.rItem,self.eCaption)
        self.setTabOrder(self.eCaption,self.eLabel)
        self.setTabOrder(self.eLabel,self.rEchoNormal)
        self.setTabOrder(self.rEchoNormal,self.rEchoNoEcho)
        self.setTabOrder(self.rEchoNoEcho,self.rEchoPassword)
        self.setTabOrder(self.rEchoPassword,self.eTextDefault)
        self.setTabOrder(self.eTextDefault,self.sIntDefault)
        self.setTabOrder(self.sIntDefault,self.sIntFrom)
        self.setTabOrder(self.sIntFrom,self.sIntTo)
        self.setTabOrder(self.sIntTo,self.sIntStep)
        self.setTabOrder(self.sIntStep,self.eDoubleDefault)
        self.setTabOrder(self.eDoubleDefault,self.eDoubleFrom)
        self.setTabOrder(self.eDoubleFrom,self.eDoubleTo)
        self.setTabOrder(self.eDoubleTo,self.sDoubleDecimals)
        self.setTabOrder(self.sDoubleDecimals,self.eVariable)
        self.setTabOrder(self.eVariable,self.sCurrentItem)
        self.setTabOrder(self.sCurrentItem,self.cEditable)
        self.setTabOrder(self.cEditable,self.PushButton3)
        self.setTabOrder(self.PushButton3,self.PushButton1)
        self.setTabOrder(self.PushButton1,self.PushButton2)


    def languageChange(self):
        self.setCaption(self.__tr("QInputDialog Wizard"))
        self.qtButtonGroup.setTitle(self.__tr("Qt Version"))
        self.rQt3.setText(self.__tr("Qt 3"))
        QToolTip.add(self.rQt3,self.__tr("Select to generate code for Qt 3"))
        self.rQt4.setText(self.__tr("Qt 4"))
        QToolTip.add(self.rQt4,self.__tr("Select to generate code for Qt 4"))
        self.ButtonGroup1.setTitle(self.__tr("Type"))
        self.rText.setText(self.__tr("Text"))
        self.rInteger.setText(self.__tr("Integer"))
        self.rDouble.setText(self.__tr("Double"))
        self.rItem.setText(self.__tr("Item"))
        self.TextLabel1.setText(self.__tr("Caption"))
        self.TextLabel2.setText(self.__tr("Label"))
        self.GroupBox1.setTitle(self.__tr("Text"))
        self.ButtonGroup2.setTitle(self.__tr("Echo Mode"))
        self.rEchoNormal.setText(self.__tr("Normal"))
        self.rEchoNoEcho.setText(self.__tr("No Echo"))
        self.rEchoPassword.setText(self.__tr("Password"))
        self.TextLabel3.setText(self.__tr("Default"))
        self.GroupBox2.setTitle(self.__tr("Integer"))
        self.TextLabel4.setText(self.__tr("Default"))
        self.TextLabel4_2.setText(self.__tr("From"))
        self.TextLabel4_3.setText(self.__tr("To"))
        self.TextLabel4_4.setText(self.__tr("Step"))
        self.GroupBox3.setTitle(self.__tr("Double"))
        self.TextLabel6.setText(self.__tr("From"))
        self.TextLabel7.setText(self.__tr("To"))
        self.TextLabel8.setText(self.__tr("Decimals"))
        self.TextLabel5.setText(self.__tr("Default"))
        self.eDoubleDefault.setText(self.__tr("0"))
        self.eDoubleFrom.setText(self.__tr("-2147483647"))
        self.eDoubleTo.setText(self.__tr("2147483647"))
        self.GroupBox4.setTitle(self.__tr("Item"))
        self.TextLabel9.setText(self.__tr("String List Variable"))
        self.TextLabel10.setText(self.__tr("Current Item"))
        self.cEditable.setText(self.__tr("Editable"))
        self.PushButton1.setText(self.__tr("&OK"))
        self.PushButton2.setText(self.__tr("&Cancel"))
        self.PushButton3.setText(self.__tr("&Test"))


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

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

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