-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAutoAllReDialog.py
executable file
·193 lines (186 loc) · 10.9 KB
/
AutoAllReDialog.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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'AutoAllReDialog.ui'
#
# Created by: PyQt5 UI code generator 5.15.1
#
# 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_AutoAllReDialog(object):
def setupUi(self, AutoAllReDialog):
AutoAllReDialog.setObjectName("AutoAllReDialog")
AutoAllReDialog.resize(380, 509)
self.verticalLayout = QtWidgets.QVBoxLayout(AutoAllReDialog)
self.verticalLayout.setObjectName("verticalLayout")
self.frame = QtWidgets.QFrame(AutoAllReDialog)
self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame.setObjectName("frame")
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.frame)
self.verticalLayout_2.setSpacing(0)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.label = QtWidgets.QLabel(self.frame)
self.label.setScaledContents(False)
self.label.setAlignment(QtCore.Qt.AlignCenter)
self.label.setObjectName("label")
self.verticalLayout_2.addWidget(self.label)
self.widget = QtWidgets.QWidget(self.frame)
self.widget.setObjectName("widget")
self.gridLayout = QtWidgets.QGridLayout(self.widget)
self.gridLayout.setObjectName("gridLayout")
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout.addItem(spacerItem, 2, 3, 1, 1)
self.label_2 = QtWidgets.QLabel(self.widget)
self.label_2.setObjectName("label_2")
self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1)
self.input_path_btn = QtWidgets.QToolButton(self.widget)
self.input_path_btn.setFocusPolicy(QtCore.Qt.NoFocus)
self.input_path_btn.setObjectName("input_path_btn")
self.gridLayout.addWidget(self.input_path_btn, 2, 4, 1, 1)
spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.gridLayout.addItem(spacerItem1, 3, 2, 1, 1)
spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout.addItem(spacerItem2, 2, 1, 1, 1)
self.input_path_label = QtWidgets.QLabel(self.widget)
self.input_path_label.setStyleSheet("background-color: rgb(253, 253, 253);")
self.input_path_label.setTextFormat(QtCore.Qt.AutoText)
self.input_path_label.setWordWrap(False)
self.input_path_label.setObjectName("input_path_label")
self.gridLayout.addWidget(self.input_path_label, 2, 2, 1, 1)
spacerItem3 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.gridLayout.addItem(spacerItem3, 1, 2, 1, 1)
self.gridLayout.setColumnStretch(0, 2)
self.gridLayout.setColumnStretch(1, 1)
self.gridLayout.setColumnStretch(2, 9)
self.gridLayout.setColumnStretch(3, 1)
self.gridLayout.setColumnStretch(4, 2)
self.verticalLayout_2.addWidget(self.widget)
self.widget_2 = QtWidgets.QWidget(self.frame)
self.widget_2.setObjectName("widget_2")
self.gridLayout_2 = QtWidgets.QGridLayout(self.widget_2)
self.gridLayout_2.setObjectName("gridLayout_2")
self.ouput_path_label = QtWidgets.QLabel(self.widget_2)
self.ouput_path_label.setStyleSheet("background-color: rgb(253, 253, 253);")
self.ouput_path_label.setTextFormat(QtCore.Qt.AutoText)
self.ouput_path_label.setWordWrap(False)
self.ouput_path_label.setObjectName("ouput_path_label")
self.gridLayout_2.addWidget(self.ouput_path_label, 4, 2, 1, 1)
spacerItem4 = QtWidgets.QSpacerItem(23, 26, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_2.addItem(spacerItem4, 4, 1, 1, 1)
self.label_5 = QtWidgets.QLabel(self.widget_2)
self.label_5.setObjectName("label_5")
self.gridLayout_2.addWidget(self.label_5, 4, 0, 1, 1)
spacerItem5 = QtWidgets.QSpacerItem(20, 16, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.gridLayout_2.addItem(spacerItem5, 5, 2, 1, 1)
spacerItem6 = QtWidgets.QSpacerItem(20, 22, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.gridLayout_2.addItem(spacerItem6, 3, 2, 1, 1)
spacerItem7 = QtWidgets.QSpacerItem(23, 26, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_2.addItem(spacerItem7, 4, 3, 1, 1)
self.output_path_btn = QtWidgets.QToolButton(self.widget_2)
self.output_path_btn.setFocusPolicy(QtCore.Qt.NoFocus)
self.output_path_btn.setObjectName("output_path_btn")
self.gridLayout_2.addWidget(self.output_path_btn, 4, 4, 1, 1)
self.gridLayout_2.setColumnStretch(0, 2)
self.gridLayout_2.setColumnStretch(1, 1)
self.gridLayout_2.setColumnStretch(2, 8)
self.gridLayout_2.setColumnStretch(3, 1)
self.gridLayout_2.setColumnStretch(4, 2)
self.verticalLayout_2.addWidget(self.widget_2)
self.verticalLayout_2.setStretch(0, 1)
self.verticalLayout_2.setStretch(1, 1)
self.verticalLayout_2.setStretch(2, 1)
self.verticalLayout.addWidget(self.frame)
self.frame_2 = QtWidgets.QFrame(AutoAllReDialog)
self.frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_2.setObjectName("frame_2")
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.frame_2)
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.label_6 = QtWidgets.QLabel(self.frame_2)
self.label_6.setScaledContents(False)
self.label_6.setAlignment(QtCore.Qt.AlignCenter)
self.label_6.setObjectName("label_6")
self.verticalLayout_3.addWidget(self.label_6)
self.widget_4 = QtWidgets.QWidget(self.frame_2)
self.widget_4.setObjectName("widget_4")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.widget_4)
self.horizontalLayout.setObjectName("horizontalLayout")
self.label_7 = QtWidgets.QLabel(self.widget_4)
self.label_7.setAlignment(QtCore.Qt.AlignCenter)
self.label_7.setObjectName("label_7")
self.horizontalLayout.addWidget(self.label_7)
self.nparts_input = QtWidgets.QLineEdit(self.widget_4)
self.nparts_input.setFocusPolicy(QtCore.Qt.ClickFocus)
self.nparts_input.setObjectName("nparts_input")
self.horizontalLayout.addWidget(self.nparts_input)
spacerItem8 = QtWidgets.QSpacerItem(59, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem8)
self.horizontalLayout.setStretch(0, 3)
self.horizontalLayout.setStretch(1, 8)
self.horizontalLayout.setStretch(2, 3)
self.verticalLayout_3.addWidget(self.widget_4)
self.verticalLayout.addWidget(self.frame_2)
self.frame_3 = QtWidgets.QFrame(AutoAllReDialog)
self.frame_3.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_3.setObjectName("frame_3")
self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.frame_3)
self.verticalLayout_4.setObjectName("verticalLayout_4")
self.label_9 = QtWidgets.QLabel(self.frame_3)
self.label_9.setLineWidth(1)
self.label_9.setAlignment(QtCore.Qt.AlignCenter)
self.label_9.setObjectName("label_9")
self.verticalLayout_4.addWidget(self.label_9)
self.widget_6 = QtWidgets.QWidget(self.frame_3)
self.widget_6.setObjectName("widget_6")
self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.widget_6)
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.label_10 = QtWidgets.QLabel(self.widget_6)
self.label_10.setAlignment(QtCore.Qt.AlignCenter)
self.label_10.setObjectName("label_10")
self.horizontalLayout_3.addWidget(self.label_10)
self.quality_input = QtWidgets.QComboBox(self.widget_6)
self.quality_input.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))
self.quality_input.setFocusPolicy(QtCore.Qt.ClickFocus)
self.quality_input.setContextMenuPolicy(QtCore.Qt.ActionsContextMenu)
self.quality_input.setEditable(True)
self.quality_input.setObjectName("quality_input")
self.quality_input.addItem("")
self.quality_input.addItem("")
self.quality_input.addItem("")
self.quality_input.addItem("")
self.horizontalLayout_3.addWidget(self.quality_input)
self.horizontalLayout_3.setStretch(0, 1)
self.horizontalLayout_3.setStretch(1, 1)
self.verticalLayout_4.addWidget(self.widget_6)
self.verticalLayout.addWidget(self.frame_3)
self.widget_3 = QtWidgets.QWidget(AutoAllReDialog)
self.widget_3.setObjectName("widget_3")
self.autoDenseStartBtn = QtWidgets.QPushButton(self.widget_3)
self.autoDenseStartBtn.setGeometry(QtCore.QRect(140, 10, 99, 27))
self.autoDenseStartBtn.setFocusPolicy(QtCore.Qt.NoFocus)
self.autoDenseStartBtn.setObjectName("autoDenseStartBtn")
self.verticalLayout.addWidget(self.widget_3)
self.verticalLayout.setStretch(0, 3)
self.verticalLayout.setStretch(2, 3)
self.verticalLayout.setStretch(3, 1)
self.retranslateUi(AutoAllReDialog)
QtCore.QMetaObject.connectSlotsByName(AutoAllReDialog)
def retranslateUi(self, AutoAllReDialog):
_translate = QtCore.QCoreApplication.translate
AutoAllReDialog.setWindowTitle(_translate("AutoAllReDialog", "Dialog"))
self.label.setText(_translate("AutoAllReDialog", "路径设置"))
self.label_2.setText(_translate("AutoAllReDialog", "输入:"))
self.input_path_btn.setText(_translate("AutoAllReDialog", "..."))
self.input_path_label.setText(_translate("AutoAllReDialog", "图片路径"))
self.ouput_path_label.setText(_translate("AutoAllReDialog", "结果文件夹"))
self.label_5.setText(_translate("AutoAllReDialog", "输出:"))
self.output_path_btn.setText(_translate("AutoAllReDialog", "..."))
self.label_6.setText(_translate("AutoAllReDialog", "集群参数设置"))
self.label_7.setText(_translate("AutoAllReDialog", "节点数:"))
self.label_9.setText(_translate("AutoAllReDialog", "质量参数设置"))
self.label_10.setText(_translate("AutoAllReDialog", "选择质量:"))
self.quality_input.setItemText(0, _translate("AutoAllReDialog", "Self Defined"))
self.quality_input.setItemText(1, _translate("AutoAllReDialog", "low"))
self.quality_input.setItemText(2, _translate("AutoAllReDialog", "Medium"))
self.quality_input.setItemText(3, _translate("AutoAllReDialog", "High"))
self.autoDenseStartBtn.setText(_translate("AutoAllReDialog", "开始重建"))