Source

hgcr-gui / hgcr_ui.py

Full commit
# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'hgcr.ui'
#
# Created: Sat Nov 03 15:37:14 2012
#      by: PyQt4 UI code generator 4.9.4
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

try:
    _fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
    _fromUtf8 = lambda s: s

class Ui_CodeREviewDialog(object):
    def setupUi(self, CodeREviewDialog):
        CodeREviewDialog.setObjectName(_fromUtf8("CodeREviewDialog"))
        CodeREviewDialog.resize(735, 398)
        self.dialog_layout = QtGui.QVBoxLayout(CodeREviewDialog)
        self.dialog_layout.setObjectName(_fromUtf8("dialog_layout"))
        self.buttons_layout = QtGui.QHBoxLayout()
        self.buttons_layout.setObjectName(_fromUtf8("buttons_layout"))
        self.refresh_button = QtGui.QPushButton(CodeREviewDialog)
        self.refresh_button.setObjectName(_fromUtf8("refresh_button"))
        self.buttons_layout.addWidget(self.refresh_button)
        self.add_button = QtGui.QPushButton(CodeREviewDialog)
        self.add_button.setStyleSheet(_fromUtf8(""))
        self.add_button.setObjectName(_fromUtf8("add_button"))
        self.buttons_layout.addWidget(self.add_button)
        self.remove_button = QtGui.QPushButton(CodeREviewDialog)
        self.remove_button.setObjectName(_fromUtf8("remove_button"))
        self.buttons_layout.addWidget(self.remove_button)
        self.done_button = QtGui.QPushButton(CodeREviewDialog)
        self.done_button.setObjectName(_fromUtf8("done_button"))
        self.buttons_layout.addWidget(self.done_button)
        self.commit_button = QtGui.QPushButton(CodeREviewDialog)
        self.commit_button.setObjectName(_fromUtf8("commit_button"))
        self.buttons_layout.addWidget(self.commit_button)
        self.email_button = QtGui.QPushButton(CodeREviewDialog)
        self.email_button.setObjectName(_fromUtf8("email_button"))
        self.buttons_layout.addWidget(self.email_button)
        self.history_button = QtGui.QPushButton(CodeREviewDialog)
        self.history_button.setObjectName(_fromUtf8("history_button"))
        self.buttons_layout.addWidget(self.history_button)
        self.dialog_layout.addLayout(self.buttons_layout)
        self.mode_viewer = QtGui.QGroupBox(CodeREviewDialog)
        self.mode_viewer.setObjectName(_fromUtf8("mode_viewer"))
        self.radio_layout = QtGui.QHBoxLayout(self.mode_viewer)
        self.radio_layout.setObjectName(_fromUtf8("radio_layout"))
        self.labelStatus = QtGui.QLabel(self.mode_viewer)
        self.labelStatus.setObjectName(_fromUtf8("labelStatus"))
        self.radio_layout.addWidget(self.labelStatus)
        self.fileStatus = QtGui.QComboBox(self.mode_viewer)
        self.fileStatus.setObjectName(_fromUtf8("fileStatus"))
        self.radio_layout.addWidget(self.fileStatus)
        self.labelResponcibility = QtGui.QLabel(self.mode_viewer)
        self.labelResponcibility.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
        self.labelResponcibility.setObjectName(_fromUtf8("labelResponcibility"))
        self.radio_layout.addWidget(self.labelResponcibility)
        self.responcibilitySelector = QtGui.QComboBox(self.mode_viewer)
        self.responcibilitySelector.setObjectName(_fromUtf8("responcibilitySelector"))
        self.radio_layout.addWidget(self.responcibilitySelector)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.radio_layout.addItem(spacerItem)
        self.dialog_layout.addWidget(self.mode_viewer)
        self.list_of_files = QtGui.QTableWidget(CodeREviewDialog)
        self.list_of_files.setStyleSheet(_fromUtf8(""))
        self.list_of_files.setEditTriggers(QtGui.QAbstractItemView.AnyKeyPressed|QtGui.QAbstractItemView.EditKeyPressed|QtGui.QAbstractItemView.SelectedClicked)
        self.list_of_files.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
        self.list_of_files.setObjectName(_fromUtf8("list_of_files"))
        self.list_of_files.setColumnCount(6)
        self.list_of_files.setRowCount(0)
        item = QtGui.QTableWidgetItem()
        self.list_of_files.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.list_of_files.setHorizontalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.list_of_files.setHorizontalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        self.list_of_files.setHorizontalHeaderItem(3, item)
        item = QtGui.QTableWidgetItem()
        self.list_of_files.setHorizontalHeaderItem(4, item)
        item = QtGui.QTableWidgetItem()
        item.setText(_fromUtf8("Path"))
        self.list_of_files.setHorizontalHeaderItem(5, item)
        self.list_of_files.horizontalHeader().setSortIndicatorShown(True)
        self.list_of_files.horizontalHeader().setStretchLastSection(True)
        self.list_of_files.verticalHeader().setSortIndicatorShown(True)
        self.dialog_layout.addWidget(self.list_of_files)
        self.status = QtGui.QLabel(CodeREviewDialog)
        self.status.setLayoutDirection(QtCore.Qt.RightToLeft)
        self.status.setObjectName(_fromUtf8("status"))
        self.dialog_layout.addWidget(self.status)

        self.retranslateUi(CodeREviewDialog)
        QtCore.QObject.connect(self.refresh_button, QtCore.SIGNAL(_fromUtf8("clicked()")), CodeREviewDialog.onRefreshButtonClicked)
        QtCore.QObject.connect(self.add_button, QtCore.SIGNAL(_fromUtf8("clicked()")), CodeREviewDialog.onAddButtonClicked)
        QtCore.QObject.connect(self.remove_button, QtCore.SIGNAL(_fromUtf8("clicked()")), CodeREviewDialog.onRemoveButtonClicked)
        QtCore.QObject.connect(self.done_button, QtCore.SIGNAL(_fromUtf8("clicked()")), CodeREviewDialog.onDoneButtonClicked)
        QtCore.QObject.connect(self.commit_button, QtCore.SIGNAL(_fromUtf8("clicked()")), CodeREviewDialog.onCommitButtonClicked)
        QtCore.QObject.connect(self.email_button, QtCore.SIGNAL(_fromUtf8("clicked()")), CodeREviewDialog.onEmailButtonClicked)
        QtCore.QObject.connect(self.history_button, QtCore.SIGNAL(_fromUtf8("clicked()")), CodeREviewDialog.onHistoryButtonClicked)
        QtCore.QObject.connect(self.list_of_files, QtCore.SIGNAL(_fromUtf8("doubleClicked(QModelIndex)")), CodeREviewDialog.onTableDoubleClick)
        QtCore.QObject.connect(self.list_of_files, QtCore.SIGNAL(_fromUtf8("cellChanged(int,int)")), CodeREviewDialog.onTableEdit)
        QtCore.QObject.connect(self.list_of_files, QtCore.SIGNAL(_fromUtf8("itemSelectionChanged()")), CodeREviewDialog.onTableSelection)
        QtCore.QMetaObject.connectSlotsByName(CodeREviewDialog)

    def retranslateUi(self, CodeREviewDialog):
        CodeREviewDialog.setWindowTitle(QtGui.QApplication.translate("CodeREviewDialog", "CodeReview", None, QtGui.QApplication.UnicodeUTF8))
        self.refresh_button.setToolTip(QtGui.QApplication.translate("CodeREviewDialog", "Refresh", None, QtGui.QApplication.UnicodeUTF8))
        self.refresh_button.setText(QtGui.QApplication.translate("CodeREviewDialog", "Refresh", None, QtGui.QApplication.UnicodeUTF8))
        self.add_button.setToolTip(QtGui.QApplication.translate("CodeREviewDialog", "Add Files to CR list", None, QtGui.QApplication.UnicodeUTF8))
        self.add_button.setText(QtGui.QApplication.translate("CodeREviewDialog", "Add", None, QtGui.QApplication.UnicodeUTF8))
        self.remove_button.setToolTip(QtGui.QApplication.translate("CodeREviewDialog", "Remove Files from CR list", None, QtGui.QApplication.UnicodeUTF8))
        self.remove_button.setText(QtGui.QApplication.translate("CodeREviewDialog", "Remove", None, QtGui.QApplication.UnicodeUTF8))
        self.done_button.setToolTip(QtGui.QApplication.translate("CodeREviewDialog", "Mark CR as Complete", None, QtGui.QApplication.UnicodeUTF8))
        self.done_button.setText(QtGui.QApplication.translate("CodeREviewDialog", "Done", None, QtGui.QApplication.UnicodeUTF8))
        self.commit_button.setToolTip(QtGui.QApplication.translate("CodeREviewDialog", "Commit Changes", None, QtGui.QApplication.UnicodeUTF8))
        self.commit_button.setText(QtGui.QApplication.translate("CodeREviewDialog", "Commit", None, QtGui.QApplication.UnicodeUTF8))
        self.email_button.setToolTip(QtGui.QApplication.translate("CodeREviewDialog", "Commit and Email CR request to one or more recipients", None, QtGui.QApplication.UnicodeUTF8))
        self.email_button.setText(QtGui.QApplication.translate("CodeREviewDialog", "Email", None, QtGui.QApplication.UnicodeUTF8))
        self.history_button.setToolTip(QtGui.QApplication.translate("CodeREviewDialog", "History of selected file", None, QtGui.QApplication.UnicodeUTF8))
        self.history_button.setText(QtGui.QApplication.translate("CodeREviewDialog", "History", None, QtGui.QApplication.UnicodeUTF8))
        self.labelStatus.setText(QtGui.QApplication.translate("CodeREviewDialog", "Status:", None, QtGui.QApplication.UnicodeUTF8))
        self.labelResponcibility.setText(QtGui.QApplication.translate("CodeREviewDialog", "Reviewer / Developer Filter:", None, QtGui.QApplication.UnicodeUTF8))
        self.list_of_files.setSortingEnabled(True)
        item = self.list_of_files.horizontalHeaderItem(0)
        item.setText(QtGui.QApplication.translate("CodeREviewDialog", "Status", None, QtGui.QApplication.UnicodeUTF8))
        item = self.list_of_files.horizontalHeaderItem(1)
        item.setText(QtGui.QApplication.translate("CodeREviewDialog", "Revision", None, QtGui.QApplication.UnicodeUTF8))
        item = self.list_of_files.horizontalHeaderItem(2)
        item.setText(QtGui.QApplication.translate("CodeREviewDialog", "Round", None, QtGui.QApplication.UnicodeUTF8))
        item = self.list_of_files.horizontalHeaderItem(3)
        item.setText(QtGui.QApplication.translate("CodeREviewDialog", "Developer", None, QtGui.QApplication.UnicodeUTF8))
        item = self.list_of_files.horizontalHeaderItem(4)
        item.setText(QtGui.QApplication.translate("CodeREviewDialog", "Reviewer", None, QtGui.QApplication.UnicodeUTF8))
        self.status.setText(QtGui.QApplication.translate("CodeREviewDialog", "0 selected, 0 total", None, QtGui.QApplication.UnicodeUTF8))