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

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric3_9/eric3/Wizards/FileDialogWizard/FileDialogWizardForm.ui'
#
# Created: Mo Mär 20 22:18:15 2006
#      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 FileDialogWizardForm(QDialog):
    def __init__(self,parent = None,name = None,modal = 0,fl = 0):
        QDialog.__init__(self,parent,name,modal,fl)

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

        self.setSizeGripEnabled(1)

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

        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.NoFocus)
        qtButtonGroupLayout.addWidget(self.rQt4)
        spacer3 = QSpacerItem(40,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
        qtButtonGroupLayout.addItem(spacer3)
        FileDialogWizardFormLayout.addWidget(self.qtButtonGroup)

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

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

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

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

        self.rDirectory = QRadioButton(self.ButtonGroup2,"rDirectory")
        ButtonGroup2Layout.addWidget(self.rDirectory)
        FileDialogWizardFormLayout.addWidget(self.ButtonGroup2)

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

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

        self.cSymlinks = QCheckBox(self,"cSymlinks")
        self.cSymlinks.setChecked(1)
        FileDialogWizardFormLayout.addWidget(self.cSymlinks)

        self.filePropertiesGroup = QGroupBox(self,"filePropertiesGroup")
        self.filePropertiesGroup.setColumnLayout(0,Qt.Vertical)
        self.filePropertiesGroup.layout().setSpacing(6)
        self.filePropertiesGroup.layout().setMargin(6)
        filePropertiesGroupLayout = QGridLayout(self.filePropertiesGroup.layout())
        filePropertiesGroupLayout.setAlignment(Qt.AlignTop)

        self.TextLabel3 = QLabel(self.filePropertiesGroup,"TextLabel3")

        filePropertiesGroupLayout.addWidget(self.TextLabel3,0,0)

        self.eStartWith = QLineEdit(self.filePropertiesGroup,"eStartWith")

        filePropertiesGroupLayout.addWidget(self.eStartWith,1,0)

        self.TextLabel2 = QLabel(self.filePropertiesGroup,"TextLabel2")

        filePropertiesGroupLayout.addMultiCellWidget(self.TextLabel2,2,2,0,1)

        self.cConfirmOverwrite = QCheckBox(self.filePropertiesGroup,"cConfirmOverwrite")
        self.cConfirmOverwrite.setEnabled(0)

        filePropertiesGroupLayout.addMultiCellWidget(self.cConfirmOverwrite,4,4,0,1)

        self.eFilters = QLineEdit(self.filePropertiesGroup,"eFilters")

        filePropertiesGroupLayout.addWidget(self.eFilters,3,0)

        self.cStartWith = QCheckBox(self.filePropertiesGroup,"cStartWith")

        filePropertiesGroupLayout.addWidget(self.cStartWith,1,1)

        self.cFilters = QCheckBox(self.filePropertiesGroup,"cFilters")

        filePropertiesGroupLayout.addWidget(self.cFilters,3,1)
        FileDialogWizardFormLayout.addWidget(self.filePropertiesGroup)

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

        self.cWorkDir = QCheckBox(self.dirPropertiesGroup,"cWorkDir")

        dirPropertiesGroupLayout.addWidget(self.cWorkDir,1,1)

        self.eWorkDir = QLineEdit(self.dirPropertiesGroup,"eWorkDir")

        dirPropertiesGroupLayout.addWidget(self.eWorkDir,1,0)

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

        dirPropertiesGroupLayout.addMultiCellWidget(self.TextLabel4,0,0,0,1)

        self.cDirOnly = QCheckBox(self.dirPropertiesGroup,"cDirOnly")
        self.cDirOnly.setChecked(1)

        dirPropertiesGroupLayout.addMultiCellWidget(self.cDirOnly,2,2,0,1)
        FileDialogWizardFormLayout.addWidget(self.dirPropertiesGroup)

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

        self.PushButton7 = QPushButton(self,"PushButton7")
        Layout7.addWidget(self.PushButton7)

        self.PushButton8 = QPushButton(self,"PushButton8")
        Layout7.addWidget(self.PushButton8)

        self.bTest = QPushButton(self,"bTest")
        self.bTest.setDefault(1)
        Layout7.addWidget(self.bTest)
        Spacer6 = QSpacerItem(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
        Layout7.addItem(Spacer6)
        FileDialogWizardFormLayout.addLayout(Layout7)

        self.languageChange()

        self.resize(QSize(529,455).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)

        self.connect(self.PushButton7,SIGNAL("clicked()"),self.accept)
        self.connect(self.PushButton8,SIGNAL("clicked()"),self.reject)
        self.connect(self.bTest,SIGNAL("clicked()"),self.testDlg)
        self.connect(self.rSaveFile,SIGNAL("toggled(bool)"),self.handleToggleConfirmCheckBox)
        self.connect(self.rQt4,SIGNAL("toggled(bool)"),self.handleToggleConfirmCheckBox)
        self.connect(self.rDirectory,SIGNAL("toggled(bool)"),self.handleToggleGroupsAndTest)
        self.connect(self.cStartWith,SIGNAL("toggled(bool)"),self.handleToggleGroupsAndTest)
        self.connect(self.cFilters,SIGNAL("toggled(bool)"),self.handleToggleGroupsAndTest)
        self.connect(self.cWorkDir,SIGNAL("toggled(bool)"),self.handleToggleGroupsAndTest)

        self.setTabOrder(self.rQt3,self.rOpenFile)
        self.setTabOrder(self.rOpenFile,self.eCaption)
        self.setTabOrder(self.eCaption,self.cSymlinks)
        self.setTabOrder(self.cSymlinks,self.eStartWith)
        self.setTabOrder(self.eStartWith,self.cStartWith)
        self.setTabOrder(self.cStartWith,self.eFilters)
        self.setTabOrder(self.eFilters,self.cFilters)
        self.setTabOrder(self.cFilters,self.cConfirmOverwrite)
        self.setTabOrder(self.cConfirmOverwrite,self.eWorkDir)
        self.setTabOrder(self.eWorkDir,self.cWorkDir)
        self.setTabOrder(self.cWorkDir,self.cDirOnly)
        self.setTabOrder(self.cDirOnly,self.bTest)
        self.setTabOrder(self.bTest,self.PushButton7)
        self.setTabOrder(self.PushButton7,self.PushButton8)
        self.setTabOrder(self.PushButton8,self.rQt4)
        self.setTabOrder(self.rQt4,self.rOpenFiles)
        self.setTabOrder(self.rOpenFiles,self.rSaveFile)
        self.setTabOrder(self.rSaveFile,self.rDirectory)


    def languageChange(self):
        self.setCaption(self.__tr("QFileDialog 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.ButtonGroup2.setTitle(self.__tr("Type"))
        self.rOpenFile.setText(self.__tr("Open File"))
        QToolTip.add(self.rOpenFile,self.__tr("Select to create an 'Open File' dialog"))
        self.rOpenFiles.setText(self.__tr("Open Files"))
        QToolTip.add(self.rOpenFiles,self.__tr("Select to create an 'Open Files' dialog"))
        self.rSaveFile.setText(self.__tr("Save File"))
        QToolTip.add(self.rSaveFile,self.__tr("Select to create a 'Save File' dialog"))
        self.rDirectory.setText(self.__tr("Select Directory"))
        QToolTip.add(self.rDirectory,self.__tr("Select to create a 'Select Directory' dialog"))
        self.TextLabel1.setText(self.__tr("Caption"))
        QToolTip.add(self.eCaption,self.__tr("Enter the caption text"))
        self.cSymlinks.setText(self.__tr("Resolve Symlinks"))
        QToolTip.add(self.cSymlinks,self.__tr("Check to resolve symbolic links"))
        self.filePropertiesGroup.setTitle(self.__tr("File Dialog Properties"))
        self.TextLabel3.setText(self.__tr("Start With / Working Directory"))
        QToolTip.add(self.eStartWith,self.__tr("Enter the working directory or a filename"))
        self.TextLabel2.setText(self.__tr("Filters"))
        self.cConfirmOverwrite.setText(self.__tr("Show overwrite confirmation"))
        QToolTip.add(self.cConfirmOverwrite,self.__tr("Select to show an overwrite confirmation dialog"))
        QToolTip.add(self.eFilters,self.__tr("Enter the filter specifications separated by ';;'"))
        self.cStartWith.setText(self.__tr("Is Variable"))
        QToolTip.add(self.cStartWith,self.__tr("Check this if the contents of the edit names a variable or variable function"))
        self.cFilters.setText(self.__tr("Is Variable"))
        QToolTip.add(self.cFilters,self.__tr("Check this if the contents of the edit names a variable or variable function"))
        self.dirPropertiesGroup.setTitle(self.__tr("Directory Dialog Properties"))
        self.cWorkDir.setText(self.__tr("Is Variable"))
        QToolTip.add(self.cWorkDir,self.__tr("Check this if the contents of the edit names a variable or variable function"))
        QToolTip.add(self.eWorkDir,self.__tr("Enter the working directory"))
        self.TextLabel4.setText(self.__tr("Working Directory"))
        self.cDirOnly.setText(self.__tr("Show Directories Only"))
        QToolTip.add(self.cDirOnly,self.__tr("Check to display directories only"))
        self.PushButton7.setText(self.__tr("&OK"))
        self.PushButton8.setText(self.__tr("&Cancel"))
        self.bTest.setText(self.__tr("&Test"))
        self.bTest.setAccel(self.__tr("Alt+T"))


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

    def handleToggleConfirmCheckBox(self):
        print "FileDialogWizardForm.handleToggleConfirmCheckBox(): Not implemented yet"

    def handleToggleGroupsAndTest(self):
        print "FileDialogWizardForm.handleToggleGroupsAndTest(): Not implemented yet"

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

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