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

# Form implementation generated from reading ui file './tortoisehg/hgqt/phabreview.ui'
#
# Created by: PyQt4 UI code generator 4.12
#
# WARNING! All changes made in this file will be lost!

from tortoisehg.util.i18n import _
from PyQt4 import QtCore, QtGui

try:
    _fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
    def _fromUtf8(s):
        return s

try:
    _encoding = QtGui.QApplication.UnicodeUTF8
    def _translate(context, text, disambig):
        return QtGui.QApplication.translate(context, text, disambig, _encoding)
except AttributeError:
    def _translate(context, text, disambig):
        return QtGui.QApplication.translate(context, text, disambig)

class Ui_PhabReviewDialog(object):
    def setupUi(self, PhabReviewDialog):
        PhabReviewDialog.setObjectName(_fromUtf8("PhabReviewDialog"))
        PhabReviewDialog.resize(818, 604)
        PhabReviewDialog.setSizeGripEnabled(True)
        self.verticalLayout_5 = QtGui.QVBoxLayout(PhabReviewDialog)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.main_tabs = QtGui.QTabWidget(PhabReviewDialog)
        self.main_tabs.setDocumentMode(False)
        self.main_tabs.setTabsClosable(False)
        self.main_tabs.setMovable(False)
        self.main_tabs.setObjectName(_fromUtf8("main_tabs"))
        self.edit_tab = QtGui.QWidget()
        self.edit_tab.setObjectName(_fromUtf8("edit_tab"))
        self.gridLayout = QtGui.QGridLayout(self.edit_tab)
        self.gridLayout.setMargin(0)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.reviewers_box = QtGui.QGroupBox(self.edit_tab)
        self.reviewers_box.setObjectName(_fromUtf8("reviewers_box"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.reviewers_box)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.available_reviewers_group = QtGui.QGroupBox(self.reviewers_box)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.available_reviewers_group.sizePolicy().hasHeightForWidth())
        self.available_reviewers_group.setSizePolicy(sizePolicy)
        self.available_reviewers_group.setToolTip(_fromUtf8(""))
        self.available_reviewers_group.setObjectName(_fromUtf8("available_reviewers_group"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.available_reviewers_group)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.gridLayout_5 = QtGui.QGridLayout()
        self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout_5.addItem(spacerItem, 2, 2, 1, 1)
        self.rescan_button = QtGui.QPushButton(self.available_reviewers_group)
        self.rescan_button.setObjectName(_fromUtf8("rescan_button"))
        self.gridLayout_5.addWidget(self.rescan_button, 2, 1, 1, 1)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout_5.addItem(spacerItem1, 2, 0, 1, 1)
        self.reviewer_filter = QtGui.QLineEdit(self.available_reviewers_group)
        self.reviewer_filter.setObjectName(_fromUtf8("reviewer_filter"))
        self.gridLayout_5.addWidget(self.reviewer_filter, 0, 0, 1, 3)
        self.available_reviewer_list = QtGui.QListView(self.available_reviewers_group)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.available_reviewer_list.sizePolicy().hasHeightForWidth())
        self.available_reviewer_list.setSizePolicy(sizePolicy)
        self.available_reviewer_list.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
        self.available_reviewer_list.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
        self.available_reviewer_list.setObjectName(_fromUtf8("available_reviewer_list"))
        self.gridLayout_5.addWidget(self.available_reviewer_list, 1, 0, 1, 3)
        self.verticalLayout_2.addLayout(self.gridLayout_5)
        self.horizontalLayout.addWidget(self.available_reviewers_group)
        self.widget = QtGui.QWidget(self.reviewers_box)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.widget.sizePolicy().hasHeightForWidth())
        self.widget.setSizePolicy(sizePolicy)
        self.widget.setObjectName(_fromUtf8("widget"))
        self.verticalLayout = QtGui.QVBoxLayout(self.widget)
        self.verticalLayout.setMargin(0)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem2)
        self.addreviewer_button = QtGui.QPushButton(self.widget)
        self.addreviewer_button.setEnabled(False)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.addreviewer_button.sizePolicy().hasHeightForWidth())
        self.addreviewer_button.setSizePolicy(sizePolicy)
        self.addreviewer_button.setMinimumSize(QtCore.QSize(0, 0))
        self.addreviewer_button.setIconSize(QtCore.QSize(0, 0))
        self.addreviewer_button.setObjectName(_fromUtf8("addreviewer_button"))
        self.verticalLayout.addWidget(self.addreviewer_button)
        self.removereviewer_button = QtGui.QPushButton(self.widget)
        self.removereviewer_button.setEnabled(False)
        self.removereviewer_button.setObjectName(_fromUtf8("removereviewer_button"))
        self.verticalLayout.addWidget(self.removereviewer_button)
        spacerItem3 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem3)
        self.horizontalLayout.addWidget(self.widget)
        self.selected_reviewers_group = QtGui.QGroupBox(self.reviewers_box)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.selected_reviewers_group.sizePolicy().hasHeightForWidth())
        self.selected_reviewers_group.setSizePolicy(sizePolicy)
        self.selected_reviewers_group.setToolTip(_fromUtf8(""))
        self.selected_reviewers_group.setObjectName(_fromUtf8("selected_reviewers_group"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.selected_reviewers_group)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.selected_reviewers_list = QtGui.QListWidget(self.selected_reviewers_group)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.selected_reviewers_list.sizePolicy().hasHeightForWidth())
        self.selected_reviewers_list.setSizePolicy(sizePolicy)
        self.selected_reviewers_list.setObjectName(_fromUtf8("selected_reviewers_list"))
        self.horizontalLayout_2.addWidget(self.selected_reviewers_list)
        self.horizontalLayout.addWidget(self.selected_reviewers_group)
        self.gridLayout.addWidget(self.reviewers_box, 0, 0, 1, 1)
        self.changesets_box = QtGui.QGroupBox(self.edit_tab)
        self.changesets_box.setObjectName(_fromUtf8("changesets_box"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.changesets_box)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.changesets_view = QtGui.QTreeView(self.changesets_box)
        self.changesets_view.setIndentation(0)
        self.changesets_view.setRootIsDecorated(False)
        self.changesets_view.setItemsExpandable(False)
        self.changesets_view.setObjectName(_fromUtf8("changesets_view"))
        self.verticalLayout_3.addWidget(self.changesets_view)
        self.selectallnone_layout = QtGui.QHBoxLayout()
        self.selectallnone_layout.setObjectName(_fromUtf8("selectallnone_layout"))
        self.selectall_button = QtGui.QPushButton(self.changesets_box)
        self.selectall_button.setObjectName(_fromUtf8("selectall_button"))
        self.selectallnone_layout.addWidget(self.selectall_button)
        self.selectnone_button = QtGui.QPushButton(self.changesets_box)
        self.selectnone_button.setObjectName(_fromUtf8("selectnone_button"))
        self.selectallnone_layout.addWidget(self.selectnone_button)
        spacerItem4 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.selectallnone_layout.addItem(spacerItem4)
        self.verticalLayout_3.addLayout(self.selectallnone_layout)
        self.gridLayout.addWidget(self.changesets_box, 1, 0, 1, 1)
        self.main_tabs.addTab(self.edit_tab, _fromUtf8(""))
        self.preview_tab = QtGui.QWidget()
        self.preview_tab.setObjectName(_fromUtf8("preview_tab"))
        self.gridLayout_2 = QtGui.QGridLayout(self.preview_tab)
        self.gridLayout_2.setMargin(0)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.preview_edit = Qsci.QsciScintilla(self.preview_tab)
        self.preview_edit.setObjectName(_fromUtf8("preview_edit"))
        self.gridLayout_2.addWidget(self.preview_edit, 0, 0, 1, 1)
        self.main_tabs.addTab(self.preview_tab, _fromUtf8(""))
        self.verticalLayout_5.addWidget(self.main_tabs)
        self.dialogbuttons_layout = QtGui.QHBoxLayout()
        self.dialogbuttons_layout.setObjectName(_fromUtf8("dialogbuttons_layout"))
        self.settings_button = QtGui.QPushButton(PhabReviewDialog)
        self.settings_button.setEnabled(False)
        self.settings_button.setToolTip(_fromUtf8(""))
        self.settings_button.setDefault(False)
        self.settings_button.setObjectName(_fromUtf8("settings_button"))
        self.dialogbuttons_layout.addWidget(self.settings_button)
        spacerItem5 = QtGui.QSpacerItem(25, 19, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.dialogbuttons_layout.addItem(spacerItem5)
        self.send_button = QtGui.QPushButton(PhabReviewDialog)
        self.send_button.setEnabled(False)
        self.send_button.setDefault(False)
        self.send_button.setObjectName(_fromUtf8("send_button"))
        self.dialogbuttons_layout.addWidget(self.send_button)
        self.close_button = QtGui.QPushButton(PhabReviewDialog)
        self.close_button.setEnabled(True)
        self.close_button.setDefault(True)
        self.close_button.setObjectName(_fromUtf8("close_button"))
        self.dialogbuttons_layout.addWidget(self.close_button)
        self.verticalLayout_5.addLayout(self.dialogbuttons_layout)

        self.retranslateUi(PhabReviewDialog)
        self.main_tabs.setCurrentIndex(0)
        QtCore.QObject.connect(self.send_button, QtCore.SIGNAL(_fromUtf8("clicked()")), PhabReviewDialog.accept)
        QtCore.QObject.connect(self.close_button, QtCore.SIGNAL(_fromUtf8("clicked()")), PhabReviewDialog.close)
        QtCore.QMetaObject.connectSlotsByName(PhabReviewDialog)
        PhabReviewDialog.setTabOrder(self.main_tabs, self.rescan_button)
        PhabReviewDialog.setTabOrder(self.rescan_button, self.reviewer_filter)
        PhabReviewDialog.setTabOrder(self.reviewer_filter, self.available_reviewer_list)
        PhabReviewDialog.setTabOrder(self.available_reviewer_list, self.addreviewer_button)
        PhabReviewDialog.setTabOrder(self.addreviewer_button, self.selected_reviewers_list)
        PhabReviewDialog.setTabOrder(self.selected_reviewers_list, self.removereviewer_button)
        PhabReviewDialog.setTabOrder(self.removereviewer_button, self.changesets_view)
        PhabReviewDialog.setTabOrder(self.changesets_view, self.selectall_button)
        PhabReviewDialog.setTabOrder(self.selectall_button, self.selectnone_button)
        PhabReviewDialog.setTabOrder(self.selectnone_button, self.settings_button)
        PhabReviewDialog.setTabOrder(self.settings_button, self.close_button)
        PhabReviewDialog.setTabOrder(self.close_button, self.send_button)

    def retranslateUi(self, PhabReviewDialog):
        PhabReviewDialog.setWindowTitle(_('Phabricator'))
        self.reviewers_box.setTitle(_('Reviewers'))
        self.available_reviewers_group.setTitle(_('Available'))
        self.rescan_button.setToolTip(_('Fetch the reviewer list from the server'))
        self.rescan_button.setText(_('Rescan'))
        self.reviewer_filter.setToolTip(_('Filter the available reviewers'))
        self.reviewer_filter.setPlaceholderText(_('Reviewer Filter'))
        self.available_reviewer_list.setToolTip(_('Reviewers available on the server'))
        self.addreviewer_button.setToolTip(_('Chose the selected available reviewers'))
        self.addreviewer_button.setText(_('>'))
        self.removereviewer_button.setToolTip(_('Remove the selected reviewers'))
        self.removereviewer_button.setText(_('<'))
        self.selected_reviewers_group.setTitle(_('Selected'))
        self.selected_reviewers_list.setToolTip(_('These users will be notified of the review'))
        self.selected_reviewers_list.setSortingEnabled(True)
        self.changesets_box.setTitle(_('Changesets'))
        self.selectall_button.setText(_('Select &All'))
        self.selectnone_button.setText(_('Select &None'))
        self.main_tabs.setTabText(self.main_tabs.indexOf(self.edit_tab), _('Edit'))
        self.main_tabs.setTabText(self.main_tabs.indexOf(self.preview_tab), _('Preview'))
        self.settings_button.setText(_('&Settings'))
        self.send_button.setText(_('Post &Review'))
        self.close_button.setText(_('&Close'))

from PyQt4 import Qsci
