개정판 37fe970d
#477 SymbolEditor_UI.py Add
DTI_PID/DTI_PID/SymbolEditor_UI.py | ||
---|---|---|
1 |
# -*- coding: utf-8 -*- |
|
2 |
|
|
3 |
# Form implementation generated from reading ui file 'D:\Projects\DTIPID\DTI_PID\DTI_PID\UI\SymbolEditor.ui' |
|
4 |
# |
|
5 |
# Created by: PyQt5 UI code generator 5.10.1 |
|
6 |
# |
|
7 |
# WARNING! All changes made in this file will be lost! |
|
8 |
|
|
9 |
from PyQt5 import QtCore, QtGui, QtWidgets |
|
10 |
|
|
11 |
class Ui_Dialog(object): |
|
12 |
def setupUi(self, Dialog): |
|
13 |
Dialog.setObjectName("Dialog") |
|
14 |
Dialog.resize(1280, 720) |
|
15 |
Dialog.setMinimumSize(QtCore.QSize(1280, 720)) |
|
16 |
font = QtGui.QFont() |
|
17 |
font.setFamily("맑은 고딕") |
|
18 |
Dialog.setFont(font) |
|
19 |
self.gridLayout_3 = QtWidgets.QGridLayout(Dialog) |
|
20 |
self.gridLayout_3.setObjectName("gridLayout_3") |
|
21 |
self.splitter = QtWidgets.QSplitter(Dialog) |
|
22 |
self.splitter.setMinimumSize(QtCore.QSize(0, 0)) |
|
23 |
self.splitter.setOrientation(QtCore.Qt.Horizontal) |
|
24 |
self.splitter.setObjectName("splitter") |
|
25 |
self.widget_3 = QtWidgets.QWidget(self.splitter) |
|
26 |
self.widget_3.setObjectName("widget_3") |
|
27 |
self.gridLayout = QtWidgets.QGridLayout(self.widget_3) |
|
28 |
self.gridLayout.setContentsMargins(0, 0, 0, 0) |
|
29 |
self.gridLayout.setObjectName("gridLayout") |
|
30 |
self.verticalLayout_2 = QtWidgets.QVBoxLayout() |
|
31 |
self.verticalLayout_2.setObjectName("verticalLayout_2") |
|
32 |
self.toolWidget = QtWidgets.QWidget(self.widget_3) |
|
33 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum) |
|
34 |
sizePolicy.setHorizontalStretch(0) |
|
35 |
sizePolicy.setVerticalStretch(0) |
|
36 |
sizePolicy.setHeightForWidth(self.toolWidget.sizePolicy().hasHeightForWidth()) |
|
37 |
self.toolWidget.setSizePolicy(sizePolicy) |
|
38 |
self.toolWidget.setMaximumSize(QtCore.QSize(16777215, 16777215)) |
|
39 |
self.toolWidget.setObjectName("toolWidget") |
|
40 |
self.horizontalLayout = QtWidgets.QHBoxLayout(self.toolWidget) |
|
41 |
self.horizontalLayout.setObjectName("horizontalLayout") |
|
42 |
self.gridLayout_5 = QtWidgets.QGridLayout() |
|
43 |
self.gridLayout_5.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint) |
|
44 |
self.gridLayout_5.setObjectName("gridLayout_5") |
|
45 |
self.cropButton = QtWidgets.QPushButton(self.toolWidget) |
|
46 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum) |
|
47 |
sizePolicy.setHorizontalStretch(0) |
|
48 |
sizePolicy.setVerticalStretch(0) |
|
49 |
sizePolicy.setHeightForWidth(self.cropButton.sizePolicy().hasHeightForWidth()) |
|
50 |
self.cropButton.setSizePolicy(sizePolicy) |
|
51 |
self.cropButton.setObjectName("cropButton") |
|
52 |
self.gridLayout_5.addWidget(self.cropButton, 0, 1, 1, 1) |
|
53 |
self.eraserButton = QtWidgets.QPushButton(self.toolWidget) |
|
54 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum) |
|
55 |
sizePolicy.setHorizontalStretch(0) |
|
56 |
sizePolicy.setVerticalStretch(0) |
|
57 |
sizePolicy.setHeightForWidth(self.eraserButton.sizePolicy().hasHeightForWidth()) |
|
58 |
self.eraserButton.setSizePolicy(sizePolicy) |
|
59 |
self.eraserButton.setObjectName("eraserButton") |
|
60 |
self.gridLayout_5.addWidget(self.eraserButton, 0, 4, 1, 1) |
|
61 |
self.fitImageButton = QtWidgets.QPushButton(self.toolWidget) |
|
62 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum) |
|
63 |
sizePolicy.setHorizontalStretch(0) |
|
64 |
sizePolicy.setVerticalStretch(0) |
|
65 |
sizePolicy.setHeightForWidth(self.fitImageButton.sizePolicy().hasHeightForWidth()) |
|
66 |
self.fitImageButton.setSizePolicy(sizePolicy) |
|
67 |
self.fitImageButton.setObjectName("fitImageButton") |
|
68 |
self.gridLayout_5.addWidget(self.fitImageButton, 0, 6, 1, 1) |
|
69 |
self.zoomButton = QtWidgets.QPushButton(self.toolWidget) |
|
70 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum) |
|
71 |
sizePolicy.setHorizontalStretch(0) |
|
72 |
sizePolicy.setVerticalStretch(0) |
|
73 |
sizePolicy.setHeightForWidth(self.zoomButton.sizePolicy().hasHeightForWidth()) |
|
74 |
self.zoomButton.setSizePolicy(sizePolicy) |
|
75 |
self.zoomButton.setObjectName("zoomButton") |
|
76 |
self.gridLayout_5.addWidget(self.zoomButton, 1, 4, 1, 1) |
|
77 |
self.penButton = QtWidgets.QPushButton(self.toolWidget) |
|
78 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum) |
|
79 |
sizePolicy.setHorizontalStretch(0) |
|
80 |
sizePolicy.setVerticalStretch(0) |
|
81 |
sizePolicy.setHeightForWidth(self.penButton.sizePolicy().hasHeightForWidth()) |
|
82 |
self.penButton.setSizePolicy(sizePolicy) |
|
83 |
self.penButton.setObjectName("penButton") |
|
84 |
self.gridLayout_5.addWidget(self.penButton, 0, 2, 1, 1) |
|
85 |
self.flipVerticalButton = QtWidgets.QPushButton(self.toolWidget) |
|
86 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum) |
|
87 |
sizePolicy.setHorizontalStretch(0) |
|
88 |
sizePolicy.setVerticalStretch(0) |
|
89 |
sizePolicy.setHeightForWidth(self.flipVerticalButton.sizePolicy().hasHeightForWidth()) |
|
90 |
self.flipVerticalButton.setSizePolicy(sizePolicy) |
|
91 |
self.flipVerticalButton.setObjectName("flipVerticalButton") |
|
92 |
self.gridLayout_5.addWidget(self.flipVerticalButton, 1, 3, 1, 1) |
|
93 |
self.handButton = QtWidgets.QPushButton(self.toolWidget) |
|
94 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum) |
|
95 |
sizePolicy.setHorizontalStretch(0) |
|
96 |
sizePolicy.setVerticalStretch(0) |
|
97 |
sizePolicy.setHeightForWidth(self.handButton.sizePolicy().hasHeightForWidth()) |
|
98 |
self.handButton.setSizePolicy(sizePolicy) |
|
99 |
self.handButton.setObjectName("handButton") |
|
100 |
self.gridLayout_5.addWidget(self.handButton, 0, 0, 1, 1) |
|
101 |
self.areaZoomButton = QtWidgets.QPushButton(self.toolWidget) |
|
102 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum) |
|
103 |
sizePolicy.setHorizontalStretch(0) |
|
104 |
sizePolicy.setVerticalStretch(0) |
|
105 |
sizePolicy.setHeightForWidth(self.areaZoomButton.sizePolicy().hasHeightForWidth()) |
|
106 |
self.areaZoomButton.setSizePolicy(sizePolicy) |
|
107 |
self.areaZoomButton.setObjectName("areaZoomButton") |
|
108 |
self.gridLayout_5.addWidget(self.areaZoomButton, 1, 5, 1, 1) |
|
109 |
self.penWidthSpinBox = QtWidgets.QSpinBox(self.toolWidget) |
|
110 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum) |
|
111 |
sizePolicy.setHorizontalStretch(0) |
|
112 |
sizePolicy.setVerticalStretch(0) |
|
113 |
sizePolicy.setHeightForWidth(self.penWidthSpinBox.sizePolicy().hasHeightForWidth()) |
|
114 |
self.penWidthSpinBox.setSizePolicy(sizePolicy) |
|
115 |
self.penWidthSpinBox.setMinimum(1) |
|
116 |
self.penWidthSpinBox.setMaximum(5) |
|
117 |
self.penWidthSpinBox.setObjectName("penWidthSpinBox") |
|
118 |
self.gridLayout_5.addWidget(self.penWidthSpinBox, 0, 3, 1, 1) |
|
119 |
self.rotateLeftButton = QtWidgets.QPushButton(self.toolWidget) |
|
120 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum) |
|
121 |
sizePolicy.setHorizontalStretch(0) |
|
122 |
sizePolicy.setVerticalStretch(0) |
|
123 |
sizePolicy.setHeightForWidth(self.rotateLeftButton.sizePolicy().hasHeightForWidth()) |
|
124 |
self.rotateLeftButton.setSizePolicy(sizePolicy) |
|
125 |
self.rotateLeftButton.setObjectName("rotateLeftButton") |
|
126 |
self.gridLayout_5.addWidget(self.rotateLeftButton, 1, 0, 1, 1) |
|
127 |
self.areaEraserButton = QtWidgets.QPushButton(self.toolWidget) |
|
128 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum) |
|
129 |
sizePolicy.setHorizontalStretch(0) |
|
130 |
sizePolicy.setVerticalStretch(0) |
|
131 |
sizePolicy.setHeightForWidth(self.areaEraserButton.sizePolicy().hasHeightForWidth()) |
|
132 |
self.areaEraserButton.setSizePolicy(sizePolicy) |
|
133 |
self.areaEraserButton.setObjectName("areaEraserButton") |
|
134 |
self.gridLayout_5.addWidget(self.areaEraserButton, 0, 7, 1, 1) |
|
135 |
self.removeTextButton = QtWidgets.QPushButton(self.toolWidget) |
|
136 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum) |
|
137 |
sizePolicy.setHorizontalStretch(0) |
|
138 |
sizePolicy.setVerticalStretch(0) |
|
139 |
sizePolicy.setHeightForWidth(self.removeTextButton.sizePolicy().hasHeightForWidth()) |
|
140 |
self.removeTextButton.setSizePolicy(sizePolicy) |
|
141 |
self.removeTextButton.setObjectName("removeTextButton") |
|
142 |
self.gridLayout_5.addWidget(self.removeTextButton, 0, 12, 1, 1) |
|
143 |
self.rotateRightButton = QtWidgets.QPushButton(self.toolWidget) |
|
144 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum) |
|
145 |
sizePolicy.setHorizontalStretch(0) |
|
146 |
sizePolicy.setVerticalStretch(0) |
|
147 |
sizePolicy.setHeightForWidth(self.rotateRightButton.sizePolicy().hasHeightForWidth()) |
|
148 |
self.rotateRightButton.setSizePolicy(sizePolicy) |
|
149 |
self.rotateRightButton.setObjectName("rotateRightButton") |
|
150 |
self.gridLayout_5.addWidget(self.rotateRightButton, 1, 1, 1, 1) |
|
151 |
self.flipHorizontalButton = QtWidgets.QPushButton(self.toolWidget) |
|
152 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum) |
|
153 |
sizePolicy.setHorizontalStretch(0) |
|
154 |
sizePolicy.setVerticalStretch(0) |
|
155 |
sizePolicy.setHeightForWidth(self.flipHorizontalButton.sizePolicy().hasHeightForWidth()) |
|
156 |
self.flipHorizontalButton.setSizePolicy(sizePolicy) |
|
157 |
self.flipHorizontalButton.setObjectName("flipHorizontalButton") |
|
158 |
self.gridLayout_5.addWidget(self.flipHorizontalButton, 1, 2, 1, 1) |
|
159 |
self.guidelineCheckbox = QtWidgets.QCheckBox(self.toolWidget) |
|
160 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum) |
|
161 |
sizePolicy.setHorizontalStretch(0) |
|
162 |
sizePolicy.setVerticalStretch(0) |
|
163 |
sizePolicy.setHeightForWidth(self.guidelineCheckbox.sizePolicy().hasHeightForWidth()) |
|
164 |
self.guidelineCheckbox.setSizePolicy(sizePolicy) |
|
165 |
self.guidelineCheckbox.setObjectName("guidelineCheckbox") |
|
166 |
self.gridLayout_5.addWidget(self.guidelineCheckbox, 1, 7, 1, 1) |
|
167 |
self.eraserSpinBox = QtWidgets.QSpinBox(self.toolWidget) |
|
168 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum) |
|
169 |
sizePolicy.setHorizontalStretch(0) |
|
170 |
sizePolicy.setVerticalStretch(0) |
|
171 |
sizePolicy.setHeightForWidth(self.eraserSpinBox.sizePolicy().hasHeightForWidth()) |
|
172 |
self.eraserSpinBox.setSizePolicy(sizePolicy) |
|
173 |
self.eraserSpinBox.setMinimum(1) |
|
174 |
self.eraserSpinBox.setMaximum(5) |
|
175 |
self.eraserSpinBox.setObjectName("eraserSpinBox") |
|
176 |
self.gridLayout_5.addWidget(self.eraserSpinBox, 0, 5, 1, 1) |
|
177 |
self.initZoomButton = QtWidgets.QPushButton(self.toolWidget) |
|
178 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum) |
|
179 |
sizePolicy.setHorizontalStretch(0) |
|
180 |
sizePolicy.setVerticalStretch(0) |
|
181 |
sizePolicy.setHeightForWidth(self.initZoomButton.sizePolicy().hasHeightForWidth()) |
|
182 |
self.initZoomButton.setSizePolicy(sizePolicy) |
|
183 |
self.initZoomButton.setObjectName("initZoomButton") |
|
184 |
self.gridLayout_5.addWidget(self.initZoomButton, 1, 6, 1, 1) |
|
185 |
self.horizontalLayout.addLayout(self.gridLayout_5) |
|
186 |
self.verticalLayout_2.addWidget(self.toolWidget) |
|
187 |
self.imageViewContainer = QtWidgets.QWidget(self.widget_3) |
|
188 |
self.imageViewContainer.setObjectName("imageViewContainer") |
|
189 |
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.imageViewContainer) |
|
190 |
self.verticalLayout_3.setObjectName("verticalLayout_3") |
|
191 |
self.imageViewerContainerLayout = QtWidgets.QVBoxLayout() |
|
192 |
self.imageViewerContainerLayout.setObjectName("imageViewerContainerLayout") |
|
193 |
self.verticalLayout_3.addLayout(self.imageViewerContainerLayout) |
|
194 |
self.verticalLayout_2.addWidget(self.imageViewContainer) |
|
195 |
self.gridLayout.addLayout(self.verticalLayout_2, 0, 0, 1, 1) |
|
196 |
self.widget = QtWidgets.QWidget(self.splitter) |
|
197 |
self.widget.setMinimumSize(QtCore.QSize(400, 0)) |
|
198 |
self.widget.setMaximumSize(QtCore.QSize(16777215, 16777215)) |
|
199 |
self.widget.setObjectName("widget") |
|
200 |
self.gridLayout_2 = QtWidgets.QGridLayout(self.widget) |
|
201 |
self.gridLayout_2.setContentsMargins(0, 0, 0, 0) |
|
202 |
self.gridLayout_2.setObjectName("gridLayout_2") |
|
203 |
self.verticalLayout = QtWidgets.QVBoxLayout() |
|
204 |
self.verticalLayout.setObjectName("verticalLayout") |
|
205 |
self.scrollArea = QtWidgets.QScrollArea(self.widget) |
|
206 |
self.scrollArea.setMinimumSize(QtCore.QSize(0, 0)) |
|
207 |
self.scrollArea.setMaximumSize(QtCore.QSize(16777215, 16777215)) |
|
208 |
self.scrollArea.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAsNeeded) |
|
209 |
self.scrollArea.setWidgetResizable(True) |
|
210 |
self.scrollArea.setObjectName("scrollArea") |
|
211 |
self.scrollAreaWidgetContents = QtWidgets.QWidget() |
|
212 |
self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 401, 680)) |
|
213 |
self.scrollAreaWidgetContents.setMinimumSize(QtCore.QSize(378, 0)) |
|
214 |
self.scrollAreaWidgetContents.setMaximumSize(QtCore.QSize(16777215, 16777215)) |
|
215 |
self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents") |
|
216 |
self.formLayout = QtWidgets.QFormLayout(self.scrollAreaWidgetContents) |
|
217 |
self.formLayout.setObjectName("formLayout") |
|
218 |
self.idLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
219 |
font = QtGui.QFont() |
|
220 |
font.setBold(True) |
|
221 |
font.setWeight(75) |
|
222 |
self.idLabel.setFont(font) |
|
223 |
self.idLabel.setObjectName("idLabel") |
|
224 |
self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.idLabel) |
|
225 |
self.idLineEdit = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) |
|
226 |
self.idLineEdit.setObjectName("idLineEdit") |
|
227 |
self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.idLineEdit) |
|
228 |
self.nameLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
229 |
font = QtGui.QFont() |
|
230 |
font.setBold(True) |
|
231 |
font.setWeight(75) |
|
232 |
self.nameLabel.setFont(font) |
|
233 |
self.nameLabel.setObjectName("nameLabel") |
|
234 |
self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.nameLabel) |
|
235 |
self.nameLineEdit = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) |
|
236 |
self.nameLineEdit.setObjectName("nameLineEdit") |
|
237 |
self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.nameLineEdit) |
|
238 |
self.thresholdLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
239 |
font = QtGui.QFont() |
|
240 |
font.setBold(True) |
|
241 |
font.setWeight(75) |
|
242 |
self.thresholdLabel.setFont(font) |
|
243 |
self.thresholdLabel.setObjectName("thresholdLabel") |
|
244 |
self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.thresholdLabel) |
|
245 |
self.thresholdLineEdit = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) |
|
246 |
self.thresholdLineEdit.setObjectName("thresholdLineEdit") |
|
247 |
self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.thresholdLineEdit) |
|
248 |
self.minMatchPointLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
249 |
font = QtGui.QFont() |
|
250 |
font.setBold(True) |
|
251 |
font.setWeight(75) |
|
252 |
self.minMatchPointLabel.setFont(font) |
|
253 |
self.minMatchPointLabel.setObjectName("minMatchPointLabel") |
|
254 |
self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.minMatchPointLabel) |
|
255 |
self.minMatchPointLineEdit = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) |
|
256 |
self.minMatchPointLineEdit.setObjectName("minMatchPointLineEdit") |
|
257 |
self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.minMatchPointLineEdit) |
|
258 |
self.rotationCountLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
259 |
font = QtGui.QFont() |
|
260 |
font.setBold(True) |
|
261 |
font.setWeight(75) |
|
262 |
self.rotationCountLabel.setFont(font) |
|
263 |
self.rotationCountLabel.setObjectName("rotationCountLabel") |
|
264 |
self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.rotationCountLabel) |
|
265 |
self.rotationCountSpinBox = QtWidgets.QSpinBox(self.scrollAreaWidgetContents) |
|
266 |
self.rotationCountSpinBox.setMinimum(0) |
|
267 |
self.rotationCountSpinBox.setMaximum(3) |
|
268 |
self.rotationCountSpinBox.setProperty("value", 0) |
|
269 |
self.rotationCountSpinBox.setObjectName("rotationCountSpinBox") |
|
270 |
self.formLayout.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.rotationCountSpinBox) |
|
271 |
self.isContainChildLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
272 |
font = QtGui.QFont() |
|
273 |
font.setBold(True) |
|
274 |
font.setWeight(75) |
|
275 |
self.isContainChildLabel.setFont(font) |
|
276 |
self.isContainChildLabel.setObjectName("isContainChildLabel") |
|
277 |
self.formLayout.setWidget(5, QtWidgets.QFormLayout.LabelRole, self.isContainChildLabel) |
|
278 |
self.isContainChildCheckBox = QtWidgets.QCheckBox(self.scrollAreaWidgetContents) |
|
279 |
self.isContainChildCheckBox.setText("") |
|
280 |
self.isContainChildCheckBox.setCheckable(True) |
|
281 |
self.isContainChildCheckBox.setObjectName("isContainChildCheckBox") |
|
282 |
self.formLayout.setWidget(5, QtWidgets.QFormLayout.FieldRole, self.isContainChildCheckBox) |
|
283 |
self.typeLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
284 |
font = QtGui.QFont() |
|
285 |
font.setBold(True) |
|
286 |
font.setWeight(75) |
|
287 |
self.typeLabel.setFont(font) |
|
288 |
self.typeLabel.setObjectName("typeLabel") |
|
289 |
self.formLayout.setWidget(6, QtWidgets.QFormLayout.LabelRole, self.typeLabel) |
|
290 |
self.typeComboBox = QtWidgets.QComboBox(self.scrollAreaWidgetContents) |
|
291 |
self.typeComboBox.setObjectName("typeComboBox") |
|
292 |
self.formLayout.setWidget(6, QtWidgets.QFormLayout.FieldRole, self.typeComboBox) |
|
293 |
self.baseSymbolLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
294 |
font = QtGui.QFont() |
|
295 |
font.setBold(True) |
|
296 |
font.setWeight(75) |
|
297 |
self.baseSymbolLabel.setFont(font) |
|
298 |
self.baseSymbolLabel.setObjectName("baseSymbolLabel") |
|
299 |
self.formLayout.setWidget(7, QtWidgets.QFormLayout.LabelRole, self.baseSymbolLabel) |
|
300 |
self.baseSymbolComboBox = QtWidgets.QComboBox(self.scrollAreaWidgetContents) |
|
301 |
self.baseSymbolComboBox.setObjectName("baseSymbolComboBox") |
|
302 |
self.formLayout.setWidget(7, QtWidgets.QFormLayout.FieldRole, self.baseSymbolComboBox) |
|
303 |
self.additionalSymbolLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
304 |
font = QtGui.QFont() |
|
305 |
font.setBold(True) |
|
306 |
font.setWeight(75) |
|
307 |
self.additionalSymbolLabel.setFont(font) |
|
308 |
self.additionalSymbolLabel.setObjectName("additionalSymbolLabel") |
|
309 |
self.formLayout.setWidget(8, QtWidgets.QFormLayout.LabelRole, self.additionalSymbolLabel) |
|
310 |
self.horizontalLayout_2 = QtWidgets.QHBoxLayout() |
|
311 |
self.horizontalLayout_2.setObjectName("horizontalLayout_2") |
|
312 |
self.defaultSymbolDirectionComboBox = QtWidgets.QComboBox(self.scrollAreaWidgetContents) |
|
313 |
self.defaultSymbolDirectionComboBox.setMaximumSize(QtCore.QSize(50, 16777215)) |
|
314 |
self.defaultSymbolDirectionComboBox.setObjectName("defaultSymbolDirectionComboBox") |
|
315 |
self.horizontalLayout_2.addWidget(self.defaultSymbolDirectionComboBox) |
|
316 |
self.additionalSymbolComboBox = QtWidgets.QComboBox(self.scrollAreaWidgetContents) |
|
317 |
self.additionalSymbolComboBox.setObjectName("additionalSymbolComboBox") |
|
318 |
self.horizontalLayout_2.addWidget(self.additionalSymbolComboBox) |
|
319 |
self.addAdditionalSymbolButton = QtWidgets.QPushButton(self.scrollAreaWidgetContents) |
|
320 |
self.addAdditionalSymbolButton.setMaximumSize(QtCore.QSize(40, 16777215)) |
|
321 |
self.addAdditionalSymbolButton.setObjectName("addAdditionalSymbolButton") |
|
322 |
self.horizontalLayout_2.addWidget(self.addAdditionalSymbolButton) |
|
323 |
self.formLayout.setLayout(8, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_2) |
|
324 |
self.additionalSymbolListWidget = QtWidgets.QListWidget(self.scrollAreaWidgetContents) |
|
325 |
self.additionalSymbolListWidget.setObjectName("additionalSymbolListWidget") |
|
326 |
self.formLayout.setWidget(9, QtWidgets.QFormLayout.FieldRole, self.additionalSymbolListWidget) |
|
327 |
self.originalPointLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
328 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) |
|
329 |
sizePolicy.setHorizontalStretch(0) |
|
330 |
sizePolicy.setVerticalStretch(0) |
|
331 |
sizePolicy.setHeightForWidth(self.originalPointLabel.sizePolicy().hasHeightForWidth()) |
|
332 |
self.originalPointLabel.setSizePolicy(sizePolicy) |
|
333 |
font = QtGui.QFont() |
|
334 |
font.setBold(True) |
|
335 |
font.setWeight(75) |
|
336 |
self.originalPointLabel.setFont(font) |
|
337 |
self.originalPointLabel.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter) |
|
338 |
self.originalPointLabel.setObjectName("originalPointLabel") |
|
339 |
self.formLayout.setWidget(10, QtWidgets.QFormLayout.LabelRole, self.originalPointLabel) |
|
340 |
self.horizontalLayout_4 = QtWidgets.QHBoxLayout() |
|
341 |
self.horizontalLayout_4.setObjectName("horizontalLayout_4") |
|
342 |
self.originalPointLineEdit = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) |
|
343 |
self.originalPointLineEdit.setReadOnly(True) |
|
344 |
self.originalPointLineEdit.setObjectName("originalPointLineEdit") |
|
345 |
self.horizontalLayout_4.addWidget(self.originalPointLineEdit) |
|
346 |
self.addOriginalPointButton = QtWidgets.QPushButton(self.scrollAreaWidgetContents) |
|
347 |
self.addOriginalPointButton.setMaximumSize(QtCore.QSize(40, 16777215)) |
|
348 |
self.addOriginalPointButton.setObjectName("addOriginalPointButton") |
|
349 |
self.horizontalLayout_4.addWidget(self.addOriginalPointButton) |
|
350 |
self.formLayout.setLayout(10, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_4) |
|
351 |
self.connectionPointLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
352 |
font = QtGui.QFont() |
|
353 |
font.setBold(True) |
|
354 |
font.setWeight(75) |
|
355 |
self.connectionPointLabel.setFont(font) |
|
356 |
self.connectionPointLabel.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter) |
|
357 |
self.connectionPointLabel.setObjectName("connectionPointLabel") |
|
358 |
self.formLayout.setWidget(11, QtWidgets.QFormLayout.LabelRole, self.connectionPointLabel) |
|
359 |
self.horizontalLayout_6 = QtWidgets.QHBoxLayout() |
|
360 |
self.horizontalLayout_6.setObjectName("horizontalLayout_6") |
|
361 |
self.connectionPointLineEdit = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) |
|
362 |
self.connectionPointLineEdit.setReadOnly(True) |
|
363 |
self.connectionPointLineEdit.setObjectName("connectionPointLineEdit") |
|
364 |
self.horizontalLayout_6.addWidget(self.connectionPointLineEdit) |
|
365 |
self.addConnectionPointButton = QtWidgets.QPushButton(self.scrollAreaWidgetContents) |
|
366 |
self.addConnectionPointButton.setMaximumSize(QtCore.QSize(40, 16777215)) |
|
367 |
self.addConnectionPointButton.setObjectName("addConnectionPointButton") |
|
368 |
self.horizontalLayout_6.addWidget(self.addConnectionPointButton) |
|
369 |
self.formLayout.setLayout(11, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_6) |
|
370 |
self.connectionPointList = QtWidgets.QListWidget(self.scrollAreaWidgetContents) |
|
371 |
self.connectionPointList.setObjectName("connectionPointList") |
|
372 |
self.formLayout.setWidget(12, QtWidgets.QFormLayout.FieldRole, self.connectionPointList) |
|
373 |
self.hasInstrumentLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
374 |
font = QtGui.QFont() |
|
375 |
font.setBold(True) |
|
376 |
font.setWeight(75) |
|
377 |
self.hasInstrumentLabel.setFont(font) |
|
378 |
self.hasInstrumentLabel.setObjectName("hasInstrumentLabel") |
|
379 |
self.formLayout.setWidget(13, QtWidgets.QFormLayout.LabelRole, self.hasInstrumentLabel) |
|
380 |
self.hasInstrumentLabelCheckBox = QtWidgets.QCheckBox(self.scrollAreaWidgetContents) |
|
381 |
self.hasInstrumentLabelCheckBox.setText("") |
|
382 |
self.hasInstrumentLabelCheckBox.setObjectName("hasInstrumentLabelCheckBox") |
|
383 |
self.formLayout.setWidget(13, QtWidgets.QFormLayout.FieldRole, self.hasInstrumentLabelCheckBox) |
|
384 |
self.isExceptDetectLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
385 |
font = QtGui.QFont() |
|
386 |
font.setBold(True) |
|
387 |
font.setWeight(75) |
|
388 |
self.isExceptDetectLabel.setFont(font) |
|
389 |
self.isExceptDetectLabel.setObjectName("isExceptDetectLabel") |
|
390 |
self.formLayout.setWidget(14, QtWidgets.QFormLayout.LabelRole, self.isExceptDetectLabel) |
|
391 |
self.isExceptDetectCheckBox = QtWidgets.QCheckBox(self.scrollAreaWidgetContents) |
|
392 |
self.isExceptDetectCheckBox.setText("") |
|
393 |
self.isExceptDetectCheckBox.setObjectName("isExceptDetectCheckBox") |
|
394 |
self.formLayout.setWidget(14, QtWidgets.QFormLayout.FieldRole, self.isExceptDetectCheckBox) |
|
395 |
self.immediateInsertLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
396 |
font = QtGui.QFont() |
|
397 |
font.setBold(True) |
|
398 |
font.setWeight(75) |
|
399 |
self.immediateInsertLabel.setFont(font) |
|
400 |
self.immediateInsertLabel.setObjectName("immediateInsertLabel") |
|
401 |
self.formLayout.setWidget(15, QtWidgets.QFormLayout.LabelRole, self.immediateInsertLabel) |
|
402 |
self.immediateInsertCheckBox = QtWidgets.QCheckBox(self.scrollAreaWidgetContents) |
|
403 |
self.immediateInsertCheckBox.setText("") |
|
404 |
self.immediateInsertCheckBox.setObjectName("immediateInsertCheckBox") |
|
405 |
self.formLayout.setWidget(15, QtWidgets.QFormLayout.FieldRole, self.immediateInsertCheckBox) |
|
406 |
self.buttonBox = QtWidgets.QDialogButtonBox(self.scrollAreaWidgetContents) |
|
407 |
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Close|QtWidgets.QDialogButtonBox.Save) |
|
408 |
self.buttonBox.setObjectName("buttonBox") |
|
409 |
self.formLayout.setWidget(16, QtWidgets.QFormLayout.SpanningRole, self.buttonBox) |
|
410 |
self.scrollArea.setWidget(self.scrollAreaWidgetContents) |
|
411 |
self.verticalLayout.addWidget(self.scrollArea) |
|
412 |
self.gridLayout_2.addLayout(self.verticalLayout, 0, 0, 1, 1) |
|
413 |
self.gridLayout_3.addWidget(self.splitter, 0, 0, 1, 1) |
|
414 |
|
|
415 |
self.retranslateUi(Dialog) |
|
416 |
self.buttonBox.accepted.connect(Dialog.accept) |
|
417 |
self.buttonBox.rejected.connect(Dialog.reject) |
|
418 |
QtCore.QMetaObject.connectSlotsByName(Dialog) |
|
419 |
|
|
420 |
def retranslateUi(self, Dialog): |
|
421 |
_translate = QtCore.QCoreApplication.translate |
|
422 |
Dialog.setWindowTitle(_translate("Dialog", "Dialog")) |
|
423 |
self.cropButton.setText(_translate("Dialog", "Crop")) |
|
424 |
self.eraserButton.setText(_translate("Dialog", "Eraser")) |
|
425 |
self.fitImageButton.setText(_translate("Dialog", "Fit Image")) |
|
426 |
self.zoomButton.setText(_translate("Dialog", "Zoom")) |
|
427 |
self.penButton.setText(_translate("Dialog", "Pen")) |
|
428 |
self.flipVerticalButton.setText(_translate("Dialog", "Flip Vertical")) |
|
429 |
self.handButton.setText(_translate("Dialog", "Hand")) |
|
430 |
self.areaZoomButton.setText(_translate("Dialog", "Area Zoom")) |
|
431 |
self.rotateLeftButton.setText(_translate("Dialog", "Rotate Left")) |
|
432 |
self.areaEraserButton.setText(_translate("Dialog", "Area Eraser")) |
|
433 |
self.removeTextButton.setText(_translate("Dialog", "Remove Text")) |
|
434 |
self.rotateRightButton.setText(_translate("Dialog", "Rotate Right")) |
|
435 |
self.flipHorizontalButton.setText(_translate("Dialog", "Flip Horizontal")) |
|
436 |
self.guidelineCheckbox.setText(_translate("Dialog", "Show Guideline")) |
|
437 |
self.initZoomButton.setText(_translate("Dialog", "Init Zoom")) |
|
438 |
self.idLabel.setText(_translate("Dialog", "ID")) |
|
439 |
self.nameLabel.setText(_translate("Dialog", "심볼명")) |
|
440 |
self.thresholdLabel.setText(_translate("Dialog", "임계값(%)")) |
|
441 |
self.minMatchPointLabel.setText(_translate("Dialog", "최소 특징점 개수")) |
|
442 |
self.rotationCountLabel.setText(_translate("Dialog", "검출 시 심볼 회전수")) |
|
443 |
self.isContainChildLabel.setText(_translate("Dialog", "자식 심볼 포함 여부")) |
|
444 |
self.typeLabel.setText(_translate("Dialog", "심볼 타입")) |
|
445 |
self.baseSymbolLabel.setText(_translate("Dialog", "기초 심볼")) |
|
446 |
self.additionalSymbolLabel.setText(_translate("Dialog", "부가 심볼")) |
|
447 |
self.addAdditionalSymbolButton.setText(_translate("Dialog", "추가")) |
|
448 |
self.originalPointLabel.setText(_translate("Dialog", "Original Point")) |
|
449 |
self.addOriginalPointButton.setText(_translate("Dialog", "추가")) |
|
450 |
self.connectionPointLabel.setText(_translate("Dialog", "Connection Point")) |
|
451 |
self.addConnectionPointButton.setText(_translate("Dialog", "추가")) |
|
452 |
self.hasInstrumentLabel.setText(_translate("Dialog", "Ins\'t 라벨 포함 여부")) |
|
453 |
self.isExceptDetectLabel.setText(_translate("Dialog", "검출 미포함 여부")) |
|
454 |
self.immediateInsertLabel.setText(_translate("Dialog", "즉시 삽입 여부\n" |
|
455 |
"(심볼 생성 시)")) |
|
456 |
|
|
457 |
|
|
458 |
if __name__ == "__main__": |
|
459 |
import sys |
|
460 |
app = QtWidgets.QApplication(sys.argv) |
|
461 |
Dialog = QtWidgets.QDialog() |
|
462 |
ui = Ui_Dialog() |
|
463 |
ui.setupUi(Dialog) |
|
464 |
Dialog.show() |
|
465 |
sys.exit(app.exec_()) |
|
466 |
|
내보내기 Unified diff