-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain_window_ui.py
126 lines (119 loc) · 6.69 KB
/
main_window_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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '.\extractorUi.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(640, 480)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
self.gridLayout.setObjectName("gridLayout")
self.verticalLayout = QtWidgets.QVBoxLayout()
self.verticalLayout.setObjectName("verticalLayout")
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
self.inputLabel = QtWidgets.QLabel(self.centralwidget)
self.inputLabel.setMinimumSize(QtCore.QSize(107, 0))
self.inputLabel.setObjectName("inputLabel")
self.horizontalLayout.addWidget(self.inputLabel)
self.inputPath = QtWidgets.QLineEdit(self.centralwidget)
self.inputPath.setEnabled(True)
self.inputPath.setReadOnly(True)
self.inputPath.setObjectName("inputPath")
self.horizontalLayout.addWidget(self.inputPath)
self.inputBrowse = QtWidgets.QPushButton(self.centralwidget)
self.inputBrowse.setObjectName("inputBrowse")
self.horizontalLayout.addWidget(self.inputBrowse)
self.verticalLayout.addLayout(self.horizontalLayout)
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.outputLabel = QtWidgets.QLabel(self.centralwidget)
self.outputLabel.setMinimumSize(QtCore.QSize(107, 0))
self.outputLabel.setObjectName("outputLabel")
self.horizontalLayout_2.addWidget(self.outputLabel)
self.outputPath = QtWidgets.QLineEdit(self.centralwidget)
self.outputPath.setReadOnly(True)
self.outputPath.setObjectName("outputPath")
self.horizontalLayout_2.addWidget(self.outputPath)
self.outputBrowse = QtWidgets.QPushButton(self.centralwidget)
self.outputBrowse.setObjectName("outputBrowse")
self.horizontalLayout_2.addWidget(self.outputBrowse)
self.verticalLayout.addLayout(self.horizontalLayout_2)
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.widthBox = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.widthBox.sizePolicy().hasHeightForWidth())
self.widthBox.setSizePolicy(sizePolicy)
self.widthBox.setMaximumSize(QtCore.QSize(30, 16777215))
self.widthBox.setObjectName("widthBox")
self.horizontalLayout_3.addWidget(self.widthBox)
self.widthSelector = QtWidgets.QSpinBox(self.centralwidget)
self.widthSelector.setMaximumSize(QtCore.QSize(70, 16777215))
self.widthSelector.setMaximum(1024)
self.widthSelector.setProperty("value", 512)
self.widthSelector.setObjectName("widthSelector")
self.horizontalLayout_3.addWidget(self.widthSelector)
self.convertButton = QtWidgets.QPushButton(self.centralwidget)
self.convertButton.setEnabled(False)
self.convertButton.setCheckable(False)
self.convertButton.setObjectName("convertButton")
self.horizontalLayout_3.addWidget(self.convertButton)
self.verticalLayout.addLayout(self.horizontalLayout_3)
self.fileTable = QtWidgets.QTableWidget(self.centralwidget)
self.fileTable.setAlternatingRowColors(True)
self.fileTable.setColumnCount(2)
self.fileTable.setObjectName("fileTable")
self.fileTable.setRowCount(0)
item = QtWidgets.QTableWidgetItem()
self.fileTable.setHorizontalHeaderItem(0, item)
item = QtWidgets.QTableWidgetItem()
self.fileTable.setHorizontalHeaderItem(1, item)
self.fileTable.horizontalHeader().setVisible(True)
self.fileTable.horizontalHeader().setCascadingSectionResizes(False)
self.fileTable.horizontalHeader().setDefaultSectionSize(120)
self.verticalLayout.addWidget(self.fileTable)
self.progressBar = QtWidgets.QProgressBar(self.centralwidget)
self.progressBar.setProperty("value", 0)
self.progressBar.setTextVisible(False)
self.progressBar.setObjectName("progressBar")
self.verticalLayout.addWidget(self.progressBar)
self.gridLayout.addLayout(self.verticalLayout, 0, 0, 1, 1)
MainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.inputLabel.setBuddy(self.inputPath)
self.outputLabel.setBuddy(self.outputPath)
self.retranslateUi(MainWindow)
self.outputBrowse.clicked.connect(MainWindow.outputBrowseClicked)
self.convertButton.clicked.connect(MainWindow.convertClicked)
self.inputBrowse.clicked.connect(MainWindow.inputBrowseClicked)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
MainWindow.setTabOrder(self.inputPath, self.inputBrowse)
MainWindow.setTabOrder(self.inputBrowse, self.outputPath)
MainWindow.setTabOrder(self.outputPath, self.outputBrowse)
MainWindow.setTabOrder(self.outputBrowse, self.fileTable)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "Neversoft Bitmap Converter v1.0.0"))
self.inputLabel.setText(_translate("MainWindow", "Input Directory"))
self.inputBrowse.setText(_translate("MainWindow", "Browse..."))
self.outputLabel.setText(_translate("MainWindow", "Output Directory"))
self.outputBrowse.setText(_translate("MainWindow", "Browse..."))
self.widthBox.setToolTip(_translate("MainWindow", "The width of the images being converted."))
self.widthBox.setText(_translate("MainWindow", "Width"))
self.convertButton.setText(_translate("MainWindow", "Convert"))
self.fileTable.setSortingEnabled(True)
item = self.fileTable.horizontalHeaderItem(0)
item.setText(_translate("MainWindow", "File Name"))
item = self.fileTable.horizontalHeaderItem(1)
item.setText(_translate("MainWindow", "Status"))