개정판 dceb401c
recreate UI_SymbolEditor.py #477
DTI_PID/DTI_PID/SymbolEditor_UI.py | ||
---|---|---|
1 | 1 |
# -*- coding: utf-8 -*- |
2 | 2 |
|
3 |
# Form implementation generated from reading ui file 'D:\Projects\DTIPID\DTI_PID\DTI_PID\UI\SymbolEditor.ui'
|
|
3 |
# Form implementation generated from reading ui file './ui/SymbolEditor.ui'
|
|
4 | 4 |
# |
5 | 5 |
# Created by: PyQt5 UI code generator 5.10.1 |
6 | 6 |
# |
... | ... | |
209 | 209 |
self.scrollArea.setWidgetResizable(True) |
210 | 210 |
self.scrollArea.setObjectName("scrollArea") |
211 | 211 |
self.scrollAreaWidgetContents = QtWidgets.QWidget() |
212 |
self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 409, 651))
|
|
212 |
self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 410, 651))
|
|
213 | 213 |
self.scrollAreaWidgetContents.setMinimumSize(QtCore.QSize(378, 0)) |
214 | 214 |
self.scrollAreaWidgetContents.setMaximumSize(QtCore.QSize(16777215, 16777215)) |
215 | 215 |
self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents") |
... | ... | |
222 | 222 |
self.formLayout.setFormAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop) |
223 | 223 |
self.formLayout.setContentsMargins(6, 6, 6, 6) |
224 | 224 |
self.formLayout.setObjectName("formLayout") |
225 |
self.idLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
226 |
font = QtGui.QFont() |
|
227 |
font.setBold(True) |
|
228 |
font.setWeight(75) |
|
229 |
self.idLabel.setFont(font) |
|
230 |
self.idLabel.setObjectName("idLabel") |
|
231 |
self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.idLabel) |
|
232 |
self.idLineEdit = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) |
|
233 |
self.idLineEdit.setObjectName("idLineEdit") |
|
234 |
self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.idLineEdit) |
|
235 | 225 |
self.nameLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
236 | 226 |
font = QtGui.QFont() |
237 | 227 |
font.setBold(True) |
238 | 228 |
font.setWeight(75) |
239 | 229 |
self.nameLabel.setFont(font) |
240 | 230 |
self.nameLabel.setObjectName("nameLabel") |
241 |
self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.nameLabel)
|
|
231 |
self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.nameLabel)
|
|
242 | 232 |
self.nameLineEdit = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) |
243 | 233 |
self.nameLineEdit.setObjectName("nameLineEdit") |
244 |
self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.nameLineEdit)
|
|
234 |
self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.nameLineEdit)
|
|
245 | 235 |
self.thresholdLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
246 | 236 |
font = QtGui.QFont() |
247 | 237 |
font.setBold(True) |
248 | 238 |
font.setWeight(75) |
249 | 239 |
self.thresholdLabel.setFont(font) |
250 | 240 |
self.thresholdLabel.setObjectName("thresholdLabel") |
251 |
self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.thresholdLabel)
|
|
241 |
self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.thresholdLabel)
|
|
252 | 242 |
self.thresholdLineEdit = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) |
253 | 243 |
self.thresholdLineEdit.setObjectName("thresholdLineEdit") |
254 |
self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.thresholdLineEdit)
|
|
244 |
self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.thresholdLineEdit)
|
|
255 | 245 |
self.minMatchPointLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
256 | 246 |
font = QtGui.QFont() |
257 | 247 |
font.setBold(True) |
258 | 248 |
font.setWeight(75) |
259 | 249 |
self.minMatchPointLabel.setFont(font) |
260 | 250 |
self.minMatchPointLabel.setObjectName("minMatchPointLabel") |
261 |
self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.minMatchPointLabel)
|
|
251 |
self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.minMatchPointLabel)
|
|
262 | 252 |
self.minMatchPointLineEdit = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) |
263 | 253 |
self.minMatchPointLineEdit.setObjectName("minMatchPointLineEdit") |
264 |
self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.minMatchPointLineEdit)
|
|
254 |
self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.minMatchPointLineEdit)
|
|
265 | 255 |
self.rotationCountLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
266 | 256 |
font = QtGui.QFont() |
267 | 257 |
font.setBold(True) |
268 | 258 |
font.setWeight(75) |
269 | 259 |
self.rotationCountLabel.setFont(font) |
270 | 260 |
self.rotationCountLabel.setObjectName("rotationCountLabel") |
271 |
self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.rotationCountLabel)
|
|
261 |
self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.rotationCountLabel)
|
|
272 | 262 |
self.rotationCountSpinBox = QtWidgets.QSpinBox(self.scrollAreaWidgetContents) |
273 | 263 |
self.rotationCountSpinBox.setMinimum(0) |
274 | 264 |
self.rotationCountSpinBox.setMaximum(3) |
275 | 265 |
self.rotationCountSpinBox.setProperty("value", 0) |
276 | 266 |
self.rotationCountSpinBox.setObjectName("rotationCountSpinBox") |
277 |
self.formLayout.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.rotationCountSpinBox)
|
|
267 |
self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.rotationCountSpinBox)
|
|
278 | 268 |
self.isContainChildLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
279 | 269 |
font = QtGui.QFont() |
280 | 270 |
font.setBold(True) |
281 | 271 |
font.setWeight(75) |
282 | 272 |
self.isContainChildLabel.setFont(font) |
283 | 273 |
self.isContainChildLabel.setObjectName("isContainChildLabel") |
284 |
self.formLayout.setWidget(5, QtWidgets.QFormLayout.LabelRole, self.isContainChildLabel)
|
|
274 |
self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.isContainChildLabel)
|
|
285 | 275 |
self.isContainChildCheckBox = QtWidgets.QCheckBox(self.scrollAreaWidgetContents) |
286 | 276 |
self.isContainChildCheckBox.setText("") |
287 | 277 |
self.isContainChildCheckBox.setCheckable(True) |
288 | 278 |
self.isContainChildCheckBox.setObjectName("isContainChildCheckBox") |
289 |
self.formLayout.setWidget(5, QtWidgets.QFormLayout.FieldRole, self.isContainChildCheckBox)
|
|
279 |
self.formLayout.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.isContainChildCheckBox)
|
|
290 | 280 |
self.typeLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
291 | 281 |
font = QtGui.QFont() |
292 | 282 |
font.setBold(True) |
293 | 283 |
font.setWeight(75) |
294 | 284 |
self.typeLabel.setFont(font) |
295 | 285 |
self.typeLabel.setObjectName("typeLabel") |
296 |
self.formLayout.setWidget(6, QtWidgets.QFormLayout.LabelRole, self.typeLabel)
|
|
286 |
self.formLayout.setWidget(5, QtWidgets.QFormLayout.LabelRole, self.typeLabel)
|
|
297 | 287 |
self.typeComboBox = QtWidgets.QComboBox(self.scrollAreaWidgetContents) |
298 | 288 |
self.typeComboBox.setObjectName("typeComboBox") |
299 |
self.formLayout.setWidget(6, QtWidgets.QFormLayout.FieldRole, self.typeComboBox)
|
|
289 |
self.formLayout.setWidget(5, QtWidgets.QFormLayout.FieldRole, self.typeComboBox)
|
|
300 | 290 |
self.baseSymbolLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
301 | 291 |
font = QtGui.QFont() |
302 | 292 |
font.setBold(True) |
303 | 293 |
font.setWeight(75) |
304 | 294 |
self.baseSymbolLabel.setFont(font) |
305 | 295 |
self.baseSymbolLabel.setObjectName("baseSymbolLabel") |
306 |
self.formLayout.setWidget(7, QtWidgets.QFormLayout.LabelRole, self.baseSymbolLabel)
|
|
296 |
self.formLayout.setWidget(6, QtWidgets.QFormLayout.LabelRole, self.baseSymbolLabel)
|
|
307 | 297 |
self.baseSymbolComboBox = QtWidgets.QComboBox(self.scrollAreaWidgetContents) |
308 | 298 |
self.baseSymbolComboBox.setObjectName("baseSymbolComboBox") |
309 |
self.formLayout.setWidget(7, QtWidgets.QFormLayout.FieldRole, self.baseSymbolComboBox)
|
|
299 |
self.formLayout.setWidget(6, QtWidgets.QFormLayout.FieldRole, self.baseSymbolComboBox)
|
|
310 | 300 |
self.additionalSymbolLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
311 | 301 |
font = QtGui.QFont() |
312 | 302 |
font.setBold(True) |
313 | 303 |
font.setWeight(75) |
314 | 304 |
self.additionalSymbolLabel.setFont(font) |
315 | 305 |
self.additionalSymbolLabel.setObjectName("additionalSymbolLabel") |
316 |
self.formLayout.setWidget(8, QtWidgets.QFormLayout.LabelRole, self.additionalSymbolLabel)
|
|
306 |
self.formLayout.setWidget(7, QtWidgets.QFormLayout.LabelRole, self.additionalSymbolLabel)
|
|
317 | 307 |
self.horizontalLayout_2 = QtWidgets.QHBoxLayout() |
318 | 308 |
self.horizontalLayout_2.setObjectName("horizontalLayout_2") |
319 | 309 |
self.defaultSymbolDirectionComboBox = QtWidgets.QComboBox(self.scrollAreaWidgetContents) |
... | ... | |
327 | 317 |
self.addAdditionalSymbolButton.setMaximumSize(QtCore.QSize(40, 16777215)) |
328 | 318 |
self.addAdditionalSymbolButton.setObjectName("addAdditionalSymbolButton") |
329 | 319 |
self.horizontalLayout_2.addWidget(self.addAdditionalSymbolButton) |
330 |
self.formLayout.setLayout(8, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_2)
|
|
320 |
self.formLayout.setLayout(7, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_2)
|
|
331 | 321 |
self.additionalSymbolListWidget = QtWidgets.QListWidget(self.scrollAreaWidgetContents) |
332 | 322 |
self.additionalSymbolListWidget.setObjectName("additionalSymbolListWidget") |
333 |
self.formLayout.setWidget(9, QtWidgets.QFormLayout.FieldRole, self.additionalSymbolListWidget)
|
|
323 |
self.formLayout.setWidget(8, QtWidgets.QFormLayout.FieldRole, self.additionalSymbolListWidget)
|
|
334 | 324 |
self.originalPointLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
335 | 325 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) |
336 | 326 |
sizePolicy.setHorizontalStretch(0) |
... | ... | |
343 | 333 |
self.originalPointLabel.setFont(font) |
344 | 334 |
self.originalPointLabel.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter) |
345 | 335 |
self.originalPointLabel.setObjectName("originalPointLabel") |
346 |
self.formLayout.setWidget(10, QtWidgets.QFormLayout.LabelRole, self.originalPointLabel)
|
|
336 |
self.formLayout.setWidget(9, QtWidgets.QFormLayout.LabelRole, self.originalPointLabel)
|
|
347 | 337 |
self.horizontalLayout_4 = QtWidgets.QHBoxLayout() |
348 | 338 |
self.horizontalLayout_4.setObjectName("horizontalLayout_4") |
349 | 339 |
self.originalPointLineEdit = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) |
... | ... | |
354 | 344 |
self.addOriginalPointButton.setMaximumSize(QtCore.QSize(40, 16777215)) |
355 | 345 |
self.addOriginalPointButton.setObjectName("addOriginalPointButton") |
356 | 346 |
self.horizontalLayout_4.addWidget(self.addOriginalPointButton) |
357 |
self.formLayout.setLayout(10, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_4)
|
|
347 |
self.formLayout.setLayout(9, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_4)
|
|
358 | 348 |
self.connectionPointLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
359 | 349 |
font = QtGui.QFont() |
360 | 350 |
font.setBold(True) |
... | ... | |
362 | 352 |
self.connectionPointLabel.setFont(font) |
363 | 353 |
self.connectionPointLabel.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter) |
364 | 354 |
self.connectionPointLabel.setObjectName("connectionPointLabel") |
365 |
self.formLayout.setWidget(13, QtWidgets.QFormLayout.LabelRole, self.connectionPointLabel)
|
|
355 |
self.formLayout.setWidget(12, QtWidgets.QFormLayout.LabelRole, self.connectionPointLabel)
|
|
366 | 356 |
self.horizontalLayout_6 = QtWidgets.QHBoxLayout() |
367 | 357 |
self.horizontalLayout_6.setObjectName("horizontalLayout_6") |
368 | 358 |
self.connectionPointLineEdit = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) |
... | ... | |
373 | 363 |
self.addConnectionPointButton.setMaximumSize(QtCore.QSize(40, 16777215)) |
374 | 364 |
self.addConnectionPointButton.setObjectName("addConnectionPointButton") |
375 | 365 |
self.horizontalLayout_6.addWidget(self.addConnectionPointButton) |
376 |
self.formLayout.setLayout(13, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_6)
|
|
366 |
self.formLayout.setLayout(12, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_6)
|
|
377 | 367 |
self.connectionPointList = QtWidgets.QListWidget(self.scrollAreaWidgetContents) |
378 | 368 |
self.connectionPointList.setObjectName("connectionPointList") |
379 |
self.formLayout.setWidget(14, QtWidgets.QFormLayout.FieldRole, self.connectionPointList) |
|
369 |
self.formLayout.setWidget(13, QtWidgets.QFormLayout.FieldRole, self.connectionPointList) |
|
370 |
self.hasInstrumentLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
371 |
font = QtGui.QFont() |
|
372 |
font.setBold(True) |
|
373 |
font.setWeight(75) |
|
374 |
self.hasInstrumentLabel.setFont(font) |
|
375 |
self.hasInstrumentLabel.setObjectName("hasInstrumentLabel") |
|
376 |
self.formLayout.setWidget(14, QtWidgets.QFormLayout.LabelRole, self.hasInstrumentLabel) |
|
377 |
self.hasInstrumentLabelCheckBox = QtWidgets.QCheckBox(self.scrollAreaWidgetContents) |
|
378 |
self.hasInstrumentLabelCheckBox.setText("") |
|
379 |
self.hasInstrumentLabelCheckBox.setObjectName("hasInstrumentLabelCheckBox") |
|
380 |
self.formLayout.setWidget(14, QtWidgets.QFormLayout.FieldRole, self.hasInstrumentLabelCheckBox) |
|
380 | 381 |
self.isExceptDetectLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
381 | 382 |
font = QtGui.QFont() |
382 | 383 |
font.setBold(True) |
383 | 384 |
font.setWeight(75) |
384 | 385 |
self.isExceptDetectLabel.setFont(font) |
385 | 386 |
self.isExceptDetectLabel.setObjectName("isExceptDetectLabel") |
386 |
self.formLayout.setWidget(16, QtWidgets.QFormLayout.LabelRole, self.isExceptDetectLabel)
|
|
387 |
self.formLayout.setWidget(15, QtWidgets.QFormLayout.LabelRole, self.isExceptDetectLabel)
|
|
387 | 388 |
self.isExceptDetectCheckBox = QtWidgets.QCheckBox(self.scrollAreaWidgetContents) |
388 | 389 |
self.isExceptDetectCheckBox.setText("") |
389 | 390 |
self.isExceptDetectCheckBox.setObjectName("isExceptDetectCheckBox") |
390 |
self.formLayout.setWidget(16, QtWidgets.QFormLayout.FieldRole, self.isExceptDetectCheckBox)
|
|
391 |
self.formLayout.setWidget(15, QtWidgets.QFormLayout.FieldRole, self.isExceptDetectCheckBox)
|
|
391 | 392 |
self.immediateInsertLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
392 | 393 |
font = QtGui.QFont() |
393 | 394 |
font.setBold(True) |
394 | 395 |
font.setWeight(75) |
395 | 396 |
self.immediateInsertLabel.setFont(font) |
396 | 397 |
self.immediateInsertLabel.setObjectName("immediateInsertLabel") |
397 |
self.formLayout.setWidget(17, QtWidgets.QFormLayout.LabelRole, self.immediateInsertLabel)
|
|
398 |
self.formLayout.setWidget(16, QtWidgets.QFormLayout.LabelRole, self.immediateInsertLabel)
|
|
398 | 399 |
self.immediateInsertCheckBox = QtWidgets.QCheckBox(self.scrollAreaWidgetContents) |
399 | 400 |
self.immediateInsertCheckBox.setText("") |
400 | 401 |
self.immediateInsertCheckBox.setObjectName("immediateInsertCheckBox") |
401 |
self.formLayout.setWidget(17, QtWidgets.QFormLayout.FieldRole, self.immediateInsertCheckBox) |
|
402 |
self.hasInstrumentLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
403 |
font = QtGui.QFont() |
|
404 |
font.setBold(True) |
|
405 |
font.setWeight(75) |
|
406 |
self.hasInstrumentLabel.setFont(font) |
|
407 |
self.hasInstrumentLabel.setObjectName("hasInstrumentLabel") |
|
408 |
self.formLayout.setWidget(15, QtWidgets.QFormLayout.LabelRole, self.hasInstrumentLabel) |
|
409 |
self.hasInstrumentLabelCheckBox = QtWidgets.QCheckBox(self.scrollAreaWidgetContents) |
|
410 |
self.hasInstrumentLabelCheckBox.setText("") |
|
411 |
self.hasInstrumentLabelCheckBox.setObjectName("hasInstrumentLabelCheckBox") |
|
412 |
self.formLayout.setWidget(15, QtWidgets.QFormLayout.FieldRole, self.hasInstrumentLabelCheckBox) |
|
402 |
self.formLayout.setWidget(16, QtWidgets.QFormLayout.FieldRole, self.immediateInsertCheckBox) |
|
413 | 403 |
self.gridLayout_4.addLayout(self.formLayout, 0, 0, 1, 1) |
414 | 404 |
self.scrollArea.setWidget(self.scrollAreaWidgetContents) |
415 | 405 |
self.verticalLayout.addWidget(self.scrollArea) |
... | ... | |
443 | 433 |
self.flipHorizontalButton.setText(_translate("Dialog", "Flip Horizontal")) |
444 | 434 |
self.guidelineCheckbox.setText(_translate("Dialog", "Show Guideline")) |
445 | 435 |
self.initZoomButton.setText(_translate("Dialog", "Init Zoom")) |
446 |
self.idLabel.setText(_translate("Dialog", "ID")) |
|
447 | 436 |
self.nameLabel.setText(_translate("Dialog", "심볼명")) |
448 | 437 |
self.thresholdLabel.setText(_translate("Dialog", "임계값(%)")) |
449 | 438 |
self.minMatchPointLabel.setText(_translate("Dialog", "최소 특징점 개수")) |
... | ... | |
457 | 446 |
self.addOriginalPointButton.setText(_translate("Dialog", "추가")) |
458 | 447 |
self.connectionPointLabel.setText(_translate("Dialog", "Connection Point")) |
459 | 448 |
self.addConnectionPointButton.setText(_translate("Dialog", "추가")) |
449 |
self.hasInstrumentLabel.setText(_translate("Dialog", "Ins\'t 라벨 포함 여부")) |
|
460 | 450 |
self.isExceptDetectLabel.setText(_translate("Dialog", "검출 미포함 여부")) |
461 | 451 |
self.immediateInsertLabel.setText(_translate("Dialog", "즉시 삽입 여부\n" |
462 | 452 |
"(심볼 생성 시)")) |
463 |
self.hasInstrumentLabel.setText(_translate("Dialog", "Ins\'t 라벨 포함 여부")) |
|
464 | 453 |
|
465 | 454 |
|
466 | 455 |
if __name__ == "__main__": |
DTI_PID/DTI_PID/UI_SymbolEditor.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, 410, 651)) |
|
213 |
self.scrollAreaWidgetContents.setMinimumSize(QtCore.QSize(378, 0)) |
|
214 |
self.scrollAreaWidgetContents.setMaximumSize(QtCore.QSize(16777215, 16777215)) |
|
215 |
self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents") |
|
216 |
self.gridLayout_4 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents) |
|
217 |
self.gridLayout_4.setObjectName("gridLayout_4") |
|
218 |
self.formLayout = QtWidgets.QFormLayout() |
|
219 |
self.formLayout.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint) |
|
220 |
self.formLayout.setFieldGrowthPolicy(QtWidgets.QFormLayout.AllNonFixedFieldsGrow) |
|
221 |
self.formLayout.setLabelAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter) |
|
222 |
self.formLayout.setFormAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop) |
|
223 |
self.formLayout.setContentsMargins(6, 6, 6, 6) |
|
224 |
self.formLayout.setObjectName("formLayout") |
|
225 |
self.nameLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
226 |
font = QtGui.QFont() |
|
227 |
font.setBold(True) |
|
228 |
font.setWeight(75) |
|
229 |
self.nameLabel.setFont(font) |
|
230 |
self.nameLabel.setObjectName("nameLabel") |
|
231 |
self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.nameLabel) |
|
232 |
self.nameLineEdit = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) |
|
233 |
self.nameLineEdit.setObjectName("nameLineEdit") |
|
234 |
self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.nameLineEdit) |
|
235 |
self.thresholdLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
236 |
font = QtGui.QFont() |
|
237 |
font.setBold(True) |
|
238 |
font.setWeight(75) |
|
239 |
self.thresholdLabel.setFont(font) |
|
240 |
self.thresholdLabel.setObjectName("thresholdLabel") |
|
241 |
self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.thresholdLabel) |
|
242 |
self.thresholdLineEdit = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) |
|
243 |
self.thresholdLineEdit.setObjectName("thresholdLineEdit") |
|
244 |
self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.thresholdLineEdit) |
|
245 |
self.minMatchPointLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
246 |
font = QtGui.QFont() |
|
247 |
font.setBold(True) |
|
248 |
font.setWeight(75) |
|
249 |
self.minMatchPointLabel.setFont(font) |
|
250 |
self.minMatchPointLabel.setObjectName("minMatchPointLabel") |
|
251 |
self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.minMatchPointLabel) |
|
252 |
self.minMatchPointLineEdit = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) |
|
253 |
self.minMatchPointLineEdit.setObjectName("minMatchPointLineEdit") |
|
254 |
self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.minMatchPointLineEdit) |
|
255 |
self.rotationCountLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
256 |
font = QtGui.QFont() |
|
257 |
font.setBold(True) |
|
258 |
font.setWeight(75) |
|
259 |
self.rotationCountLabel.setFont(font) |
|
260 |
self.rotationCountLabel.setObjectName("rotationCountLabel") |
|
261 |
self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.rotationCountLabel) |
|
262 |
self.rotationCountSpinBox = QtWidgets.QSpinBox(self.scrollAreaWidgetContents) |
|
263 |
self.rotationCountSpinBox.setMinimum(0) |
|
264 |
self.rotationCountSpinBox.setMaximum(3) |
|
265 |
self.rotationCountSpinBox.setProperty("value", 0) |
|
266 |
self.rotationCountSpinBox.setObjectName("rotationCountSpinBox") |
|
267 |
self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.rotationCountSpinBox) |
|
268 |
self.isContainChildLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
269 |
font = QtGui.QFont() |
|
270 |
font.setBold(True) |
|
271 |
font.setWeight(75) |
|
272 |
self.isContainChildLabel.setFont(font) |
|
273 |
self.isContainChildLabel.setObjectName("isContainChildLabel") |
|
274 |
self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.isContainChildLabel) |
|
275 |
self.isContainChildCheckBox = QtWidgets.QCheckBox(self.scrollAreaWidgetContents) |
|
276 |
self.isContainChildCheckBox.setText("") |
|
277 |
self.isContainChildCheckBox.setCheckable(True) |
|
278 |
self.isContainChildCheckBox.setObjectName("isContainChildCheckBox") |
|
279 |
self.formLayout.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.isContainChildCheckBox) |
|
280 |
self.typeLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
281 |
font = QtGui.QFont() |
|
282 |
font.setBold(True) |
|
283 |
font.setWeight(75) |
|
284 |
self.typeLabel.setFont(font) |
|
285 |
self.typeLabel.setObjectName("typeLabel") |
|
286 |
self.formLayout.setWidget(5, QtWidgets.QFormLayout.LabelRole, self.typeLabel) |
|
287 |
self.typeComboBox = QtWidgets.QComboBox(self.scrollAreaWidgetContents) |
|
288 |
self.typeComboBox.setObjectName("typeComboBox") |
|
289 |
self.formLayout.setWidget(5, QtWidgets.QFormLayout.FieldRole, self.typeComboBox) |
|
290 |
self.baseSymbolLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
291 |
font = QtGui.QFont() |
|
292 |
font.setBold(True) |
|
293 |
font.setWeight(75) |
|
294 |
self.baseSymbolLabel.setFont(font) |
|
295 |
self.baseSymbolLabel.setObjectName("baseSymbolLabel") |
|
296 |
self.formLayout.setWidget(6, QtWidgets.QFormLayout.LabelRole, self.baseSymbolLabel) |
|
297 |
self.baseSymbolComboBox = QtWidgets.QComboBox(self.scrollAreaWidgetContents) |
|
298 |
self.baseSymbolComboBox.setObjectName("baseSymbolComboBox") |
|
299 |
self.formLayout.setWidget(6, QtWidgets.QFormLayout.FieldRole, self.baseSymbolComboBox) |
|
300 |
self.additionalSymbolLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
301 |
font = QtGui.QFont() |
|
302 |
font.setBold(True) |
|
303 |
font.setWeight(75) |
|
304 |
self.additionalSymbolLabel.setFont(font) |
|
305 |
self.additionalSymbolLabel.setObjectName("additionalSymbolLabel") |
|
306 |
self.formLayout.setWidget(7, QtWidgets.QFormLayout.LabelRole, self.additionalSymbolLabel) |
|
307 |
self.horizontalLayout_2 = QtWidgets.QHBoxLayout() |
|
308 |
self.horizontalLayout_2.setObjectName("horizontalLayout_2") |
|
309 |
self.defaultSymbolDirectionComboBox = QtWidgets.QComboBox(self.scrollAreaWidgetContents) |
|
310 |
self.defaultSymbolDirectionComboBox.setMaximumSize(QtCore.QSize(50, 16777215)) |
|
311 |
self.defaultSymbolDirectionComboBox.setObjectName("defaultSymbolDirectionComboBox") |
|
312 |
self.horizontalLayout_2.addWidget(self.defaultSymbolDirectionComboBox) |
|
313 |
self.additionalSymbolComboBox = QtWidgets.QComboBox(self.scrollAreaWidgetContents) |
|
314 |
self.additionalSymbolComboBox.setObjectName("additionalSymbolComboBox") |
|
315 |
self.horizontalLayout_2.addWidget(self.additionalSymbolComboBox) |
|
316 |
self.addAdditionalSymbolButton = QtWidgets.QPushButton(self.scrollAreaWidgetContents) |
|
317 |
self.addAdditionalSymbolButton.setMaximumSize(QtCore.QSize(40, 16777215)) |
|
318 |
self.addAdditionalSymbolButton.setObjectName("addAdditionalSymbolButton") |
|
319 |
self.horizontalLayout_2.addWidget(self.addAdditionalSymbolButton) |
|
320 |
self.formLayout.setLayout(7, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_2) |
|
321 |
self.additionalSymbolListWidget = QtWidgets.QListWidget(self.scrollAreaWidgetContents) |
|
322 |
self.additionalSymbolListWidget.setObjectName("additionalSymbolListWidget") |
|
323 |
self.formLayout.setWidget(8, QtWidgets.QFormLayout.FieldRole, self.additionalSymbolListWidget) |
|
324 |
self.originalPointLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
325 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) |
|
326 |
sizePolicy.setHorizontalStretch(0) |
|
327 |
sizePolicy.setVerticalStretch(0) |
|
328 |
sizePolicy.setHeightForWidth(self.originalPointLabel.sizePolicy().hasHeightForWidth()) |
|
329 |
self.originalPointLabel.setSizePolicy(sizePolicy) |
|
330 |
font = QtGui.QFont() |
|
331 |
font.setBold(True) |
|
332 |
font.setWeight(75) |
|
333 |
self.originalPointLabel.setFont(font) |
|
334 |
self.originalPointLabel.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter) |
|
335 |
self.originalPointLabel.setObjectName("originalPointLabel") |
|
336 |
self.formLayout.setWidget(9, QtWidgets.QFormLayout.LabelRole, self.originalPointLabel) |
|
337 |
self.horizontalLayout_4 = QtWidgets.QHBoxLayout() |
|
338 |
self.horizontalLayout_4.setObjectName("horizontalLayout_4") |
|
339 |
self.originalPointLineEdit = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) |
|
340 |
self.originalPointLineEdit.setReadOnly(True) |
|
341 |
self.originalPointLineEdit.setObjectName("originalPointLineEdit") |
|
342 |
self.horizontalLayout_4.addWidget(self.originalPointLineEdit) |
|
343 |
self.addOriginalPointButton = QtWidgets.QPushButton(self.scrollAreaWidgetContents) |
|
344 |
self.addOriginalPointButton.setMaximumSize(QtCore.QSize(40, 16777215)) |
|
345 |
self.addOriginalPointButton.setObjectName("addOriginalPointButton") |
|
346 |
self.horizontalLayout_4.addWidget(self.addOriginalPointButton) |
|
347 |
self.formLayout.setLayout(9, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_4) |
|
348 |
self.connectionPointLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
349 |
font = QtGui.QFont() |
|
350 |
font.setBold(True) |
|
351 |
font.setWeight(75) |
|
352 |
self.connectionPointLabel.setFont(font) |
|
353 |
self.connectionPointLabel.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter) |
|
354 |
self.connectionPointLabel.setObjectName("connectionPointLabel") |
|
355 |
self.formLayout.setWidget(12, QtWidgets.QFormLayout.LabelRole, self.connectionPointLabel) |
|
356 |
self.horizontalLayout_6 = QtWidgets.QHBoxLayout() |
|
357 |
self.horizontalLayout_6.setObjectName("horizontalLayout_6") |
|
358 |
self.connectionPointLineEdit = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) |
|
359 |
self.connectionPointLineEdit.setReadOnly(True) |
|
360 |
self.connectionPointLineEdit.setObjectName("connectionPointLineEdit") |
|
361 |
self.horizontalLayout_6.addWidget(self.connectionPointLineEdit) |
|
362 |
self.addConnectionPointButton = QtWidgets.QPushButton(self.scrollAreaWidgetContents) |
|
363 |
self.addConnectionPointButton.setMaximumSize(QtCore.QSize(40, 16777215)) |
|
364 |
self.addConnectionPointButton.setObjectName("addConnectionPointButton") |
|
365 |
self.horizontalLayout_6.addWidget(self.addConnectionPointButton) |
|
366 |
self.formLayout.setLayout(12, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_6) |
|
367 |
self.connectionPointList = QtWidgets.QListWidget(self.scrollAreaWidgetContents) |
|
368 |
self.connectionPointList.setObjectName("connectionPointList") |
|
369 |
self.formLayout.setWidget(13, QtWidgets.QFormLayout.FieldRole, self.connectionPointList) |
|
370 |
self.hasInstrumentLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
371 |
font = QtGui.QFont() |
|
372 |
font.setBold(True) |
|
373 |
font.setWeight(75) |
|
374 |
self.hasInstrumentLabel.setFont(font) |
|
375 |
self.hasInstrumentLabel.setObjectName("hasInstrumentLabel") |
|
376 |
self.formLayout.setWidget(14, QtWidgets.QFormLayout.LabelRole, self.hasInstrumentLabel) |
|
377 |
self.hasInstrumentLabelCheckBox = QtWidgets.QCheckBox(self.scrollAreaWidgetContents) |
|
378 |
self.hasInstrumentLabelCheckBox.setText("") |
|
379 |
self.hasInstrumentLabelCheckBox.setObjectName("hasInstrumentLabelCheckBox") |
|
380 |
self.formLayout.setWidget(14, QtWidgets.QFormLayout.FieldRole, self.hasInstrumentLabelCheckBox) |
|
381 |
self.isExceptDetectLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
382 |
font = QtGui.QFont() |
|
383 |
font.setBold(True) |
|
384 |
font.setWeight(75) |
|
385 |
self.isExceptDetectLabel.setFont(font) |
|
386 |
self.isExceptDetectLabel.setObjectName("isExceptDetectLabel") |
|
387 |
self.formLayout.setWidget(15, QtWidgets.QFormLayout.LabelRole, self.isExceptDetectLabel) |
|
388 |
self.isExceptDetectCheckBox = QtWidgets.QCheckBox(self.scrollAreaWidgetContents) |
|
389 |
self.isExceptDetectCheckBox.setText("") |
|
390 |
self.isExceptDetectCheckBox.setObjectName("isExceptDetectCheckBox") |
|
391 |
self.formLayout.setWidget(15, QtWidgets.QFormLayout.FieldRole, self.isExceptDetectCheckBox) |
|
392 |
self.immediateInsertLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
393 |
font = QtGui.QFont() |
|
394 |
font.setBold(True) |
|
395 |
font.setWeight(75) |
|
396 |
self.immediateInsertLabel.setFont(font) |
|
397 |
self.immediateInsertLabel.setObjectName("immediateInsertLabel") |
|
398 |
self.formLayout.setWidget(16, QtWidgets.QFormLayout.LabelRole, self.immediateInsertLabel) |
|
399 |
self.immediateInsertCheckBox = QtWidgets.QCheckBox(self.scrollAreaWidgetContents) |
|
400 |
self.immediateInsertCheckBox.setText("") |
|
401 |
self.immediateInsertCheckBox.setObjectName("immediateInsertCheckBox") |
|
402 |
self.formLayout.setWidget(16, QtWidgets.QFormLayout.FieldRole, self.immediateInsertCheckBox) |
|
403 |
self.gridLayout_4.addLayout(self.formLayout, 0, 0, 1, 1) |
|
404 |
self.scrollArea.setWidget(self.scrollAreaWidgetContents) |
|
405 |
self.verticalLayout.addWidget(self.scrollArea) |
|
406 |
self.buttonBox = QtWidgets.QDialogButtonBox(self.widget) |
|
407 |
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Close|QtWidgets.QDialogButtonBox.Save) |
|
408 |
self.buttonBox.setObjectName("buttonBox") |
|
409 |
self.verticalLayout.addWidget(self.buttonBox) |
|
410 |
self.gridLayout_2.addLayout(self.verticalLayout, 0, 0, 1, 1) |
|
411 |
self.gridLayout_3.addWidget(self.splitter, 0, 0, 1, 1) |
|
412 |
|
|
413 |
self.retranslateUi(Dialog) |
|
414 |
self.buttonBox.accepted.connect(Dialog.accept) |
|
415 |
self.buttonBox.rejected.connect(Dialog.reject) |
|
416 |
QtCore.QMetaObject.connectSlotsByName(Dialog) |
|
417 |
|
|
418 |
def retranslateUi(self, Dialog): |
|
419 |
_translate = QtCore.QCoreApplication.translate |
|
420 |
Dialog.setWindowTitle(_translate("Dialog", "Dialog")) |
|
421 |
self.cropButton.setText(_translate("Dialog", "Crop")) |
|
422 |
self.eraserButton.setText(_translate("Dialog", "Eraser")) |
|
423 |
self.fitImageButton.setText(_translate("Dialog", "Fit Image")) |
|
424 |
self.zoomButton.setText(_translate("Dialog", "Zoom")) |
|
425 |
self.penButton.setText(_translate("Dialog", "Pen")) |
|
426 |
self.flipVerticalButton.setText(_translate("Dialog", "Flip Vertical")) |
|
427 |
self.handButton.setText(_translate("Dialog", "Hand")) |
|
428 |
self.areaZoomButton.setText(_translate("Dialog", "Area Zoom")) |
|
429 |
self.rotateLeftButton.setText(_translate("Dialog", "Rotate Left")) |
|
430 |
self.areaEraserButton.setText(_translate("Dialog", "Area Eraser")) |
|
431 |
self.removeTextButton.setText(_translate("Dialog", "Remove Text")) |
|
432 |
self.rotateRightButton.setText(_translate("Dialog", "Rotate Right")) |
|
433 |
self.flipHorizontalButton.setText(_translate("Dialog", "Flip Horizontal")) |
|
434 |
self.guidelineCheckbox.setText(_translate("Dialog", "Show Guideline")) |
|
435 |
self.initZoomButton.setText(_translate("Dialog", "Init Zoom")) |
|
436 |
self.nameLabel.setText(_translate("Dialog", "심볼명")) |
|
437 |
self.thresholdLabel.setText(_translate("Dialog", "임계값(%)")) |
|
438 |
self.minMatchPointLabel.setText(_translate("Dialog", "최소 특징점 개수")) |
|
439 |
self.rotationCountLabel.setText(_translate("Dialog", "검출 시 심볼 회전수")) |
|
440 |
self.isContainChildLabel.setText(_translate("Dialog", "자식 심볼 포함 여부")) |
|
441 |
self.typeLabel.setText(_translate("Dialog", "심볼 타입")) |
|
442 |
self.baseSymbolLabel.setText(_translate("Dialog", "기초 심볼")) |
|
443 |
self.additionalSymbolLabel.setText(_translate("Dialog", "부가 심볼")) |
|
444 |
self.addAdditionalSymbolButton.setText(_translate("Dialog", "추가")) |
|
445 |
self.originalPointLabel.setText(_translate("Dialog", "Original Point")) |
|
446 |
self.addOriginalPointButton.setText(_translate("Dialog", "추가")) |
|
447 |
self.connectionPointLabel.setText(_translate("Dialog", "Connection Point")) |
|
448 |
self.addConnectionPointButton.setText(_translate("Dialog", "추가")) |
|
449 |
self.hasInstrumentLabel.setText(_translate("Dialog", "Ins\'t 라벨 포함 여부")) |
|
450 |
self.isExceptDetectLabel.setText(_translate("Dialog", "검출 미포함 여부")) |
|
451 |
self.immediateInsertLabel.setText(_translate("Dialog", "즉시 삽입 여부\n" |
|
452 |
"(심볼 생성 시)")) |
|
453 |
|
|
454 |
|
|
455 |
if __name__ == "__main__": |
|
456 |
import sys |
|
457 |
app = QtWidgets.QApplication(sys.argv) |
|
458 |
Dialog = QtWidgets.QDialog() |
|
459 |
ui = Ui_Dialog() |
|
460 |
ui.setupUi(Dialog) |
|
461 |
Dialog.show() |
|
462 |
sys.exit(app.exec_()) |
|
463 |
|
내보내기 Unified diff