forked from sourcepole/pgversion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Ui_Ui_LogView.py
94 lines (84 loc) · 4.38 KB
/
Ui_Ui_LogView.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/home/hdus/dev/qgis/pgversion-plugin/pgversion/forms/Ui_LogView.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!
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_LogView(object):
def setupUi(self, LogView):
LogView.setObjectName(_fromUtf8("LogView"))
LogView.setWindowModality(QtCore.Qt.ApplicationModal)
LogView.resize(722, 464)
self.gridLayout = QtGui.QGridLayout(LogView)
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.cmbTags = QtGui.QComboBox(LogView)
self.cmbTags.setObjectName(_fromUtf8("cmbTags"))
self.cmbTags.addItem(_fromUtf8(""))
self.gridLayout.addWidget(self.cmbTags, 0, 3, 1, 1)
self.treeWidget = QtGui.QTreeWidget(LogView)
self.treeWidget.setObjectName(_fromUtf8("treeWidget"))
self.gridLayout.addWidget(self.treeWidget, 1, 0, 2, 3)
self.btnTag = QtGui.QPushButton(LogView)
self.btnTag.setObjectName(_fromUtf8("btnTag"))
self.gridLayout.addWidget(self.btnTag, 1, 3, 1, 1)
spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
self.gridLayout.addItem(spacerItem, 2, 3, 1, 1)
self.btnCheckout = QtGui.QPushButton(LogView)
self.btnCheckout.setObjectName(_fromUtf8("btnCheckout"))
self.gridLayout.addWidget(self.btnCheckout, 3, 0, 1, 1)
self.btnDiff = QtGui.QPushButton(LogView)
self.btnDiff.setObjectName(_fromUtf8("btnDiff"))
self.gridLayout.addWidget(self.btnDiff, 3, 1, 1, 1)
self.buttonBox = QtGui.QDialogButtonBox(LogView)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.buttonBox.sizePolicy().hasHeightForWidth())
self.buttonBox.setSizePolicy(sizePolicy)
self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Close)
self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
self.gridLayout.addWidget(self.buttonBox, 3, 2, 1, 1)
self.btnRollback = QtGui.QPushButton(LogView)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.btnRollback.sizePolicy().hasHeightForWidth())
self.btnRollback.setSizePolicy(sizePolicy)
self.btnRollback.setMinimumSize(QtCore.QSize(0, 0))
self.btnRollback.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.btnRollback.setObjectName(_fromUtf8("btnRollback"))
self.gridLayout.addWidget(self.btnRollback, 0, 0, 1, 3)
self.retranslateUi(LogView)
QtCore.QMetaObject.connectSlotsByName(LogView)
def retranslateUi(self, LogView):
LogView.setWindowTitle(_translate("LogView", "PG-Version LogView", None))
self.cmbTags.setItemText(0, _translate("LogView", "-- checkout Tag --", None))
self.treeWidget.headerItem().setText(0, _translate("LogView", "Revision", None))
self.treeWidget.headerItem().setText(1, _translate("LogView", "Date", None))
self.treeWidget.headerItem().setText(2, _translate("LogView", "User", None))
self.treeWidget.headerItem().setText(3, _translate("LogView", "Log-Message", None))
self.btnTag.setText(_translate("LogView", "checkout Tag", None))
self.btnCheckout.setText(_translate("LogView", "checkout selected revision", None))
self.btnDiff.setText(_translate("LogView", "diff to HEAD revision", None))
self.btnRollback.setText(_translate("LogView", "rollback to selected revision", None))
if __name__ == "__main__":
import sys
app = QtGui.QApplication(sys.argv)
LogView = QtGui.QDialog()
ui = Ui_LogView()
ui.setupUi(LogView)
LogView.show()
sys.exit(app.exec_())