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

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric4/eric4_2/eric4/UI/FindFileDialog.ui'
#
# Created: Mon Feb  4 18:11:32 2008
#      by: PyQt4 UI code generator 4.3-snapshot-20071225
#
# 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.setSpacing(6)
        self.vboxlayout.setMargin(6)
        self.vboxlayout.setObjectName("vboxlayout")

        self.gridlayout = QtGui.QGridLayout()
        self.gridlayout.setObjectName("gridlayout")

        self.hboxlayout = QtGui.QHBoxLayout()
        self.hboxlayout.setObjectName("hboxlayout")

        self.TextLabel1 = QtGui.QLabel(FindFileDialog)
        self.TextLabel1.setObjectName("TextLabel1")
        self.hboxlayout.addWidget(self.TextLabel1)

        self.findtextCombo = QtGui.QComboBox(FindFileDialog)

        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Fixed)
        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.hboxlayout.addWidget(self.findtextCombo)
        self.gridlayout.addLayout(self.hboxlayout,0,0,1,2)

        self.hboxlayout1 = QtGui.QHBoxLayout()
        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,0,1,2)

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

        self.gridlayout1 = QtGui.QGridLayout(self.groupBox)
        self.gridlayout1.setMargin(6)
        self.gridlayout1.setSpacing(6)
        self.gridlayout1.setObjectName("gridlayout1")

        self.sourcesCheckBox = QtGui.QCheckBox(self.groupBox)
        self.sourcesCheckBox.setChecked(True)
        self.sourcesCheckBox.setObjectName("sourcesCheckBox")
        self.gridlayout1.addWidget(self.sourcesCheckBox,0,0,1,1)

        self.resourcesCheckBox = QtGui.QCheckBox(self.groupBox)
        self.resourcesCheckBox.setObjectName("resourcesCheckBox")
        self.gridlayout1.addWidget(self.resourcesCheckBox,0,1,1,1)

        self.formsCheckBox = QtGui.QCheckBox(self.groupBox)
        self.formsCheckBox.setObjectName("formsCheckBox")
        self.gridlayout1.addWidget(self.formsCheckBox,1,0,1,1)

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

        self.groupBox_2 = QtGui.QGroupBox(FindFileDialog)

        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_2.sizePolicy().hasHeightForWidth())
        self.groupBox_2.setSizePolicy(sizePolicy)
        self.groupBox_2.setObjectName("groupBox_2")

        self.gridlayout2 = QtGui.QGridLayout(self.groupBox_2)
        self.gridlayout2.setMargin(6)
        self.gridlayout2.setSpacing(6)
        self.gridlayout2.setObjectName("gridlayout2")

        self.projectButton = QtGui.QRadioButton(self.groupBox_2)
        self.projectButton.setChecked(True)
        self.projectButton.setObjectName("projectButton")
        self.gridlayout2.addWidget(self.projectButton,0,0,1,1)

        self.dirButton = QtGui.QRadioButton(self.groupBox_2)
        self.dirButton.setFocusPolicy(QtCore.Qt.NoFocus)
        self.dirButton.setObjectName("dirButton")
        self.gridlayout2.addWidget(self.dirButton,0,1,1,2)

        self.dirEdit = QtGui.QLineEdit(self.groupBox_2)
        self.dirEdit.setEnabled(False)
        self.dirEdit.setObjectName("dirEdit")
        self.gridlayout2.addWidget(self.dirEdit,1,0,1,2)

        self.dirSelectButton = QtGui.QPushButton(self.groupBox_2)
        self.dirSelectButton.setEnabled(False)
        self.dirSelectButton.setFocusPolicy(QtCore.Qt.NoFocus)
        self.dirSelectButton.setObjectName("dirSelectButton")
        self.gridlayout2.addWidget(self.dirSelectButton,1,2,1,1)
        self.gridlayout.addWidget(self.groupBox_2,2,1,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)

        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(3)
        sizePolicy.setHeightForWidth(self.findList.sizePolicy().hasHeightForWidth())
        self.findList.setSizePolicy(sizePolicy)
        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.TextLabel1.setText(QtGui.QApplication.translate("FindFileDialog", "Find &text:", None, QtGui.QApplication.UnicodeUTF8))
        self.findtextCombo.setToolTip(QtGui.QApplication.translate("FindFileDialog", "Enter the search text or regular expression", 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.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.resourcesCheckBox.setToolTip(QtGui.QApplication.translate("FindFileDialog", "Search in resources", None, QtGui.QApplication.UnicodeUTF8))
        self.resourcesCheckBox.setText(QtGui.QApplication.translate("FindFileDialog", "&Resources", 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.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.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_())
