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

# Form implementation generated from reading ui file '/home/offedetl/Development/Eric4/eric4_3/eric4/QScintilla/ReplaceDialog.ui'
#
# Created: Mon Oct  6 15:31:24 2008
#      by: PyQt4 UI code generator 4.4.4-snapshot-20080928
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_ReplaceDialog(object):
    def setupUi(self, ReplaceDialog):
        ReplaceDialog.setObjectName("ReplaceDialog")
        ReplaceDialog.resize(572, 201)
        ReplaceDialog.setSizeGripEnabled(True)
        self._2 = QtGui.QGridLayout(ReplaceDialog)
        self._2.setObjectName("_2")
        self.optionsBox = QtGui.QGroupBox(ReplaceDialog)
        self.optionsBox.setObjectName("optionsBox")
        self._4 = QtGui.QGridLayout(self.optionsBox)
        self._4.setObjectName("_4")
        self.wordCheckBox = QtGui.QCheckBox(self.optionsBox)
        self.wordCheckBox.setObjectName("wordCheckBox")
        self._4.addWidget(self.wordCheckBox, 0, 1, 1, 1)
        self._5 = QtGui.QHBoxLayout()
        self._5.setObjectName("_5")
        self.limitCheckBox = QtGui.QCheckBox(self.optionsBox)
        self.limitCheckBox.setObjectName("limitCheckBox")
        self._5.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._6 = QtGui.QHBoxLayout(self.linesFrame)
        self._6.setObjectName("_6")
        self.textLabel1 = QtGui.QLabel(self.linesFrame)
        self.textLabel1.setObjectName("textLabel1")
        self._6.addWidget(self.textLabel1)
        self.startLineSpinBox = QtGui.QSpinBox(self.linesFrame)
        self.startLineSpinBox.setAlignment(QtCore.Qt.AlignRight)
        self.startLineSpinBox.setMinimum(1)
        self.startLineSpinBox.setMaximum(99999)
        self.startLineSpinBox.setObjectName("startLineSpinBox")
        self._6.addWidget(self.startLineSpinBox)
        self.textLabel2 = QtGui.QLabel(self.linesFrame)
        self.textLabel2.setObjectName("textLabel2")
        self._6.addWidget(self.textLabel2)
        self.endLineSpinBox = QtGui.QSpinBox(self.linesFrame)
        self.endLineSpinBox.setAlignment(QtCore.Qt.AlignRight)
        self.endLineSpinBox.setMinimum(1)
        self.endLineSpinBox.setMaximum(99999)
        self.endLineSpinBox.setProperty("value", QtCore.QVariant(99999))
        self.endLineSpinBox.setObjectName("endLineSpinBox")
        self._6.addWidget(self.endLineSpinBox)
        self._5.addWidget(self.linesFrame)
        spacerItem = QtGui.QSpacerItem(41, 22, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self._5.addItem(spacerItem)
        self._4.addLayout(self._5, 2, 0, 1, 2)
        self.wrapCheckBox = QtGui.QCheckBox(self.optionsBox)
        self.wrapCheckBox.setObjectName("wrapCheckBox")
        self._4.addWidget(self.wrapCheckBox, 1, 1, 1, 1)
        self.regexpCheckBox = QtGui.QCheckBox(self.optionsBox)
        self.regexpCheckBox.setObjectName("regexpCheckBox")
        self._4.addWidget(self.regexpCheckBox, 1, 0, 1, 1)
        self.caseCheckBox = QtGui.QCheckBox(self.optionsBox)
        self.caseCheckBox.setObjectName("caseCheckBox")
        self._4.addWidget(self.caseCheckBox, 0, 0, 1, 1)
        self._2.addWidget(self.optionsBox, 2, 1, 1, 1)
        self._3 = QtGui.QVBoxLayout()
        self._3.setObjectName("_3")
        self.findNextButton = QtGui.QPushButton(ReplaceDialog)
        self.findNextButton.setEnabled(False)
        self.findNextButton.setAutoDefault(False)
        self.findNextButton.setObjectName("findNextButton")
        self._3.addWidget(self.findNextButton)
        self.findPrevButton = QtGui.QPushButton(ReplaceDialog)
        self.findPrevButton.setEnabled(False)
        self.findPrevButton.setAutoDefault(False)
        self.findPrevButton.setObjectName("findPrevButton")
        self._3.addWidget(self.findPrevButton)
        self.replaceButton = QtGui.QPushButton(ReplaceDialog)
        self.replaceButton.setEnabled(False)
        self.replaceButton.setAutoDefault(False)
        self.replaceButton.setObjectName("replaceButton")
        self._3.addWidget(self.replaceButton)
        self.replaceAllButton = QtGui.QPushButton(ReplaceDialog)
        self.replaceAllButton.setEnabled(False)
        self.replaceAllButton.setAutoDefault(False)
        self.replaceAllButton.setObjectName("replaceAllButton")
        self._3.addWidget(self.replaceAllButton)
        self.cancelButton = QtGui.QPushButton(ReplaceDialog)
        self.cancelButton.setAutoDefault(False)
        self.cancelButton.setObjectName("cancelButton")
        self._3.addWidget(self.cancelButton)
        spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self._3.addItem(spacerItem1)
        self._2.addLayout(self._3, 0, 2, 3, 1)
        self.replaceTextLabel = QtGui.QLabel(ReplaceDialog)
        self.replaceTextLabel.setObjectName("replaceTextLabel")
        self._2.addWidget(self.replaceTextLabel, 1, 0, 1, 1)
        self.TextLabel1 = QtGui.QLabel(ReplaceDialog)
        self.TextLabel1.setObjectName("TextLabel1")
        self._2.addWidget(self.TextLabel1, 0, 0, 1, 1)
        self.replacetextCombo = QtGui.QComboBox(ReplaceDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.replacetextCombo.sizePolicy().hasHeightForWidth())
        self.replacetextCombo.setSizePolicy(sizePolicy)
        self.replacetextCombo.setEditable(True)
        self.replacetextCombo.setInsertPolicy(QtGui.QComboBox.InsertAtTop)
        self.replacetextCombo.setAutoCompletion(False)
        self.replacetextCombo.setDuplicatesEnabled(False)
        self.replacetextCombo.setObjectName("replacetextCombo")
        self._2.addWidget(self.replacetextCombo, 1, 1, 1, 1)
        self.findtextCombo = QtGui.QComboBox(ReplaceDialog)
        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._2.addWidget(self.findtextCombo, 0, 1, 1, 1)
        self.replaceTextLabel.setBuddy(self.replacetextCombo)
        self.TextLabel1.setBuddy(self.findtextCombo)

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

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


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

