forked from phraust1612/sc2builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainWindow.py
164 lines (157 loc) · 8.73 KB
/
mainWindow.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'D:\Starcraft\qt_test_sc2builder\mainwindow.ui'
#
# Created by: PyQt5 UI code generator 5.15.7
#
# 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(1000, 700)
MainWindow.setMinimumSize(QtCore.QSize(1000, 700))
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setMinimumSize(QtCore.QSize(800, 600))
self.centralwidget.setObjectName("centralwidget")
self.horizontalLayout_9 = QtWidgets.QHBoxLayout(self.centralwidget)
self.horizontalLayout_9.setContentsMargins(2, 2, 2, 2)
self.horizontalLayout_9.setObjectName("horizontalLayout_9")
self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
self.horizontalLayout_4.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint)
self.horizontalLayout_4.setContentsMargins(-1, -1, -1, 1)
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
self.verticalLayout = QtWidgets.QVBoxLayout()
self.verticalLayout.setObjectName("verticalLayout")
self.inputTable = QtWidgets.QTableWidget(self.centralwidget)
self.inputTable.setMinimumSize(QtCore.QSize(400, 35))
self.inputTable.setMaximumSize(QtCore.QSize(16777215, 60))
self.inputTable.setObjectName("inputTable")
self.inputTable.setColumnCount(0)
self.inputTable.setRowCount(0)
self.verticalLayout.addWidget(self.inputTable)
self.board = QtWidgets.QTableWidget(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.board.sizePolicy().hasHeightForWidth())
self.board.setSizePolicy(sizePolicy)
self.board.setMinimumSize(QtCore.QSize(400, 400))
self.board.setObjectName("board")
self.board.setColumnCount(0)
self.board.setRowCount(0)
self.verticalLayout.addWidget(self.board)
self.horizontalLayout_8 = QtWidgets.QHBoxLayout()
self.horizontalLayout_8.setObjectName("horizontalLayout_8")
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_8.addItem(spacerItem)
self.zoomMinusButton = QtWidgets.QPushButton(self.centralwidget)
self.zoomMinusButton.setMinimumSize(QtCore.QSize(10, 10))
self.zoomMinusButton.setMaximumSize(QtCore.QSize(100, 100))
self.zoomMinusButton.setObjectName("zoomMinusButton")
self.horizontalLayout_8.addWidget(self.zoomMinusButton)
self.zoomLabel = QtWidgets.QLabel(self.centralwidget)
self.zoomLabel.setMinimumSize(QtCore.QSize(40, 20))
self.zoomLabel.setMaximumSize(QtCore.QSize(100, 50))
self.zoomLabel.setAlignment(QtCore.Qt.AlignCenter)
self.zoomLabel.setObjectName("zoomLabel")
self.horizontalLayout_8.addWidget(self.zoomLabel)
self.zoomPlusButton = QtWidgets.QPushButton(self.centralwidget)
self.zoomPlusButton.setMinimumSize(QtCore.QSize(10, 10))
self.zoomPlusButton.setMaximumSize(QtCore.QSize(100, 100))
self.zoomPlusButton.setObjectName("zoomPlusButton")
self.horizontalLayout_8.addWidget(self.zoomPlusButton)
self.horizontalLayout_8.setStretch(0, 15)
self.horizontalLayout_8.setStretch(1, 1)
self.horizontalLayout_8.setStretch(2, 1)
self.horizontalLayout_8.setStretch(3, 1)
self.verticalLayout.addLayout(self.horizontalLayout_8)
self.verticalLayout.setStretch(0, 1)
self.horizontalLayout.addLayout(self.verticalLayout)
self.horizontalLayout_4.addLayout(self.horizontalLayout)
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.verticalLayout_4 = QtWidgets.QVBoxLayout()
self.verticalLayout_4.setContentsMargins(-1, -1, -1, 5)
self.verticalLayout_4.setSpacing(10)
self.verticalLayout_4.setObjectName("verticalLayout_4")
self.label = QtWidgets.QLabel(self.centralwidget)
self.label.setMinimumSize(QtCore.QSize(350, 25))
self.label.setMaximumSize(QtCore.QSize(500, 200))
self.label.setObjectName("label")
self.verticalLayout_4.addWidget(self.label)
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.verticalLayout_7 = QtWidgets.QVBoxLayout()
self.verticalLayout_7.setContentsMargins(-1, 1, -1, 2)
self.verticalLayout_7.setSpacing(5)
self.verticalLayout_7.setObjectName("verticalLayout_7")
self.iconLayout = QtWidgets.QGridLayout()
self.iconLayout.setSpacing(1)
self.iconLayout.setObjectName("iconLayout")
self.verticalLayout_7.addLayout(self.iconLayout)
self.unitLayout = QtWidgets.QGridLayout()
self.unitLayout.setContentsMargins(-1, 0, -1, 1)
self.unitLayout.setSpacing(1)
self.unitLayout.setObjectName("unitLayout")
self.verticalLayout_7.addLayout(self.unitLayout)
self.buildingLayout = QtWidgets.QGridLayout()
self.buildingLayout.setContentsMargins(0, 1, -1, 1)
self.buildingLayout.setSpacing(1)
self.buildingLayout.setObjectName("buildingLayout")
self.verticalLayout_7.addLayout(self.buildingLayout)
self.upgradeLayout = QtWidgets.QGridLayout()
self.upgradeLayout.setContentsMargins(-1, 1, -1, 1)
self.upgradeLayout.setSpacing(1)
self.upgradeLayout.setObjectName("upgradeLayout")
self.verticalLayout_7.addLayout(self.upgradeLayout)
self.horizontalLayout_3.addLayout(self.verticalLayout_7)
self.verticalLayout_8 = QtWidgets.QVBoxLayout()
self.verticalLayout_8.setSpacing(4)
self.verticalLayout_8.setObjectName("verticalLayout_8")
self.label2 = QtWidgets.QLabel(self.centralwidget)
self.label2.setMinimumSize(QtCore.QSize(160, 0))
self.label2.setMaximumSize(QtCore.QSize(400, 16777215))
self.label2.setObjectName("label2")
self.verticalLayout_8.addWidget(self.label2)
self.unitList = QtWidgets.QTableWidget(self.centralwidget)
self.unitList.setMinimumSize(QtCore.QSize(150, 0))
self.unitList.setMaximumSize(QtCore.QSize(250, 16777215))
self.unitList.setObjectName("unitList")
self.unitList.setColumnCount(0)
self.unitList.setRowCount(0)
self.verticalLayout_8.addWidget(self.unitList)
self.buildingList = QtWidgets.QTableWidget(self.centralwidget)
self.buildingList.setMinimumSize(QtCore.QSize(150, 0))
self.buildingList.setMaximumSize(QtCore.QSize(250, 16777215))
self.buildingList.setObjectName("buildingList")
self.buildingList.setColumnCount(0)
self.buildingList.setRowCount(0)
self.verticalLayout_8.addWidget(self.buildingList)
self.horizontalLayout_3.addLayout(self.verticalLayout_8)
self.verticalLayout_4.addLayout(self.horizontalLayout_3)
self.horizontalLayout_2.addLayout(self.verticalLayout_4)
self.horizontalLayout_4.addLayout(self.horizontalLayout_2)
self.horizontalLayout_4.setStretch(0, 2)
self.horizontalLayout_4.setStretch(1, 1)
self.horizontalLayout_9.addLayout(self.horizontalLayout_4)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 1000, 17))
self.menubar.setObjectName("menubar")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
self.zoomMinusButton.setText(_translate("MainWindow", "PushButton"))
self.zoomLabel.setText(_translate("MainWindow", "TextLabel"))
self.zoomPlusButton.setText(_translate("MainWindow", "PushButton"))
self.label.setText(_translate("MainWindow", "TextLabel"))
self.label2.setText(_translate("MainWindow", "TextLabel"))