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

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric4/eric4_0/eric4/QScintilla/SearchDialog.ui'
#
# Created: Sat Mar 24 11:18:18 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_SearchDialog(object):
    def setupUi(self, SearchDialog):
        SearchDialog.setObjectName("SearchDialog")
        SearchDialog.resize(QtCore.QSize(QtCore.QRect(0,0,572,150).size()).expandedTo(SearchDialog.minimumSizeHint()))
        SearchDialog.setSizeGripEnabled(True)

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

        self.optionsBox = QtGui.QGroupBox(SearchDialog)
        self.optionsBox.setObjectName("optionsBox")

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

        self.wordCheckBox = QtGui.QCheckBox(self.optionsBox)
        self.wordCheckBox.setObjectName("wordCheckBox")
        self.gridlayout1.addWidget(self.wordCheckBox,0,1,1,1)

        self.regexpCheckBox = QtGui.QCheckBox(self.optionsBox)
        self.regexpCheckBox.setObjectName("regexpCheckBox")
        self.gridlayout1.addWidget(self.regexpCheckBox,1,0,1,1)

        self.wrapCheckBox = QtGui.QCheckBox(self.optionsBox)
        self.wrapCheckBox.setObjectName("wrapCheckBox")
        self.gridlayout1.addWidget(self.wrapCheckBox,1,1,1,1)

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

        self.limitCheckBox = QtGui.QCheckBox(self.optionsBox)
        self.limitCheckBox.setObjectName("limitCheckBox")
        self.hboxlayout.addWidget(self.limitCheckBox)

        self.linesFrame = QtGui.QFrame(self.optionsBox)
        self.linesFrame.setEnabled(False)
        self.linesFrame.setFrameShape(QtGui.QFrame.NoFrame)
        self.linesFrame.setFrameShadow(QtGui.QFrame.Raised)
        self.linesFrame.setObjectName("linesFrame")

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

        self.textLabel1 = QtGui.QLabel(self.linesFrame)
        self.textLabel1.setObjectName("textLabel1")
        self.hboxlayout1.addWidget(self.textLabel1)

        self.startLineSpinBox = QtGui.QSpinBox(self.linesFrame)
        self.startLineSpinBox.setAlignment(QtCore.Qt.AlignRight)
        self.startLineSpinBox.setMaximum(99999)
        self.startLineSpinBox.setMinimum(1)
        self.startLineSpinBox.setObjectName("startLineSpinBox")
        self.hboxlayout1.addWidget(self.startLineSpinBox)

        self.textLabel2 = QtGui.QLabel(self.linesFrame)
        self.textLabel2.setObjectName("textLabel2")
        self.hboxlayout1.addWidget(self.textLabel2)

        self.endLineSpinBox = QtGui.QSpinBox(self.linesFrame)
        self.endLineSpinBox.setAlignment(QtCore.Qt.AlignRight)
        self.endLineSpinBox.setMaximum(99999)
        self.endLineSpinBox.setMinimum(1)
        self.endLineSpinBox.setProperty("value",QtCore.QVariant(99999))
        self.endLineSpinBox.setObjectName("endLineSpinBox")
        self.hboxlayout1.addWidget(self.endLineSpinBox)
        self.hboxlayout.addWidget(self.linesFrame)

        spacerItem = QtGui.QSpacerItem(71,23,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum)
        self.hboxlayout.addItem(spacerItem)
        self.gridlayout1.addLayout(self.hboxlayout,2,0,1,2)

        self.caseCheckBox = QtGui.QCheckBox(self.optionsBox)
        self.caseCheckBox.setObjectName("caseCheckBox")
        self.gridlayout1.addWidget(self.caseCheckBox,0,0,1,1)
        self.gridlayout.addWidget(self.optionsBox,1,1,1,1)

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

        self.findNextButton = QtGui.QPushButton(SearchDialog)
        self.findNextButton.setEnabled(False)
        self.findNextButton.setAutoDefault(False)
        self.findNextButton.setObjectName("findNextButton")
        self.vboxlayout.addWidget(self.findNextButton)

        self.findPrevButton = QtGui.QPushButton(SearchDialog)
        self.findPrevButton.setEnabled(False)
        self.findPrevButton.setAutoDefault(False)
        self.findPrevButton.setObjectName("findPrevButton")
        self.vboxlayout.addWidget(self.findPrevButton)

        self.cancelButton = QtGui.QPushButton(SearchDialog)
        self.cancelButton.setAutoDefault(False)
        self.cancelButton.setObjectName("cancelButton")
        self.vboxlayout.addWidget(self.cancelButton)

        spacerItem1 = QtGui.QSpacerItem(75,21,QtGui.QSizePolicy.Minimum,QtGui.QSizePolicy.Expanding)
        self.vboxlayout.addItem(spacerItem1)
        self.gridlayout.addLayout(self.vboxlayout,0,2,2,1)

        self.TextLabel1 = QtGui.QLabel(SearchDialog)
        self.TextLabel1.setObjectName("TextLabel1")
        self.gridlayout.addWidget(self.TextLabel1,0,0,1,1)

        self.findtextCombo = QtGui.QComboBox(SearchDialog)

        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,1)
        self.TextLabel1.setBuddy(self.findtextCombo)

        self.retranslateUi(SearchDialog)
        QtCore.QObject.connect(self.cancelButton,QtCore.SIGNAL("clicked()"),SearchDialog.close)
        QtCore.QObject.connect(self.limitCheckBox,QtCore.SIGNAL("toggled(bool)"),self.linesFrame.setEnabled)
        QtCore.QMetaObject.connectSlotsByName(SearchDialog)
        SearchDialog.setTabOrder(self.findtextCombo,self.caseCheckBox)
        SearchDialog.setTabOrder(self.caseCheckBox,self.wordCheckBox)
        SearchDialog.setTabOrder(self.wordCheckBox,self.regexpCheckBox)
        SearchDialog.setTabOrder(self.regexpCheckBox,self.wrapCheckBox)
        SearchDialog.setTabOrder(self.wrapCheckBox,self.limitCheckBox)
        SearchDialog.setTabOrder(self.limitCheckBox,self.startLineSpinBox)
        SearchDialog.setTabOrder(self.startLineSpinBox,self.endLineSpinBox)
        SearchDialog.setTabOrder(self.endLineSpinBox,self.findNextButton)
        SearchDialog.setTabOrder(self.findNextButton,self.findPrevButton)
        SearchDialog.setTabOrder(self.findPrevButton,self.cancelButton)

    def retranslateUi(self, SearchDialog):
        SearchDialog.setWindowTitle(QtGui.QApplication.translate("SearchDialog", "Find", None, QtGui.QApplication.UnicodeUTF8))
        self.optionsBox.setTitle(QtGui.QApplication.translate("SearchDialog", "Options", None, QtGui.QApplication.UnicodeUTF8))
        self.wordCheckBox.setText(QtGui.QApplication.translate("SearchDialog", "Whole &word", None, QtGui.QApplication.UnicodeUTF8))
        self.wordCheckBox.setShortcut(QtGui.QApplication.translate("SearchDialog", "Alt+W", None, QtGui.QApplication.UnicodeUTF8))
        self.regexpCheckBox.setText(QtGui.QApplication.translate("SearchDialog", "Regular &Expression", None, QtGui.QApplication.UnicodeUTF8))
        self.regexpCheckBox.setShortcut(QtGui.QApplication.translate("SearchDialog", "Alt+E", None, QtGui.QApplication.UnicodeUTF8))
        self.wrapCheckBox.setText(QtGui.QApplication.translate("SearchDialog", "Wrap aroun&d", None, QtGui.QApplication.UnicodeUTF8))
        self.limitCheckBox.setToolTip(QtGui.QApplication.translate("SearchDialog", "Select, if the search should be limited to the specified lines", None, QtGui.QApplication.UnicodeUTF8))
        self.limitCheckBox.setText(QtGui.QApplication.translate("SearchDialog", "&Limit search", None, QtGui.QApplication.UnicodeUTF8))
        self.limitCheckBox.setShortcut(QtGui.QApplication.translate("SearchDialog", "Alt+L", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel1.setText(QtGui.QApplication.translate("SearchDialog", "Start line", None, QtGui.QApplication.UnicodeUTF8))
        self.startLineSpinBox.setToolTip(QtGui.QApplication.translate("SearchDialog", "Enter the line number to start the search", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel2.setText(QtGui.QApplication.translate("SearchDialog", "End line", None, QtGui.QApplication.UnicodeUTF8))
        self.endLineSpinBox.setToolTip(QtGui.QApplication.translate("SearchDialog", "Enter the line number to end the search", None, QtGui.QApplication.UnicodeUTF8))
        self.caseCheckBox.setText(QtGui.QApplication.translate("SearchDialog", "&Match upper/lower case", None, QtGui.QApplication.UnicodeUTF8))
        self.caseCheckBox.setShortcut(QtGui.QApplication.translate("SearchDialog", "Alt+M", None, QtGui.QApplication.UnicodeUTF8))
        self.findNextButton.setText(QtGui.QApplication.translate("SearchDialog", "Find &Next", None, QtGui.QApplication.UnicodeUTF8))
        self.findPrevButton.setText(QtGui.QApplication.translate("SearchDialog", "Find &Prev", None, QtGui.QApplication.UnicodeUTF8))
        self.cancelButton.setText(QtGui.QApplication.translate("SearchDialog", "&Close", None, QtGui.QApplication.UnicodeUTF8))
        self.cancelButton.setShortcut(QtGui.QApplication.translate("SearchDialog", "Alt+C", None, QtGui.QApplication.UnicodeUTF8))
        self.TextLabel1.setText(QtGui.QApplication.translate("SearchDialog", "Find &text:", None, QtGui.QApplication.UnicodeUTF8))



if __name__ == "__main__":
    import sys
    app = QtGui.QApplication(sys.argv)
    SearchDialog = QtGui.QDialog()
    ui = Ui_SearchDialog()
    ui.setupUi(SearchDialog)
    SearchDialog.show()
    sys.exit(app.exec_())
