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

# Form implementation generated from reading ui file 'ui/search.ui'
#
# Created: Sat Aug 21 13:37:57 2010
#      by: PyQt4 UI code generator 4.7.3
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_search(object):
    def setupUi(self, search):
        search.setObjectName("search")
        search.resize(600, 400)
        self.vboxlayout = QtGui.QVBoxLayout(search)
        self.vboxlayout.setObjectName("vboxlayout")
        self.gridlayout = QtGui.QGridLayout()
        self.gridlayout.setObjectName("gridlayout")
        self.radio_range = QtGui.QRadioButton(search)
        self.radio_range.setObjectName("radio_range")
        self.gridlayout.addWidget(self.radio_range, 0, 0, 1, 2)
        self.radio_path = QtGui.QRadioButton(search)
        self.radio_path.setObjectName("radio_path")
        self.gridlayout.addWidget(self.radio_path, 0, 2, 1, 1)
        self.radio_author = QtGui.QRadioButton(search)
        self.radio_author.setObjectName("radio_author")
        self.gridlayout.addWidget(self.radio_author, 0, 3, 1, 1)
        self.radio_committer = QtGui.QRadioButton(search)
        self.radio_committer.setObjectName("radio_committer")
        self.gridlayout.addWidget(self.radio_committer, 0, 4, 1, 1)
        self.radio_revision = QtGui.QRadioButton(search)
        self.radio_revision.setObjectName("radio_revision")
        self.gridlayout.addWidget(self.radio_revision, 1, 0, 1, 2)
        self.radio_message = QtGui.QRadioButton(search)
        self.radio_message.setObjectName("radio_message")
        self.gridlayout.addWidget(self.radio_message, 1, 2, 1, 1)
        self.radio_daterange = QtGui.QRadioButton(search)
        self.radio_daterange.setObjectName("radio_daterange")
        self.gridlayout.addWidget(self.radio_daterange, 1, 3, 1, 2)
        self.maxresults_label = QtGui.QLabel(search)
        self.maxresults_label.setObjectName("maxresults_label")
        self.gridlayout.addWidget(self.maxresults_label, 2, 0, 1, 1)
        self.max_results = QtGui.QSpinBox(search)
        self.max_results.setMinimum(5)
        self.max_results.setMaximum(9995)
        self.max_results.setSingleStep(5)
        self.max_results.setProperty("value", 500)
        self.max_results.setObjectName("max_results")
        self.gridlayout.addWidget(self.max_results, 2, 1, 1, 1)
        self.radio_diff = QtGui.QRadioButton(search)
        self.radio_diff.setObjectName("radio_diff")
        self.gridlayout.addWidget(self.radio_diff, 2, 2, 1, 1)
        self.start_date = QtGui.QDateEdit(search)
        self.start_date.setCurrentSection(QtGui.QDateTimeEdit.YearSection)
        self.start_date.setCalendarPopup(True)
        self.start_date.setObjectName("start_date")
        self.gridlayout.addWidget(self.start_date, 2, 3, 1, 1)
        self.end_date = QtGui.QDateEdit(search)
        self.end_date.setCurrentSection(QtGui.QDateTimeEdit.YearSection)
        self.end_date.setCalendarPopup(True)
        self.end_date.setObjectName("end_date")
        self.gridlayout.addWidget(self.end_date, 2, 4, 1, 1)
        self.button_search = QtGui.QPushButton(search)
        self.button_search.setObjectName("button_search")
        self.gridlayout.addWidget(self.button_search, 3, 0, 1, 1)
        self.input = QtGui.QLineEdit(search)
        self.input.setObjectName("input")
        self.gridlayout.addWidget(self.input, 3, 1, 1, 3)
        self.button_browse = QtGui.QPushButton(search)
        self.button_browse.setObjectName("button_browse")
        self.gridlayout.addWidget(self.button_browse, 3, 4, 1, 1)
        self.vboxlayout.addLayout(self.gridlayout)
        self.splitter = QtGui.QSplitter(search)
        self.splitter.setOrientation(QtCore.Qt.Vertical)
        self.splitter.setHandleWidth(2)
        self.splitter.setObjectName("splitter")
        self.commit_list = QtGui.QListWidget(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.commit_list.sizePolicy().hasHeightForWidth())
        self.commit_list.setSizePolicy(sizePolicy)
        self.commit_list.setMinimumSize(QtCore.QSize(50, 50))
        self.commit_list.setAlternatingRowColors(True)
        self.commit_list.setSelectionMode(QtGui.QAbstractItemView.SingleSelection)
        self.commit_list.setObjectName("commit_list")
        self.commit_text = QtGui.QTextEdit(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.commit_text.sizePolicy().hasHeightForWidth())
        self.commit_text.setSizePolicy(sizePolicy)
        self.commit_text.setMinimumSize(QtCore.QSize(50, 150))
        self.commit_text.setTabChangesFocus(True)
        self.commit_text.setReadOnly(True)
        self.commit_text.setAcceptRichText(False)
        self.commit_text.setObjectName("commit_text")
        self.vboxlayout.addWidget(self.splitter)
        self.gridlayout1 = QtGui.QGridLayout()
        self.gridlayout1.setObjectName("gridlayout1")
        self.button_export = QtGui.QPushButton(search)
        self.button_export.setObjectName("button_export")
        self.gridlayout1.addWidget(self.button_export, 0, 0, 1, 1)
        self.button_cherrypick = QtGui.QPushButton(search)
        self.button_cherrypick.setObjectName("button_cherrypick")
        self.gridlayout1.addWidget(self.button_cherrypick, 0, 1, 1, 1)
        spacerItem = QtGui.QSpacerItem(111, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridlayout1.addItem(spacerItem, 0, 2, 1, 1)
        self.button_close = QtGui.QPushButton(search)
        self.button_close.setObjectName("button_close")
        self.gridlayout1.addWidget(self.button_close, 0, 3, 1, 1)
        self.vboxlayout.addLayout(self.gridlayout1)

        self.retranslateUi(search)
        QtCore.QObject.connect(self.button_close, QtCore.SIGNAL("clicked()"), search.accept)
        QtCore.QMetaObject.connectSlotsByName(search)

    def retranslateUi(self, search):
        search.setWindowTitle(QtGui.QApplication.translate("search", "Search", None, QtGui.QApplication.UnicodeUTF8))
        self.radio_range.setText(QtGui.QApplication.translate("search", "Revision Range Expression", None, QtGui.QApplication.UnicodeUTF8))
        self.radio_path.setText(QtGui.QApplication.translate("search", "Commits Touching Paths", None, QtGui.QApplication.UnicodeUTF8))
        self.radio_author.setText(QtGui.QApplication.translate("search", "Author", None, QtGui.QApplication.UnicodeUTF8))
        self.radio_committer.setText(QtGui.QApplication.translate("search", "Committer", None, QtGui.QApplication.UnicodeUTF8))
        self.radio_revision.setText(QtGui.QApplication.translate("search", "Revision ID", None, QtGui.QApplication.UnicodeUTF8))
        self.radio_message.setText(QtGui.QApplication.translate("search", "Commit Messages", None, QtGui.QApplication.UnicodeUTF8))
        self.radio_daterange.setText(QtGui.QApplication.translate("search", "Date Range (Start / End)", None, QtGui.QApplication.UnicodeUTF8))
        self.maxresults_label.setText(QtGui.QApplication.translate("search", "Max Results", None, QtGui.QApplication.UnicodeUTF8))
        self.radio_diff.setText(QtGui.QApplication.translate("search", "Diff Content", None, QtGui.QApplication.UnicodeUTF8))
        self.start_date.setDisplayFormat(QtGui.QApplication.translate("search", "yyyy-MM-dd", None, QtGui.QApplication.UnicodeUTF8))
        self.end_date.setDisplayFormat(QtGui.QApplication.translate("search", "yyyy-MM-dd", None, QtGui.QApplication.UnicodeUTF8))
        self.button_search.setText(QtGui.QApplication.translate("search", "Search", None, QtGui.QApplication.UnicodeUTF8))
        self.button_search.setShortcut(QtGui.QApplication.translate("search", "Return", None, QtGui.QApplication.UnicodeUTF8))
        self.button_browse.setText(QtGui.QApplication.translate("search", "Browse", None, QtGui.QApplication.UnicodeUTF8))
        self.button_export.setText(QtGui.QApplication.translate("search", "Export Patches", None, QtGui.QApplication.UnicodeUTF8))
        self.button_cherrypick.setText(QtGui.QApplication.translate("search", "Cherry Pick", None, QtGui.QApplication.UnicodeUTF8))
        self.button_close.setText(QtGui.QApplication.translate("search", "Close", None, QtGui.QApplication.UnicodeUTF8))


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

