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

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric4/eric4_0/eric4/UI/FindFileDialog.ui'
#
# Created: Sat Feb  3 15:33:52 2007
#      by: PyQt4 UI code generator 4-snapshot-20070125
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_FindFileDialog(object):
    def setupUi(self, FindFileDialog):
        FindFileDialog.setObjectName("FindFileDialog")
        FindFileDialog.resize(QtCore.QSize(QtCore.QRect(0,0,597,662).size()).expandedTo(FindFileDialog.minimumSizeHint()))

        self.vboxlayout = QtGui.QVBoxLayout(FindFileDialog)
        self.vboxlayout.setMargin(6)
        self.vboxlayout.setSpacing(6)
        self.vboxlayout.setObjectName("vboxlayout")

        self.gridlayout = QtGui.QGridLayout()
        self.gridlayout.setMargin(0)
        self.gridlayout.setSpacing(6)
        self.gridlayout.setObjectName("gridlayout")

        self.groupBox = QtGui.QGroupBox(FindFileDialog)
        self.groupBox.setObjectName("groupBox")

        self.vboxlayout1 = QtGui.QVBoxLayout(self.groupBox)
        self.vboxlayout1.setMargin(6)
        self.vboxlayout1.setSpacing(6)
        self.vboxlayout1.setObjectName("vboxlayout1")

        self.sourcesCheckBox = QtGui.QCheckBox(self.groupBox)
        self.sourcesCheckBox.setChecked(True)
        self.sourcesCheckBox.setObjectName("sourcesCheckBox")
        self.vboxlayout1.addWidget(self.sourcesCheckBox)

        self.formsCheckBox = QtGui.QCheckBox(self.groupBox)
        self.formsCheckBox.setObjectName("formsCheckBox")
        self.vboxlayout1.addWidget(self.formsCheckBox)

        self.interfacesCheckBox = QtGui.QCheckBox(self.groupBox)
        self.interfacesCheckBox.setObjectName("interfacesCheckBox")
        self.vboxlayout1.addWidget(self.interfacesCheckBox)
        self.gridlayout.addWidget(self.groupBox,2,1,1,1)

        self.findtextCombo = QtGui.QComboBox(FindFileDialog)

        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Policy(7),QtGui.QSizePolicy.Policy(0))
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.findtextCombo.sizePolicy().hasHeightForWidth())
        self.findtextCombo.setSizePolicy(sizePolicy)
        self.findtextCombo.setEditable(True)
        self.findtextCombo.setInsertPolicy(QtGui.QComboBox.InsertAtTop)
        self.findtextCombo.setAutoCompletion(False)
        self.findtextCombo.setDuplicatesEnabled(False)
        self.findtextCombo.setObjectName("findtextCombo")
        self.gridlayout.addWidget(self.findtextCombo,0,1,1,2)

        self.groupBox_2 = QtGui.QGroupBox(FindFileDialog)
        self.groupBox_2.setObjectName("groupBox_2")

        self.vboxlayout2 = QtGui.QVBoxLayout(self.groupBox_2)
        self.vboxlayout2.setMargin(6)
        self.vboxlayout2.setSpacing(6)
        self.vboxlayout2.setObjectName("vboxlayout2")

        self.projectButton = QtGui.QRadioButton(self.groupBox_2)
        self.projectButton.setChecked(True)
        self.projectButton.setObjectName("projectButton")
        self.vboxlayout2.addWidget(self.projectButton)

        self.dirButton = QtGui.QRadioButton(self.groupBox_2)
        self.dirButton.setFocusPolicy(QtCore.Qt.NoFocus)
        self.dirButton.setObjectName("dirButton")
        self.vboxlayout2.addWidget(self.dirButton)

        self.hboxlayout = QtGui.QHBoxLayout()
        self.hboxlayout.setMargin(0)
        self.hboxlayout.setSpacing(6)
        self.hboxlayout.setObjectName("hboxlayout")

        self.dirEdit = QtGui.QLineEdit(self.groupBox_2)
        self.dirEdit.setEnabled(False)
        self.dirEdit.setObjectName("dirEdit")
        self.hboxlayout.addWidget(self.dirEdit)

        self.dirSelectButton = QtGui.QPushButton(self.groupBox_2)
        self.dirSelectButton.setEnabled(False)
        self.dirSelectButton.setFocusPolicy(QtCore.Qt.NoFocus)
        self.dirSelectButton.setObjectName("dirSelectButton")
        self.hboxlayout.addWidget(self.dirSelectButton)
        self.vboxlayout2.addLayout(self.hboxlayout)
        self.gridlayout.addWidget(self.groupBox_2,2,2,1,1)

        self.hboxlayout1 = QtGui.QHBoxLayout()
        self.hboxlayout1.setMargin(0)
        self.hboxlayout1.setSpacing(6)
        self.hboxlayout1.setObjectName("hboxlayout1")

        self.caseCheckBox = QtGui.QCheckBox(FindFileDialog)
        self.caseCheckBox.setObjectName("caseCheckBox")
        self.hboxlayout1.addWidget(self.caseCheckBox)

        self.wordCheckBox = QtGui.QCheckBox(FindFileDialog)
        self.wordCheckBox.setObjectName("wordCheckBox")
        self.hboxlayout1.addWidget(self.wordCheckBox)

        self.regexpCheckBox = QtGui.QCheckBox(FindFileDialog)
        self.regexpCheckBox.setObjectName("regexpCheckBox")
        self.hboxlayout1.addWidget(self.regexpCheckBox)
        self.gridlayout.addLayout(self.hboxlayout1,1,1,1,2)

        self.TextLabel1 = QtGui.QLabel(FindFileDialog)
        self.TextLabel1.setObjectName("TextLabel1")
        self.gridlayout.addWidget(self.TextLabel1,0,0,1,1)
        self.vboxlayout.addLayout(self.gridlayout)

        self.findProgress = QtGui.QProgressBar(FindFileDialog)
        self.findProgress.setProperty("value",QtCore.QVariant(0))
        self.findProgress.setOrientation(QtCore.Qt.Horizontal)
        self.findProgress.setObjectName("findProgress")
        self.vboxlayout.addWidget(self.findProgress)

        self.findList = QtGui.QTreeWidget(FindFileDialog)
        self.findList.setAlternatingRowColors(True)
        self.findList.setRootIsDecorated(False)
        self.findList.setItemsExpandable(False)
        self.findList.setSortingEnabled(True)
        self.findList.setObjectName("findList")
        self.findList.headerItem().setText(3,"")
        self.vboxlayout.addWidget(self.findList)

        self.buttonBox = QtGui.QDialogButtonBox(FindFileDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Close)
        self.buttonBox.setObjectName("buttonBox")
        self.vboxlayout.addWidget(self.buttonBox)
        self.TextLabel1.setBuddy(self.findtextCombo)

        self.retranslateUi(FindFileDialog)
        QtCore.QObject.connect(self.dirButton,QtCore.SIGNAL("toggled(bool)"),self.dirEdit.setEnabled)
        QtCore.QObject.connect(self.dirButton,QtCore.SIGNAL("toggled(bool)"),self.dirSelectButton.setEnabled)
        QtCore.QObject.connect(self.buttonBox,QtCore.SIGNAL("rejected()"),FindFileDialog.close)
        QtCore.QMetaObject.connectSlotsByName(FindFileDialog)
        FindFileDialog.setTabOrder(self.findtextCombo,self.caseCheckBox)
        FindFileDialog.setTabOrder(self.caseCheckBox,self.wordCheckBox)
        FindFileDialog.setTabOrder(self.wordCheckBox,self.regexpCheckBox)
        FindFileDialog.setTabOrder(self.regexpCheckBox,self.sourcesCheckBox)
        FindFileDialog.setTabOrder(self.sourcesCheckBox,self.formsCheckBox)
        FindFileDialog.setTabOrder(self.formsCheckBox,self.interfacesCheckBox)
        FindFileDialog.setTabOrder(self.interfacesCheckBox,self.projectButton)
        FindFileDialog.setTabOrder(self.projectButton,self.dirEdit)
        FindFileDialog.setTabOrder(self.dirEdit,self.findList)

    def retranslateUi(self, FindFileDialog):
        FindFileDialog.setWindowTitle(QtGui.QApplication.translate("FindFileDialog", "Find in Files", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox.setTitle(QtGui.QApplication.translate("FindFileDialog", "File type", None, QtGui.QApplication.UnicodeUTF8))
        self.sourcesCheckBox.setToolTip(QtGui.QApplication.translate("FindFileDialog", "Search in source files", None, QtGui.QApplication.UnicodeUTF8))
        self.sourcesCheckBox.setText(QtGui.QApplication.translate("FindFileDialog", "&Sources", None, QtGui.QApplication.UnicodeUTF8))
        self.formsCheckBox.setToolTip(QtGui.QApplication.translate("FindFileDialog", "Search in forms", None, QtGui.QApplication.UnicodeUTF8))
        self.formsCheckBox.setText(QtGui.QApplication.translate("FindFileDialog", "&Forms", None, QtGui.QApplication.UnicodeUTF8))
        self.interfacesCheckBox.setToolTip(QtGui.QApplication.translate("FindFileDialog", "Search in interfaces", None, QtGui.QApplication.UnicodeUTF8))
        self.interfacesCheckBox.setText(QtGui.QApplication.translate("FindFileDialog", "&Interfaces", None, QtGui.QApplication.UnicodeUTF8))
        self.findtextCombo.setToolTip(QtGui.QApplication.translate("FindFileDialog", "Enter the search text or regular expression", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox_2.setTitle(QtGui.QApplication.translate("FindFileDialog", "Find in", None, QtGui.QApplication.UnicodeUTF8))
        self.projectButton.setToolTip(QtGui.QApplication.translate("FindFileDialog", "Search in files of the current project", None, QtGui.QApplication.UnicodeUTF8))
        self.projectButton.setText(QtGui.QApplication.translate("FindFileDialog", "&Project", None, QtGui.QApplication.UnicodeUTF8))
        self.dirButton.setToolTip(QtGui.QApplication.translate("FindFileDialog", "Search in files of a directory tree to be entered below", None, QtGui.QApplication.UnicodeUTF8))
        self.dirButton.setText(QtGui.QApplication.translate("FindFileDialog", "&Directory tree", None, QtGui.QApplication.UnicodeUTF8))
        self.dirEdit.setToolTip(QtGui.QApplication.translate("FindFileDialog", "Enter the directory to search in", None, QtGui.QApplication.UnicodeUTF8))
        self.dirSelectButton.setToolTip(QtGui.QApplication.translate("FindFileDialog", "Select the directory via a directory selection dialog", None, QtGui.QApplication.UnicodeUTF8))
        self.dirSelectButton.setText(QtGui.QApplication.translate("FindFileDialog", "...", None, QtGui.QApplication.UnicodeUTF8))
        self.caseCheckBox.setToolTip(QtGui.QApplication.translate("FindFileDialog", "Select to match case sensitive", None, QtGui.QApplication.UnicodeUTF8))
        self.caseCheckBox.setText(QtGui.QApplication.translate("FindFileDialog", "&Match upper/lower case", None, QtGui.QApplication.UnicodeUTF8))
        self.wordCheckBox.setToolTip(QtGui.QApplication.translate("FindFileDialog", "Select to match whole words only", None, QtGui.QApplication.UnicodeUTF8))
        self.wordCheckBox.setText(QtGui.QApplication.translate("FindFileDialog", "Whole &word", None, QtGui.QApplication.UnicodeUTF8))
        self.regexpCheckBox.setToolTip(QtGui.QApplication.translate("FindFileDialog", "Select if the searchtext is a regular expression", None, QtGui.QApplication.UnicodeUTF8))
        self.regexpCheckBox.setText(QtGui.QApplication.translate("FindFileDialog", "Regular &Expression", None, QtGui.QApplication.UnicodeUTF8))
        self.TextLabel1.setText(QtGui.QApplication.translate("FindFileDialog", "Find &text:", None, QtGui.QApplication.UnicodeUTF8))
        self.findProgress.setToolTip(QtGui.QApplication.translate("FindFileDialog", "Shows the progress of the search action", None, QtGui.QApplication.UnicodeUTF8))
        self.findList.headerItem().setText(0,QtGui.QApplication.translate("FindFileDialog", "File", None, QtGui.QApplication.UnicodeUTF8))
        self.findList.headerItem().setText(1,QtGui.QApplication.translate("FindFileDialog", "Line", None, QtGui.QApplication.UnicodeUTF8))
        self.findList.headerItem().setText(2,QtGui.QApplication.translate("FindFileDialog", "Text", None, QtGui.QApplication.UnicodeUTF8))



if __name__ == "__main__":
    import sys
    app = QtGui.QApplication(sys.argv)
    FindFileDialog = QtGui.QWidget()
    ui = Ui_FindFileDialog()
    ui.setupUi(FindFileDialog)
    FindFileDialog.show()
    sys.exit(app.exec_())
