forked from pratikone/videoVenom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
banner_ui.py
176 lines (166 loc) · 8 KB
/
banner_ui.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui\banner.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_Form(object):
def setupUi(self, Form):
Form.setObjectName(_fromUtf8("Form"))
Form.resize(794, 579)
self.previewBtn = QtGui.QPushButton(Form)
self.previewBtn.setGeometry(QtCore.QRect(410, 510, 91, 31))
font = QtGui.QFont()
font.setFamily(_fromUtf8("Arial"))
font.setItalic(False)
self.previewBtn.setFont(font)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/info/Hopstarter-Button-Button-Info.ico")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.previewBtn.setIcon(icon)
self.previewBtn.setObjectName(_fromUtf8("previewBtn"))
self.bannerLabel = QtGui.QLabel(Form)
self.bannerLabel.setGeometry(QtCore.QRect(210, 230, 191, 31))
font = QtGui.QFont()
font.setFamily(_fromUtf8("Arial"))
self.bannerLabel.setFont(font)
self.bannerLabel.setAutoFillBackground(False)
self.bannerLabel.setStyleSheet(_fromUtf8("background-color: rgba(200, 240, 240, 100)"))
self.bannerLabel.setFrameShape(QtGui.QFrame.Box)
self.bannerLabel.setFrameShadow(QtGui.QFrame.Plain)
self.bannerLabel.setObjectName(_fromUtf8("bannerLabel"))
self.frame = QtGui.QLabel(Form)
self.frame.setGeometry(QtCore.QRect(190, 20, 541, 271))
self.frame.setMouseTracking(False)
self.frame.setAutoFillBackground(False)
self.frame.setStyleSheet(_fromUtf8("background-color: rgba(255, 255, 255, 100)"))
self.frame.setFrameShape(QtGui.QFrame.Box)
self.frame.setFrameShadow(QtGui.QFrame.Sunken)
self.frame.setText(_fromUtf8(""))
self.frame.setObjectName(_fromUtf8("frame"))
self.progressBox = QtGui.QGroupBox(Form)
self.progressBox.setGeometry(QtCore.QRect(20, 430, 161, 101))
self.progressBox.setObjectName(_fromUtf8("progressBox"))
self.nextLabel = QtGui.QLabel(self.progressBox)
self.nextLabel.setGeometry(QtCore.QRect(10, 10, 81, 31))
font = QtGui.QFont()
font.setFamily(_fromUtf8("Arial"))
font.setPointSize(10)
font.setBold(False)
font.setItalic(False)
font.setUnderline(True)
font.setWeight(50)
self.nextLabel.setFont(font)
self.nextLabel.setAutoFillBackground(False)
self.nextLabel.setObjectName(_fromUtf8("nextLabel"))
self.nextBtn = QtGui.QPushButton(self.progressBox)
self.nextBtn.setGeometry(QtCore.QRect(10, 40, 141, 51))
font = QtGui.QFont()
font.setFamily(_fromUtf8("Arial"))
self.nextBtn.setFont(font)
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/next/Hopstarter-Button-Button-Next.ico")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.nextBtn.setIcon(icon1)
self.nextBtn.setObjectName(_fromUtf8("nextBtn"))
self.groupBox = QtGui.QGroupBox(Form)
self.groupBox.setGeometry(QtCore.QRect(190, 300, 531, 201))
font = QtGui.QFont()
font.setFamily(_fromUtf8("Arial"))
self.groupBox.setFont(font)
self.groupBox.setObjectName(_fromUtf8("groupBox"))
self.bannerBtn = QtGui.QPushButton(self.groupBox)
self.bannerBtn.setGeometry(QtCore.QRect(40, 40, 471, 41))
font = QtGui.QFont()
font.setFamily(_fromUtf8("Arial"))
self.bannerBtn.setFont(font)
self.bannerBtn.setObjectName(_fromUtf8("bannerBtn"))
self.layoutWidget = QtGui.QWidget(self.groupBox)
self.layoutWidget.setGeometry(QtCore.QRect(40, 85, 471, 41))
self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
self.horizontalLayout = QtGui.QHBoxLayout(self.layoutWidget)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.textLabel = QtGui.QLabel(self.layoutWidget)
font = QtGui.QFont()
font.setFamily(_fromUtf8("Arial"))
self.textLabel.setFont(font)
self.textLabel.setObjectName(_fromUtf8("textLabel"))
self.horizontalLayout.addWidget(self.textLabel)
spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem)
self.bannerText = QtGui.QLineEdit(self.layoutWidget)
font = QtGui.QFont()
font.setFamily(_fromUtf8("Arial"))
self.bannerText.setFont(font)
self.bannerText.setObjectName(_fromUtf8("bannerText"))
self.horizontalLayout.addWidget(self.bannerText)
self.layoutWidget_2 = QtGui.QWidget(self.groupBox)
self.layoutWidget_2.setGeometry(QtCore.QRect(40, 130, 471, 51))
self.layoutWidget_2.setObjectName(_fromUtf8("layoutWidget_2"))
self.horizontalLayout_3 = QtGui.QHBoxLayout(self.layoutWidget_2)
self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
self.fontBtn = QtGui.QPushButton(self.layoutWidget_2)
font = QtGui.QFont()
font.setFamily(_fromUtf8("Arial"))
self.fontBtn.setFont(font)
self.fontBtn.setObjectName(_fromUtf8("fontBtn"))
self.horizontalLayout_3.addWidget(self.fontBtn)
self.colorBtn = QtGui.QPushButton(self.layoutWidget_2)
font = QtGui.QFont()
font.setFamily(_fromUtf8("Arial"))
self.colorBtn.setFont(font)
self.colorBtn.setObjectName(_fromUtf8("colorBtn"))
self.horizontalLayout_3.addWidget(self.colorBtn)
self.layoutWidget1 = QtGui.QWidget(Form)
self.layoutWidget1.setGeometry(QtCore.QRect(0, 0, 2, 2))
self.layoutWidget1.setObjectName(_fromUtf8("layoutWidget1"))
self.verticalLayout = QtGui.QVBoxLayout(self.layoutWidget1)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.picLabel = QtGui.QLabel(Form)
self.picLabel.setGeometry(QtCore.QRect(-40, -60, 211, 221))
self.picLabel.setText(_fromUtf8(""))
self.picLabel.setPixmap(QtGui.QPixmap(_fromUtf8(":/camera/HDRCameraApp_trans.png")))
self.picLabel.setScaledContents(True)
self.picLabel.setObjectName(_fromUtf8("picLabel"))
self.progressBox.raise_()
self.frame.raise_()
self.layoutWidget.raise_()
self.previewBtn.raise_()
self.groupBox.raise_()
self.bannerLabel.raise_()
self.picLabel.raise_()
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
Form.setWindowTitle(_translate("Form", "Set Video Banner and Text", None))
self.previewBtn.setText(_translate("Form", "Preview ...", None))
self.bannerLabel.setText(_translate("Form", "Banner Text", None))
self.progressBox.setTitle(_translate("Form", "Step 2/5", None))
self.nextLabel.setText(_translate("Form", "Next", None))
self.nextBtn.setText(_translate("Form", "Set banner timeline", None))
self.groupBox.setTitle(_translate("Form", "Banner controls", None))
self.bannerBtn.setText(_translate("Form", "Add Banner", None))
self.textLabel.setText(_translate("Form", "Add banner text to the video", None))
self.bannerText.setText(_translate("Form", "Banner Text", None))
self.fontBtn.setText(_translate("Form", "Select Font", None))
self.colorBtn.setText(_translate("Form", "Set Font Color", None))
import icons_rc
if __name__ == "__main__":
import sys
app = QtGui.QApplication(sys.argv)
Form = QtGui.QWidget()
ui = Ui_Form()
ui.setupUi(Form)
Form.show()
sys.exit(app.exec_())