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

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric3_8/eric3/Project/AddDirectoryForm.ui'
#
# Created: Di Dez 13 21:42:54 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 AddDirForm(QDialog):
    def __init__(self,parent = None,name = None,modal = 0,fl = 0):
        QDialog.__init__(self,parent,name,modal,fl)

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


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

        layout3 = QGridLayout(None,1,1,0,6,"layout3")

        self.filterComboBox = QComboBox(0,self,"filterComboBox")

        layout3.addMultiCellWidget(self.filterComboBox,0,0,1,2)

        self.targetDirButton = QPushButton(self,"targetDirButton")

        layout3.addWidget(self.targetDirButton,2,2)

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

        layout3.addWidget(self.targetDirLabel,2,0)

        self.sourceDirEdit = QLineEdit(self,"sourceDirEdit")

        layout3.addWidget(self.sourceDirEdit,1,1)

        self.recursiveCheckBox = QCheckBox(self,"recursiveCheckBox")

        layout3.addMultiCellWidget(self.recursiveCheckBox,3,3,0,2)

        self.targetDirEdit = QLineEdit(self,"targetDirEdit")

        layout3.addWidget(self.targetDirEdit,2,1)

        self.sourceDirButton = QPushButton(self,"sourceDirButton")

        layout3.addWidget(self.sourceDirButton,1,2)

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

        layout3.addWidget(self.sourceDirLabel,1,0)

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

        layout3.addWidget(self.textLabel1,0,0)
        AddDirFormLayout.addLayout(layout3)

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

        self.okButton = QPushButton(self,"okButton")
        self.okButton.setDefault(1)
        Layout5.addWidget(self.okButton)

        self.cancelButton = QPushButton(self,"cancelButton")
        Layout5.addWidget(self.cancelButton)
        Spacer5 = QSpacerItem(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
        Layout5.addItem(Spacer5)
        AddDirFormLayout.addLayout(Layout5)

        self.languageChange()

        self.resize(QSize(391,169).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)

        self.connect(self.okButton,SIGNAL("clicked()"),self.accept)
        self.connect(self.cancelButton,SIGNAL("clicked()"),self.reject)
        self.connect(self.sourceDirButton,SIGNAL("clicked()"),self.handleSDirDialog)
        self.connect(self.targetDirButton,SIGNAL("clicked()"),self.handleTDirDialog)
        self.connect(self.sourceDirEdit,SIGNAL("textChanged(const QString&)"),self.handleSTextChanged)
        self.connect(self.filterComboBox,SIGNAL("highlighted(const QString&)"),self.handleFileTypeSelected)

        self.setTabOrder(self.filterComboBox,self.sourceDirEdit)
        self.setTabOrder(self.sourceDirEdit,self.sourceDirButton)
        self.setTabOrder(self.sourceDirButton,self.targetDirEdit)
        self.setTabOrder(self.targetDirEdit,self.targetDirButton)
        self.setTabOrder(self.targetDirButton,self.recursiveCheckBox)
        self.setTabOrder(self.recursiveCheckBox,self.okButton)
        self.setTabOrder(self.okButton,self.cancelButton)

        self.targetDirLabel.setBuddy(self.targetDirEdit)
        self.sourceDirLabel.setBuddy(self.sourceDirEdit)
        self.textLabel1.setBuddy(self.filterComboBox)


    def languageChange(self):
        self.setCaption(self.__tr("Add Directory"))
        QToolTip.add(self,self.__tr("Add a directory to the current project"))
        QWhatsThis.add(self,self.__tr("<b>Add Directory Dialog</b>\n"
"<p>This dialog is used to add a directory to the current project.</p>"))
        self.targetDirButton.setText(self.__tr("..."))
        QWhatsThis.add(self.targetDirButton,self.__tr("<b>Target Directory</b>\n"
"<p>Select the target directory via a directory selection dialog.</p>"))
        self.targetDirLabel.setText(self.__tr("&Target Directory:"))
        QToolTip.add(self.sourceDirEdit,self.__tr("Enter the name of the directory to add"))
        QWhatsThis.add(self.sourceDirEdit,self.__tr("<b>Source Directory</b>\n"
"<p>Enter the name of the directory to add to the current project.\n"
" You may select it with a dialog by pressing the button to\n"
" the right.</p>"))
        self.recursiveCheckBox.setText(self.__tr("&Recurse into subdirectories"))
        QToolTip.add(self.recursiveCheckBox,self.__tr("Select, whether a recursive add should be performed"))
        QToolTip.add(self.targetDirEdit,self.__tr("Enter the target directory for the file"))
        QWhatsThis.add(self.targetDirEdit,self.__tr("<b>Target Directory</b>\n"
"<p>Enter the target directory. You may select it\n"
" with a dialog by pressing the button to the right.</p>"))
        self.sourceDirButton.setText(self.__tr("..."))
        QWhatsThis.add(self.sourceDirButton,self.__tr("<b>Source Directory</b>\n"
"<p>Select the source directory via a directory selection dialog.</p>"))
        self.sourceDirLabel.setText(self.__tr("&Source Directory:"))
        self.textLabel1.setText(self.__tr("&File Type:"))
        self.okButton.setText(self.__tr("&OK"))
        self.cancelButton.setText(self.__tr("&Cancel"))


    def handleSDirDialog(self):
        print "AddDirForm.handleSDirDialog(): Not implemented yet"

    def handleTDirDialog(self):
        print "AddDirForm.handleTDirDialog(): Not implemented yet"

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

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

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

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