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

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

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

        self.optionsBox = QtGui.QGroupBox(ReplaceDialog)
        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.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(41,22,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum)
        self.hboxlayout.addItem(spacerItem)
        self.gridlayout1.addLayout(self.hboxlayout,2,0,1,2)

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

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

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

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

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

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

        self.replaceButton = QtGui.QPushButton(ReplaceDialog)
        self.replaceButton.setEnabled(False)
        self.replaceButton.setAutoDefault(False)
        self.replaceButton.setObjectName("replaceButton")
        self.vboxlayout.addWidget(self.replaceButton)

        self.replaceAllButton = QtGui.QPushButton(ReplaceDialog)
        self.replaceAllButton.setEnabled(False)
        self.replaceAllButton.setAutoDefault(False)
        self.replaceAllButton.setObjectName("replaceAllButton")
        self.vboxlayout.addWidget(self.replaceAllButton)

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

        spacerItem1 = QtGui.QSpacerItem(20,40,QtGui.QSizePolicy.Minimum,QtGui.QSizePolicy.Expanding)
        self.vboxlayout.addItem(spacerItem1)
        self.gridlayout.addLayout(self.vboxlayout,0,2,3,1)

        self.replaceTextLabel = QtGui.QLabel(ReplaceDialog)
        self.replaceTextLabel.setObjectName("replaceTextLabel")
        self.gridlayout.addWidget(self.replaceTextLabel,1,0,1,1)

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

        self.replacetextCombo = QtGui.QComboBox(ReplaceDialog)

        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Policy(7),QtGui.QSizePolicy.Policy(0))
        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.gridlayout.addWidget(self.replacetextCombo,1,1,1,1)

        self.findtextCombo = QtGui.QComboBox(ReplaceDialog)

        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.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_())
