개정판 0fabcb45
issue #103: prepare text area setting in symbol area
Change-Id: I3eae4a076d61470de7f17718f8e3e468166e1c4d
DTI_PID/DTI_PID/SymbolEditorDialog.py | ||
---|---|---|
64 | 64 |
self.offsetY = 0 |
65 | 65 |
self.newSym = None |
66 | 66 |
|
67 |
self.ui.addTextAreaButton.clicked.connect(self.onSelectTextArea) |
|
68 |
self.ui.delTextAreaButton.clicked.connect(self.onDeleteTextArea) |
|
69 |
|
|
67 | 70 |
# for display image |
68 | 71 |
if display: |
69 | 72 |
self.ui.nameLineEdit.setEnabled(False) |
70 | 73 |
self.ui.spinBoxThreshold.setEnabled(False) |
71 | 74 |
self.ui.rotationCountSpinBox.setEnabled(False) |
72 |
self.ui.isContainChildCheckBox.setEnabled(False) |
|
73 |
self.ui.typeComboBox.setEnabled(False) |
|
74 |
self.ui.baseSymbolComboBox.setEnabled(False) |
|
75 |
self.ui.treeViewSymbolCategory.setEnabled(False) |
|
75 | 76 |
self.ui.spinBoxParent.setEnabled(False) |
76 | 77 |
self.ui.defaultSymbolDirectionComboBox.setEnabled(False) |
77 | 78 |
self.ui.additionalSymbolComboBox.setEnabled(False) |
... | ... | |
92 | 93 |
self.ui.flipHorizontalButton.setEnabled(False) |
93 | 94 |
self.ui.flipVerticalButton.setEnabled(False) |
94 | 95 |
self.ui.spinBoxhasInstrumentLabel.setEnabled(False) |
96 |
self.ui.textAreaListWidget.setEnabled(False) |
|
97 |
self.ui.addTextAreaButton.setEnabled(False) |
|
98 |
self.ui.delTextAreaButton.setEnabled(False) |
|
95 | 99 |
|
96 | 100 |
# unused function |
101 |
self.ui.isContainChildLabel.setHidden(True) |
|
102 |
self.ui.isContainChildCheckBox.setHidden(True) |
|
97 | 103 |
self.ui.immediateInsertLabel.setHidden(True) |
98 | 104 |
self.ui.immediateInsertCheckBox.setHidden(True) |
99 | 105 |
|
... | ... | |
108 | 114 |
sys.exc_info()[-1].tb_lineno) |
109 | 115 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
110 | 116 |
|
117 |
def onSelectTextArea(self): |
|
118 |
self._cmd.tag = self.ui.lineEditEquipmentDescArea |
|
119 |
self.parent().graphicsView.command = self._cmd |
|
120 |
|
|
121 |
def onDeleteTextArea(self): |
|
122 |
try: |
|
123 |
row = self.ui.tableWidgetEquipmentDescArea.currentRow() |
|
124 |
if row is -1: |
|
125 |
return |
|
126 |
self.removeArea(self.ui.tableWidgetEquipmentDescArea.item(row, 1).tag) |
|
127 |
self.ui.tableWidgetEquipmentDescArea.removeRow(row) |
|
128 |
except Exception as ex: |
|
129 |
from App import App |
|
130 |
from AppDocData import MessageType |
|
131 |
|
|
132 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, |
|
133 |
sys.exc_info()[-1].tb_lineno) |
|
134 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
|
135 |
|
|
111 | 136 |
def changeSymbolInfo(self): |
112 | 137 |
''' |
113 | 138 |
@brief change base and additional symbol info for already created on drawing |
... | ... | |
337 | 362 |
self.ui.treeViewSymbolCategory.selectionModel().select(index, |
338 | 363 |
QItemSelectionModel.Rows | QItemSelectionModel.Select) |
339 | 364 |
""" |
340 |
index = self.ui.treeViewSymbolCategory.model().indexFromItem(types[0]) |
|
365 |
index = self.ui.treeViewSymbolCategory.model().indexFromItem(types[0] if len(types) is 1 else types[1])
|
|
341 | 366 |
self.ui.treeViewSymbolCategory.setCurrentIndex(index) |
342 | 367 |
|
343 | 368 |
""" |
DTI_PID/DTI_PID/SymbolEditor_UI.py | ||
---|---|---|
1 | 1 |
# -*- coding: utf-8 -*- |
2 | 2 |
|
3 |
# Form implementation generated from reading ui file '.\UI\SymbolEditor.ui'
|
|
3 |
# Form implementation generated from reading ui file './UI/SymbolEditor.ui'
|
|
4 | 4 |
# |
5 |
# Created by: PyQt5 UI code generator 5.13.0
|
|
5 |
# Created by: PyQt5 UI code generator 5.11.3
|
|
6 | 6 |
# |
7 | 7 |
# WARNING! All changes made in this file will be lost! |
8 | 8 |
|
9 |
|
|
10 | 9 |
from PyQt5 import QtCore, QtGui, QtWidgets |
11 | 10 |
|
12 |
|
|
13 | 11 |
class Ui_Dialog(object): |
14 | 12 |
def setupUi(self, Dialog): |
15 | 13 |
Dialog.setObjectName("Dialog") |
... | ... | |
343 | 341 |
self.gridLayout_7 = QtWidgets.QGridLayout() |
344 | 342 |
self.gridLayout_7.setObjectName("gridLayout_7") |
345 | 343 |
self.groupBox = QtWidgets.QGroupBox(self.scrollAreaWidgetContents) |
344 |
font = QtGui.QFont() |
|
345 |
font.setBold(True) |
|
346 |
font.setWeight(75) |
|
347 |
self.groupBox.setFont(font) |
|
346 | 348 |
self.groupBox.setObjectName("groupBox") |
347 | 349 |
self.gridLayout_8 = QtWidgets.QGridLayout(self.groupBox) |
348 | 350 |
self.gridLayout_8.setObjectName("gridLayout_8") |
... | ... | |
350 | 352 |
self.treeViewSymbolCategory.setObjectName("treeViewSymbolCategory") |
351 | 353 |
self.gridLayout_8.addWidget(self.treeViewSymbolCategory, 0, 0, 1, 1) |
352 | 354 |
self.gridLayout_7.addWidget(self.groupBox, 5, 0, 1, 4) |
355 |
self.immediateInsertLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
356 |
font = QtGui.QFont() |
|
357 |
font.setBold(True) |
|
358 |
font.setWeight(75) |
|
359 |
self.immediateInsertLabel.setFont(font) |
|
360 |
self.immediateInsertLabel.setObjectName("immediateInsertLabel") |
|
361 |
self.gridLayout_7.addWidget(self.immediateInsertLabel, 15, 0, 1, 1) |
|
353 | 362 |
self.additionalSymbolLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
354 | 363 |
font = QtGui.QFont() |
355 | 364 |
font.setBold(True) |
356 | 365 |
font.setWeight(75) |
357 | 366 |
self.additionalSymbolLabel.setFont(font) |
358 | 367 |
self.additionalSymbolLabel.setObjectName("additionalSymbolLabel") |
359 |
self.gridLayout_7.addWidget(self.additionalSymbolLabel, 6, 0, 1, 1)
|
|
368 |
self.gridLayout_7.addWidget(self.additionalSymbolLabel, 8, 0, 1, 1)
|
|
360 | 369 |
self.hasInstrumentLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
361 | 370 |
font = QtGui.QFont() |
362 | 371 |
font.setBold(True) |
363 | 372 |
font.setWeight(75) |
364 | 373 |
self.hasInstrumentLabel.setFont(font) |
365 | 374 |
self.hasInstrumentLabel.setObjectName("hasInstrumentLabel") |
366 |
self.gridLayout_7.addWidget(self.hasInstrumentLabel, 11, 0, 1, 1)
|
|
367 |
self.immediateInsertLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents)
|
|
375 |
self.gridLayout_7.addWidget(self.hasInstrumentLabel, 13, 0, 1, 1)
|
|
376 |
self.thresholdLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents)
|
|
368 | 377 |
font = QtGui.QFont() |
369 | 378 |
font.setBold(True) |
370 | 379 |
font.setWeight(75) |
371 |
self.immediateInsertLabel.setFont(font) |
|
372 |
self.immediateInsertLabel.setObjectName("immediateInsertLabel") |
|
373 |
self.gridLayout_7.addWidget(self.immediateInsertLabel, 13, 0, 1, 1) |
|
380 |
self.thresholdLabel.setFont(font) |
|
381 |
self.thresholdLabel.setObjectName("thresholdLabel") |
|
382 |
self.gridLayout_7.addWidget(self.thresholdLabel, 1, 0, 1, 1) |
|
383 |
self.rotationCountLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
384 |
font = QtGui.QFont() |
|
385 |
font.setBold(True) |
|
386 |
font.setWeight(75) |
|
387 |
self.rotationCountLabel.setFont(font) |
|
388 |
self.rotationCountLabel.setObjectName("rotationCountLabel") |
|
389 |
self.gridLayout_7.addWidget(self.rotationCountLabel, 3, 0, 1, 1) |
|
390 |
self.makeFlipLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
391 |
font = QtGui.QFont() |
|
392 |
font.setBold(True) |
|
393 |
font.setWeight(75) |
|
394 |
self.makeFlipLabel.setFont(font) |
|
395 |
self.makeFlipLabel.setObjectName("makeFlipLabel") |
|
396 |
self.gridLayout_7.addWidget(self.makeFlipLabel, 16, 0, 1, 1) |
|
397 |
self.pushButtonDelConnPt = QtWidgets.QPushButton(self.scrollAreaWidgetContents) |
|
398 |
self.pushButtonDelConnPt.setMinimumSize(QtCore.QSize(40, 0)) |
|
399 |
self.pushButtonDelConnPt.setMaximumSize(QtCore.QSize(40, 16777215)) |
|
400 |
self.pushButtonDelConnPt.setObjectName("pushButtonDelConnPt") |
|
401 |
self.gridLayout_7.addWidget(self.pushButtonDelConnPt, 11, 3, 1, 1) |
|
402 |
self.addConnectionPointButton = QtWidgets.QPushButton(self.scrollAreaWidgetContents) |
|
403 |
self.addConnectionPointButton.setMinimumSize(QtCore.QSize(40, 0)) |
|
404 |
self.addConnectionPointButton.setMaximumSize(QtCore.QSize(40, 16777215)) |
|
405 |
self.addConnectionPointButton.setObjectName("addConnectionPointButton") |
|
406 |
self.gridLayout_7.addWidget(self.addConnectionPointButton, 11, 2, 1, 1) |
|
407 |
self.addOriginalPointButton = QtWidgets.QPushButton(self.scrollAreaWidgetContents) |
|
408 |
self.addOriginalPointButton.setMaximumSize(QtCore.QSize(40, 16777215)) |
|
409 |
self.addOriginalPointButton.setObjectName("addOriginalPointButton") |
|
410 |
self.gridLayout_7.addWidget(self.addOriginalPointButton, 10, 2, 1, 1) |
|
411 |
self.connectionPointLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
412 |
font = QtGui.QFont() |
|
413 |
font.setBold(True) |
|
414 |
font.setWeight(75) |
|
415 |
self.connectionPointLabel.setFont(font) |
|
416 |
self.connectionPointLabel.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter) |
|
417 |
self.connectionPointLabel.setObjectName("connectionPointLabel") |
|
418 |
self.gridLayout_7.addWidget(self.connectionPointLabel, 11, 0, 1, 1) |
|
419 |
self.rotationCountSpinBox = QtWidgets.QSpinBox(self.scrollAreaWidgetContents) |
|
420 |
self.rotationCountSpinBox.setMinimum(0) |
|
421 |
self.rotationCountSpinBox.setMaximum(270) |
|
422 |
self.rotationCountSpinBox.setSingleStep(90) |
|
423 |
self.rotationCountSpinBox.setProperty("value", 0) |
|
424 |
self.rotationCountSpinBox.setObjectName("rotationCountSpinBox") |
|
425 |
self.gridLayout_7.addWidget(self.rotationCountSpinBox, 3, 1, 1, 3) |
|
426 |
self.pushButtonChange = QtWidgets.QPushButton(self.scrollAreaWidgetContents) |
|
427 |
self.pushButtonChange.setObjectName("pushButtonChange") |
|
428 |
self.gridLayout_7.addWidget(self.pushButtonChange, 18, 1, 1, 3) |
|
429 |
self.minMatchPointLineEdit = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) |
|
430 |
self.minMatchPointLineEdit.setEnabled(False) |
|
431 |
self.minMatchPointLineEdit.setObjectName("minMatchPointLineEdit") |
|
432 |
self.gridLayout_7.addWidget(self.minMatchPointLineEdit, 2, 1, 1, 3) |
|
433 |
self.isContainChildCheckBox = QtWidgets.QCheckBox(self.scrollAreaWidgetContents) |
|
434 |
self.isContainChildCheckBox.setText("") |
|
435 |
self.isContainChildCheckBox.setCheckable(True) |
|
436 |
self.isContainChildCheckBox.setObjectName("isContainChildCheckBox") |
|
437 |
self.gridLayout_7.addWidget(self.isContainChildCheckBox, 4, 1, 1, 3) |
|
438 |
self.isExceptDetectCheckBox = QtWidgets.QCheckBox(self.scrollAreaWidgetContents) |
|
439 |
self.isExceptDetectCheckBox.setText("") |
|
440 |
self.isExceptDetectCheckBox.setObjectName("isExceptDetectCheckBox") |
|
441 |
self.gridLayout_7.addWidget(self.isExceptDetectCheckBox, 14, 1, 1, 3) |
|
442 |
self.nameLineEdit = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) |
|
443 |
self.nameLineEdit.setObjectName("nameLineEdit") |
|
444 |
self.gridLayout_7.addWidget(self.nameLineEdit, 0, 1, 1, 3) |
|
445 |
self.label_3 = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
446 |
font = QtGui.QFont() |
|
447 |
font.setBold(True) |
|
448 |
font.setWeight(75) |
|
449 |
self.label_3.setFont(font) |
|
450 |
self.label_3.setObjectName("label_3") |
|
451 |
self.gridLayout_7.addWidget(self.label_3, 17, 0, 1, 1) |
|
374 | 452 |
self.tableWidgetConnList = QtWidgets.QTableWidget(self.scrollAreaWidgetContents) |
375 | 453 |
self.tableWidgetConnList.setMaximumSize(QtCore.QSize(16777215, 150)) |
376 | 454 |
self.tableWidgetConnList.setObjectName("tableWidgetConnList") |
377 | 455 |
self.tableWidgetConnList.setColumnCount(0) |
378 | 456 |
self.tableWidgetConnList.setRowCount(0) |
379 | 457 |
self.tableWidgetConnList.verticalHeader().setVisible(False) |
380 |
self.gridLayout_7.addWidget(self.tableWidgetConnList, 10, 1, 1, 3) |
|
381 |
self.immediateInsertCheckBox = QtWidgets.QCheckBox(self.scrollAreaWidgetContents) |
|
382 |
self.immediateInsertCheckBox.setText("") |
|
383 |
self.immediateInsertCheckBox.setObjectName("immediateInsertCheckBox") |
|
384 |
self.gridLayout_7.addWidget(self.immediateInsertCheckBox, 13, 1, 1, 1) |
|
385 |
self.spinBoxhasInstrumentLabel = QtWidgets.QSpinBox(self.scrollAreaWidgetContents) |
|
386 |
self.spinBoxhasInstrumentLabel.setMaximum(10) |
|
387 |
self.spinBoxhasInstrumentLabel.setObjectName("spinBoxhasInstrumentLabel") |
|
388 |
self.gridLayout_7.addWidget(self.spinBoxhasInstrumentLabel, 11, 1, 1, 1) |
|
389 |
self.label_4 = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
390 |
font = QtGui.QFont() |
|
391 |
font.setBold(True) |
|
392 |
font.setWeight(75) |
|
393 |
self.label_4.setFont(font) |
|
394 |
self.label_4.setObjectName("label_4") |
|
395 |
self.gridLayout_7.addWidget(self.label_4, 16, 0, 1, 1) |
|
396 |
self.originalPointLineEdit = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) |
|
397 |
self.originalPointLineEdit.setReadOnly(True) |
|
398 |
self.originalPointLineEdit.setObjectName("originalPointLineEdit") |
|
399 |
self.gridLayout_7.addWidget(self.originalPointLineEdit, 8, 1, 1, 1) |
|
400 |
self.spinBoxThreshold = QtWidgets.QSpinBox(self.scrollAreaWidgetContents) |
|
401 |
self.spinBoxThreshold.setMinimum(1) |
|
402 |
self.spinBoxThreshold.setMaximum(100) |
|
403 |
self.spinBoxThreshold.setProperty("value", 75) |
|
404 |
self.spinBoxThreshold.setObjectName("spinBoxThreshold") |
|
405 |
self.gridLayout_7.addWidget(self.spinBoxThreshold, 1, 1, 1, 1) |
|
458 |
self.gridLayout_7.addWidget(self.tableWidgetConnList, 12, 1, 1, 3) |
|
406 | 459 |
self.isContainChildLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
407 | 460 |
font = QtGui.QFont() |
408 | 461 |
font.setBold(True) |
... | ... | |
410 | 463 |
self.isContainChildLabel.setFont(font) |
411 | 464 |
self.isContainChildLabel.setObjectName("isContainChildLabel") |
412 | 465 |
self.gridLayout_7.addWidget(self.isContainChildLabel, 4, 0, 1, 1) |
413 |
self.pushButtonChange = QtWidgets.QPushButton(self.scrollAreaWidgetContents) |
|
414 |
self.pushButtonChange.setObjectName("pushButtonChange") |
|
415 |
self.gridLayout_7.addWidget(self.pushButtonChange, 16, 1, 1, 1) |
|
416 |
self.isExceptDetectLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
417 |
font = QtGui.QFont() |
|
418 |
font.setBold(True) |
|
419 |
font.setWeight(75) |
|
420 |
self.isExceptDetectLabel.setFont(font) |
|
421 |
self.isExceptDetectLabel.setObjectName("isExceptDetectLabel") |
|
422 |
self.gridLayout_7.addWidget(self.isExceptDetectLabel, 12, 0, 1, 1) |
|
423 | 466 |
self.originalPointLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
424 | 467 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) |
425 | 468 |
sizePolicy.setHorizontalStretch(0) |
... | ... | |
432 | 475 |
self.originalPointLabel.setFont(font) |
433 | 476 |
self.originalPointLabel.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter) |
434 | 477 |
self.originalPointLabel.setObjectName("originalPointLabel") |
435 |
self.gridLayout_7.addWidget(self.originalPointLabel, 8, 0, 1, 1)
|
|
436 |
self.label_3 = QtWidgets.QLabel(self.scrollAreaWidgetContents)
|
|
478 |
self.gridLayout_7.addWidget(self.originalPointLabel, 10, 0, 1, 1)
|
|
479 |
self.label_4 = QtWidgets.QLabel(self.scrollAreaWidgetContents)
|
|
437 | 480 |
font = QtGui.QFont() |
438 | 481 |
font.setBold(True) |
439 | 482 |
font.setWeight(75) |
440 |
self.label_3.setFont(font) |
|
441 |
self.label_3.setObjectName("label_3") |
|
442 |
self.gridLayout_7.addWidget(self.label_3, 15, 0, 1, 1) |
|
443 |
self.connectionPointLineEdit = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) |
|
444 |
self.connectionPointLineEdit.setReadOnly(True) |
|
445 |
self.connectionPointLineEdit.setObjectName("connectionPointLineEdit") |
|
446 |
self.gridLayout_7.addWidget(self.connectionPointLineEdit, 9, 1, 1, 1) |
|
447 |
self.rotationCountSpinBox = QtWidgets.QSpinBox(self.scrollAreaWidgetContents) |
|
448 |
self.rotationCountSpinBox.setMinimum(0) |
|
449 |
self.rotationCountSpinBox.setMaximum(270) |
|
450 |
self.rotationCountSpinBox.setSingleStep(90) |
|
451 |
self.rotationCountSpinBox.setProperty("value", 0) |
|
452 |
self.rotationCountSpinBox.setObjectName("rotationCountSpinBox") |
|
453 |
self.gridLayout_7.addWidget(self.rotationCountSpinBox, 3, 1, 1, 1) |
|
454 |
self.minMatchPointLineEdit = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) |
|
455 |
self.minMatchPointLineEdit.setEnabled(False) |
|
456 |
self.minMatchPointLineEdit.setObjectName("minMatchPointLineEdit") |
|
457 |
self.gridLayout_7.addWidget(self.minMatchPointLineEdit, 2, 1, 1, 1) |
|
483 |
self.label_4.setFont(font) |
|
484 |
self.label_4.setObjectName("label_4") |
|
485 |
self.gridLayout_7.addWidget(self.label_4, 18, 0, 1, 1) |
|
458 | 486 |
self.additionalSymbolListWidget = QtWidgets.QListWidget(self.scrollAreaWidgetContents) |
459 | 487 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) |
460 | 488 |
sizePolicy.setHorizontalStretch(0) |
... | ... | |
463 | 491 |
self.additionalSymbolListWidget.setSizePolicy(sizePolicy) |
464 | 492 |
self.additionalSymbolListWidget.setMaximumSize(QtCore.QSize(16777215, 150)) |
465 | 493 |
self.additionalSymbolListWidget.setObjectName("additionalSymbolListWidget") |
466 |
self.gridLayout_7.addWidget(self.additionalSymbolListWidget, 7, 1, 1, 3)
|
|
494 |
self.gridLayout_7.addWidget(self.additionalSymbolListWidget, 9, 1, 1, 3)
|
|
467 | 495 |
self.nameLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
468 | 496 |
font = QtGui.QFont() |
469 | 497 |
font.setBold(True) |
... | ... | |
478 | 506 |
self.minMatchPointLabel.setFont(font) |
479 | 507 |
self.minMatchPointLabel.setObjectName("minMatchPointLabel") |
480 | 508 |
self.gridLayout_7.addWidget(self.minMatchPointLabel, 2, 0, 1, 1) |
481 |
self.rotationCountLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
482 |
font = QtGui.QFont() |
|
483 |
font.setBold(True) |
|
484 |
font.setWeight(75) |
|
485 |
self.rotationCountLabel.setFont(font) |
|
486 |
self.rotationCountLabel.setObjectName("rotationCountLabel") |
|
487 |
self.gridLayout_7.addWidget(self.rotationCountLabel, 3, 0, 1, 1) |
|
488 |
self.connectionPointLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
489 |
font = QtGui.QFont() |
|
490 |
font.setBold(True) |
|
491 |
font.setWeight(75) |
|
492 |
self.connectionPointLabel.setFont(font) |
|
493 |
self.connectionPointLabel.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter) |
|
494 |
self.connectionPointLabel.setObjectName("connectionPointLabel") |
|
495 |
self.gridLayout_7.addWidget(self.connectionPointLabel, 9, 0, 1, 1) |
|
496 |
self.thresholdLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
497 |
font = QtGui.QFont() |
|
498 |
font.setBold(True) |
|
499 |
font.setWeight(75) |
|
500 |
self.thresholdLabel.setFont(font) |
|
501 |
self.thresholdLabel.setObjectName("thresholdLabel") |
|
502 |
self.gridLayout_7.addWidget(self.thresholdLabel, 1, 0, 1, 1) |
|
503 |
self.addConnectionPointButton = QtWidgets.QPushButton(self.scrollAreaWidgetContents) |
|
504 |
self.addConnectionPointButton.setMinimumSize(QtCore.QSize(40, 0)) |
|
505 |
self.addConnectionPointButton.setMaximumSize(QtCore.QSize(40, 16777215)) |
|
506 |
self.addConnectionPointButton.setObjectName("addConnectionPointButton") |
|
507 |
self.gridLayout_7.addWidget(self.addConnectionPointButton, 9, 2, 1, 1) |
|
508 |
self.makeFlipCheckBox = QtWidgets.QCheckBox(self.scrollAreaWidgetContents) |
|
509 |
self.makeFlipCheckBox.setText("") |
|
510 |
self.makeFlipCheckBox.setObjectName("makeFlipCheckBox") |
|
511 |
self.gridLayout_7.addWidget(self.makeFlipCheckBox, 14, 1, 1, 1) |
|
512 |
self.nameLineEdit = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) |
|
513 |
self.nameLineEdit.setObjectName("nameLineEdit") |
|
514 |
self.gridLayout_7.addWidget(self.nameLineEdit, 0, 1, 1, 1) |
|
515 |
self.makeFlipLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
509 |
self.isExceptDetectLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
516 | 510 |
font = QtGui.QFont() |
517 | 511 |
font.setBold(True) |
518 | 512 |
font.setWeight(75) |
519 |
self.makeFlipLabel.setFont(font) |
|
520 |
self.makeFlipLabel.setObjectName("makeFlipLabel") |
|
521 |
self.gridLayout_7.addWidget(self.makeFlipLabel, 14, 0, 1, 1) |
|
513 |
self.isExceptDetectLabel.setFont(font) |
|
514 |
self.isExceptDetectLabel.setObjectName("isExceptDetectLabel") |
|
515 |
self.gridLayout_7.addWidget(self.isExceptDetectLabel, 14, 0, 1, 1) |
|
516 |
self.originalPointLineEdit = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) |
|
517 |
self.originalPointLineEdit.setReadOnly(True) |
|
518 |
self.originalPointLineEdit.setObjectName("originalPointLineEdit") |
|
519 |
self.gridLayout_7.addWidget(self.originalPointLineEdit, 10, 1, 1, 1) |
|
520 |
self.connectionPointLineEdit = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) |
|
521 |
self.connectionPointLineEdit.setReadOnly(True) |
|
522 |
self.connectionPointLineEdit.setObjectName("connectionPointLineEdit") |
|
523 |
self.gridLayout_7.addWidget(self.connectionPointLineEdit, 11, 1, 1, 1) |
|
524 |
self.spinBoxThreshold = QtWidgets.QSpinBox(self.scrollAreaWidgetContents) |
|
525 |
self.spinBoxThreshold.setMinimum(1) |
|
526 |
self.spinBoxThreshold.setMaximum(100) |
|
527 |
self.spinBoxThreshold.setProperty("value", 75) |
|
528 |
self.spinBoxThreshold.setObjectName("spinBoxThreshold") |
|
529 |
self.gridLayout_7.addWidget(self.spinBoxThreshold, 1, 1, 1, 3) |
|
522 | 530 |
self.horizontalLayout_3 = QtWidgets.QHBoxLayout() |
523 | 531 |
self.horizontalLayout_3.setObjectName("horizontalLayout_3") |
524 | 532 |
self.spinBoxParent = QtWidgets.QSpinBox(self.scrollAreaWidgetContents) |
... | ... | |
537 | 545 |
self.addAdditionalSymbolButton.setMaximumSize(QtCore.QSize(40, 16777215)) |
538 | 546 |
self.addAdditionalSymbolButton.setObjectName("addAdditionalSymbolButton") |
539 | 547 |
self.horizontalLayout_3.addWidget(self.addAdditionalSymbolButton) |
540 |
self.gridLayout_7.addLayout(self.horizontalLayout_3, 6, 1, 1, 1)
|
|
548 |
self.gridLayout_7.addLayout(self.horizontalLayout_3, 8, 1, 1, 3)
|
|
541 | 549 |
self.checkBoxChange = QtWidgets.QCheckBox(self.scrollAreaWidgetContents) |
542 | 550 |
self.checkBoxChange.setText("") |
543 | 551 |
self.checkBoxChange.setObjectName("checkBoxChange") |
544 |
self.gridLayout_7.addWidget(self.checkBoxChange, 15, 1, 1, 1) |
|
545 |
self.isContainChildCheckBox = QtWidgets.QCheckBox(self.scrollAreaWidgetContents) |
|
546 |
self.isContainChildCheckBox.setText("") |
|
547 |
self.isContainChildCheckBox.setCheckable(True) |
|
548 |
self.isContainChildCheckBox.setObjectName("isContainChildCheckBox") |
|
549 |
self.gridLayout_7.addWidget(self.isContainChildCheckBox, 4, 1, 1, 1) |
|
550 |
self.pushButtonDelConnPt = QtWidgets.QPushButton(self.scrollAreaWidgetContents) |
|
551 |
self.pushButtonDelConnPt.setMinimumSize(QtCore.QSize(40, 0)) |
|
552 |
self.pushButtonDelConnPt.setMaximumSize(QtCore.QSize(40, 16777215)) |
|
553 |
self.pushButtonDelConnPt.setObjectName("pushButtonDelConnPt") |
|
554 |
self.gridLayout_7.addWidget(self.pushButtonDelConnPt, 9, 3, 1, 1) |
|
555 |
self.isExceptDetectCheckBox = QtWidgets.QCheckBox(self.scrollAreaWidgetContents) |
|
556 |
self.isExceptDetectCheckBox.setText("") |
|
557 |
self.isExceptDetectCheckBox.setObjectName("isExceptDetectCheckBox") |
|
558 |
self.gridLayout_7.addWidget(self.isExceptDetectCheckBox, 12, 1, 1, 1) |
|
559 |
self.addOriginalPointButton = QtWidgets.QPushButton(self.scrollAreaWidgetContents) |
|
560 |
self.addOriginalPointButton.setMaximumSize(QtCore.QSize(40, 16777215)) |
|
561 |
self.addOriginalPointButton.setObjectName("addOriginalPointButton") |
|
562 |
self.gridLayout_7.addWidget(self.addOriginalPointButton, 8, 2, 1, 1) |
|
552 |
self.gridLayout_7.addWidget(self.checkBoxChange, 17, 1, 1, 3) |
|
553 |
self.makeFlipCheckBox = QtWidgets.QCheckBox(self.scrollAreaWidgetContents) |
|
554 |
self.makeFlipCheckBox.setText("") |
|
555 |
self.makeFlipCheckBox.setObjectName("makeFlipCheckBox") |
|
556 |
self.gridLayout_7.addWidget(self.makeFlipCheckBox, 16, 1, 1, 3) |
|
557 |
self.immediateInsertCheckBox = QtWidgets.QCheckBox(self.scrollAreaWidgetContents) |
|
558 |
self.immediateInsertCheckBox.setText("") |
|
559 |
self.immediateInsertCheckBox.setObjectName("immediateInsertCheckBox") |
|
560 |
self.gridLayout_7.addWidget(self.immediateInsertCheckBox, 15, 1, 1, 3) |
|
561 |
self.spinBoxhasInstrumentLabel = QtWidgets.QSpinBox(self.scrollAreaWidgetContents) |
|
562 |
self.spinBoxhasInstrumentLabel.setMaximum(1) |
|
563 |
self.spinBoxhasInstrumentLabel.setObjectName("spinBoxhasInstrumentLabel") |
|
564 |
self.gridLayout_7.addWidget(self.spinBoxhasInstrumentLabel, 13, 1, 1, 3) |
|
565 |
self.textAreaListWidget = QtWidgets.QListWidget(self.scrollAreaWidgetContents) |
|
566 |
self.textAreaListWidget.setObjectName("textAreaListWidget") |
|
567 |
self.gridLayout_7.addWidget(self.textAreaListWidget, 7, 1, 1, 3) |
|
568 |
self.textAreaLineEdit = QtWidgets.QLineEdit(self.scrollAreaWidgetContents) |
|
569 |
self.textAreaLineEdit.setObjectName("textAreaLineEdit") |
|
570 |
self.gridLayout_7.addWidget(self.textAreaLineEdit, 6, 1, 1, 1) |
|
571 |
self.label_5 = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
|
572 |
font = QtGui.QFont() |
|
573 |
font.setBold(True) |
|
574 |
font.setWeight(75) |
|
575 |
self.label_5.setFont(font) |
|
576 |
self.label_5.setObjectName("label_5") |
|
577 |
self.gridLayout_7.addWidget(self.label_5, 6, 0, 1, 1) |
|
578 |
self.addTextAreaButton = QtWidgets.QPushButton(self.scrollAreaWidgetContents) |
|
579 |
self.addTextAreaButton.setMaximumSize(QtCore.QSize(40, 16777215)) |
|
580 |
self.addTextAreaButton.setObjectName("addTextAreaButton") |
|
581 |
self.gridLayout_7.addWidget(self.addTextAreaButton, 6, 2, 1, 1) |
|
582 |
self.delTextAreaButton = QtWidgets.QPushButton(self.scrollAreaWidgetContents) |
|
583 |
self.delTextAreaButton.setMaximumSize(QtCore.QSize(40, 16777215)) |
|
584 |
self.delTextAreaButton.setObjectName("delTextAreaButton") |
|
585 |
self.gridLayout_7.addWidget(self.delTextAreaButton, 6, 3, 1, 1) |
|
563 | 586 |
self.gridLayout_4.addLayout(self.gridLayout_7, 0, 0, 1, 1) |
564 | 587 |
self.scrollArea.setWidget(self.scrollAreaWidgetContents) |
565 | 588 |
self.verticalLayout.addWidget(self.scrollArea) |
... | ... | |
601 | 624 |
self.label.setText(_translate("Dialog", "Normal Color :")) |
602 | 625 |
self.label_2.setText(_translate("Dialog", "Highlight Color :")) |
603 | 626 |
self.groupBox.setTitle(_translate("Dialog", "Base Symbol")) |
604 |
self.additionalSymbolLabel.setText(_translate("Dialog", "Addition Symbol")) |
|
605 |
self.hasInstrumentLabel.setText(_translate("Dialog", "Minimum Number of Text")) |
|
606 | 627 |
self.immediateInsertLabel.setText(_translate("Dialog", "Insert Symbol When Create")) |
607 |
self.label_4.setText(_translate("Dialog", "Symbol Info on Drawing")) |
|
608 |
self.isContainChildLabel.setText(_translate("Dialog", "Include Child Symbol")) |
|
628 |
self.additionalSymbolLabel.setText(_translate("Dialog", "Addition Symbol")) |
|
629 |
self.hasInstrumentLabel.setText(_translate("Dialog", "Include Text")) |
|
630 |
self.thresholdLabel.setText(_translate("Dialog", "Threshold(%)")) |
|
631 |
self.rotationCountLabel.setText(_translate("Dialog", "Rotation Detection Degree")) |
|
632 |
self.makeFlipLabel.setText(_translate("Dialog", "Detect Flip")) |
|
633 |
self.pushButtonDelConnPt.setText(_translate("Dialog", "Del")) |
|
634 |
self.addConnectionPointButton.setText(_translate("Dialog", "Add")) |
|
635 |
self.addOriginalPointButton.setText(_translate("Dialog", "Add")) |
|
636 |
self.connectionPointLabel.setText(_translate("Dialog", "Connection Point")) |
|
609 | 637 |
self.pushButtonChange.setText(_translate("Dialog", "Change Item on Drawing without DB Update")) |
610 |
self.isExceptDetectLabel.setText(_translate("Dialog", "Exclude")) |
|
611 |
self.originalPointLabel.setText(_translate("Dialog", "Original Point")) |
|
612 | 638 |
self.label_3.setText(_translate("Dialog", "Change Base, Additional")) |
639 |
self.isContainChildLabel.setText(_translate("Dialog", "Include Child Symbol")) |
|
640 |
self.originalPointLabel.setText(_translate("Dialog", "Original Point")) |
|
641 |
self.label_4.setText(_translate("Dialog", "Symbol Info on Drawing")) |
|
613 | 642 |
self.nameLabel.setText(_translate("Dialog", "Symbol Name")) |
614 | 643 |
self.minMatchPointLabel.setText(_translate("Dialog", "Min Feature Count")) |
615 |
self.rotationCountLabel.setText(_translate("Dialog", "Rotation Detection Degree")) |
|
616 |
self.connectionPointLabel.setText(_translate("Dialog", "Connection Point")) |
|
617 |
self.thresholdLabel.setText(_translate("Dialog", "Threshold(%)")) |
|
618 |
self.addConnectionPointButton.setText(_translate("Dialog", "Add")) |
|
619 |
self.makeFlipLabel.setText(_translate("Dialog", "Detect Flip")) |
|
644 |
self.isExceptDetectLabel.setText(_translate("Dialog", "Exclude")) |
|
620 | 645 |
self.addAdditionalSymbolButton.setText(_translate("Dialog", "Add")) |
621 |
self.pushButtonDelConnPt.setText(_translate("Dialog", "Del")) |
|
622 |
self.addOriginalPointButton.setText(_translate("Dialog", "Add")) |
|
646 |
self.label_5.setText(_translate("Dialog", "Text Area")) |
|
647 |
self.addTextAreaButton.setText(_translate("Dialog", "Add")) |
|
648 |
self.delTextAreaButton.setText(_translate("Dialog", "Del")) |
|
649 |
|
|
623 | 650 |
import MainWindow_rc |
651 |
|
|
652 |
if __name__ == "__main__": |
|
653 |
import sys |
|
654 |
app = QtWidgets.QApplication(sys.argv) |
|
655 |
Dialog = QtWidgets.QDialog() |
|
656 |
ui = Ui_Dialog() |
|
657 |
ui.setupUi(Dialog) |
|
658 |
Dialog.show() |
|
659 |
sys.exit(app.exec_()) |
|
660 |
|
DTI_PID/DTI_PID/UI/SymbolEditor.ui | ||
---|---|---|
747 | 747 |
<layout class="QGridLayout" name="gridLayout_7"> |
748 | 748 |
<item row="5" column="0" colspan="4"> |
749 | 749 |
<widget class="QGroupBox" name="groupBox"> |
750 |
<property name="font"> |
|
751 |
<font> |
|
752 |
<weight>75</weight> |
|
753 |
<bold>true</bold> |
|
754 |
</font> |
|
755 |
</property> |
|
750 | 756 |
<property name="title"> |
751 | 757 |
<string>Base Symbol</string> |
752 | 758 |
</property> |
... | ... | |
757 | 763 |
</layout> |
758 | 764 |
</widget> |
759 | 765 |
</item> |
760 |
<item row="6" column="0"> |
|
766 |
<item row="15" column="0"> |
|
767 |
<widget class="QLabel" name="immediateInsertLabel"> |
|
768 |
<property name="font"> |
|
769 |
<font> |
|
770 |
<weight>75</weight> |
|
771 |
<bold>true</bold> |
|
772 |
</font> |
|
773 |
</property> |
|
774 |
<property name="text"> |
|
775 |
<string>Insert Symbol When Create</string> |
|
776 |
</property> |
|
777 |
</widget> |
|
778 |
</item> |
|
779 |
<item row="8" column="0"> |
|
761 | 780 |
<widget class="QLabel" name="additionalSymbolLabel"> |
762 | 781 |
<property name="font"> |
763 | 782 |
<font> |
... | ... | |
770 | 789 |
</property> |
771 | 790 |
</widget> |
772 | 791 |
</item> |
773 |
<item row="11" column="0">
|
|
792 |
<item row="13" column="0">
|
|
774 | 793 |
<widget class="QLabel" name="hasInstrumentLabel"> |
775 | 794 |
<property name="font"> |
776 | 795 |
<font> |
... | ... | |
779 | 798 |
</font> |
780 | 799 |
</property> |
781 | 800 |
<property name="text"> |
782 |
<string>Minimum Number of Text</string>
|
|
801 |
<string>Include Text</string>
|
|
783 | 802 |
</property> |
784 | 803 |
</widget> |
785 | 804 |
</item> |
786 |
<item row="13" column="0">
|
|
787 |
<widget class="QLabel" name="immediateInsertLabel">
|
|
805 |
<item row="1" column="0"> |
|
806 |
<widget class="QLabel" name="thresholdLabel">
|
|
788 | 807 |
<property name="font"> |
789 | 808 |
<font> |
790 | 809 |
<weight>75</weight> |
... | ... | |
792 | 811 |
</font> |
793 | 812 |
</property> |
794 | 813 |
<property name="text"> |
795 |
<string>Insert Symbol When Create</string>
|
|
814 |
<string>Threshold(%)</string>
|
|
796 | 815 |
</property> |
797 | 816 |
</widget> |
798 | 817 |
</item> |
799 |
<item row="10" column="1" colspan="3"> |
|
800 |
<widget class="QTableWidget" name="tableWidgetConnList"> |
|
818 |
<item row="3" column="0"> |
|
819 |
<widget class="QLabel" name="rotationCountLabel"> |
|
820 |
<property name="font"> |
|
821 |
<font> |
|
822 |
<weight>75</weight> |
|
823 |
<bold>true</bold> |
|
824 |
</font> |
|
825 |
</property> |
|
826 |
<property name="text"> |
|
827 |
<string>Rotation Detection Degree</string> |
|
828 |
</property> |
|
829 |
</widget> |
|
830 |
</item> |
|
831 |
<item row="16" column="0"> |
|
832 |
<widget class="QLabel" name="makeFlipLabel"> |
|
833 |
<property name="font"> |
|
834 |
<font> |
|
835 |
<weight>75</weight> |
|
836 |
<bold>true</bold> |
|
837 |
</font> |
|
838 |
</property> |
|
839 |
<property name="text"> |
|
840 |
<string>Detect Flip</string> |
|
841 |
</property> |
|
842 |
</widget> |
|
843 |
</item> |
|
844 |
<item row="11" column="3"> |
|
845 |
<widget class="QPushButton" name="pushButtonDelConnPt"> |
|
846 |
<property name="minimumSize"> |
|
847 |
<size> |
|
848 |
<width>40</width> |
|
849 |
<height>0</height> |
|
850 |
</size> |
|
851 |
</property> |
|
801 | 852 |
<property name="maximumSize"> |
802 | 853 |
<size> |
803 |
<width>16777215</width>
|
|
804 |
<height>150</height>
|
|
854 |
<width>40</width>
|
|
855 |
<height>16777215</height>
|
|
805 | 856 |
</size> |
806 | 857 |
</property> |
807 |
<attribute name="verticalHeaderVisible">
|
|
808 |
<bool>false</bool>
|
|
809 |
</attribute>
|
|
858 |
<property name="text">
|
|
859 |
<string>Del</string>
|
|
860 |
</property>
|
|
810 | 861 |
</widget> |
811 | 862 |
</item> |
812 |
<item row="13" column="1"> |
|
813 |
<widget class="QCheckBox" name="immediateInsertCheckBox"> |
|
863 |
<item row="11" column="2"> |
|
864 |
<widget class="QPushButton" name="addConnectionPointButton"> |
|
865 |
<property name="minimumSize"> |
|
866 |
<size> |
|
867 |
<width>40</width> |
|
868 |
<height>0</height> |
|
869 |
</size> |
|
870 |
</property> |
|
871 |
<property name="maximumSize"> |
|
872 |
<size> |
|
873 |
<width>40</width> |
|
874 |
<height>16777215</height> |
|
875 |
</size> |
|
876 |
</property> |
|
814 | 877 |
<property name="text"> |
815 |
<string/>
|
|
878 |
<string>Add</string>
|
|
816 | 879 |
</property> |
817 | 880 |
</widget> |
818 | 881 |
</item> |
819 |
<item row="11" column="1"> |
|
820 |
<widget class="QSpinBox" name="spinBoxhasInstrumentLabel"> |
|
821 |
<property name="maximum"> |
|
822 |
<number>10</number> |
|
882 |
<item row="10" column="2"> |
|
883 |
<widget class="QPushButton" name="addOriginalPointButton"> |
|
884 |
<property name="maximumSize"> |
|
885 |
<size> |
|
886 |
<width>40</width> |
|
887 |
<height>16777215</height> |
|
888 |
</size> |
|
889 |
</property> |
|
890 |
<property name="text"> |
|
891 |
<string>Add</string> |
|
823 | 892 |
</property> |
824 | 893 |
</widget> |
825 | 894 |
</item> |
826 |
<item row="16" column="0">
|
|
827 |
<widget class="QLabel" name="label_4">
|
|
895 |
<item row="11" column="0">
|
|
896 |
<widget class="QLabel" name="connectionPointLabel">
|
|
828 | 897 |
<property name="font"> |
829 | 898 |
<font> |
830 | 899 |
<weight>75</weight> |
... | ... | |
832 | 901 |
</font> |
833 | 902 |
</property> |
834 | 903 |
<property name="text"> |
835 |
<string>Symbol Info on Drawing</string>
|
|
904 |
<string>Connection Point</string>
|
|
836 | 905 |
</property> |
837 |
</widget> |
|
838 |
</item> |
|
839 |
<item row="8" column="1"> |
|
840 |
<widget class="QLineEdit" name="originalPointLineEdit"> |
|
841 |
<property name="readOnly"> |
|
842 |
<bool>true</bool> |
|
906 |
<property name="alignment"> |
|
907 |
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> |
|
843 | 908 |
</property> |
844 | 909 |
</widget> |
845 | 910 |
</item> |
846 |
<item row="1" column="1">
|
|
847 |
<widget class="QSpinBox" name="spinBoxThreshold">
|
|
911 |
<item row="3" column="1" colspan="3">
|
|
912 |
<widget class="QSpinBox" name="rotationCountSpinBox">
|
|
848 | 913 |
<property name="minimum"> |
849 |
<number>1</number>
|
|
914 |
<number>0</number>
|
|
850 | 915 |
</property> |
851 | 916 |
<property name="maximum"> |
852 |
<number>100</number> |
|
917 |
<number>270</number> |
|
918 |
</property> |
|
919 |
<property name="singleStep"> |
|
920 |
<number>90</number> |
|
853 | 921 |
</property> |
854 | 922 |
<property name="value"> |
855 |
<number>75</number>
|
|
923 |
<number>0</number>
|
|
856 | 924 |
</property> |
857 | 925 |
</widget> |
858 | 926 |
</item> |
859 |
<item row="4" column="0"> |
|
860 |
<widget class="QLabel" name="isContainChildLabel"> |
|
927 |
<item row="18" column="1" colspan="3"> |
|
928 |
<widget class="QPushButton" name="pushButtonChange"> |
|
929 |
<property name="text"> |
|
930 |
<string>Change Item on Drawing without DB Update</string> |
|
931 |
</property> |
|
932 |
</widget> |
|
933 |
</item> |
|
934 |
<item row="2" column="1" colspan="3"> |
|
935 |
<widget class="QLineEdit" name="minMatchPointLineEdit"> |
|
936 |
<property name="enabled"> |
|
937 |
<bool>false</bool> |
|
938 |
</property> |
|
939 |
</widget> |
|
940 |
</item> |
|
941 |
<item row="4" column="1" colspan="3"> |
|
942 |
<widget class="QCheckBox" name="isContainChildCheckBox"> |
|
943 |
<property name="text"> |
|
944 |
<string/> |
|
945 |
</property> |
|
946 |
<property name="checkable"> |
|
947 |
<bool>true</bool> |
|
948 |
</property> |
|
949 |
</widget> |
|
950 |
</item> |
|
951 |
<item row="14" column="1" colspan="3"> |
|
952 |
<widget class="QCheckBox" name="isExceptDetectCheckBox"> |
|
953 |
<property name="text"> |
|
954 |
<string/> |
|
955 |
</property> |
|
956 |
</widget> |
|
957 |
</item> |
|
958 |
<item row="0" column="1" colspan="3"> |
|
959 |
<widget class="QLineEdit" name="nameLineEdit"/> |
|
960 |
</item> |
|
961 |
<item row="17" column="0"> |
|
962 |
<widget class="QLabel" name="label_3"> |
|
861 | 963 |
<property name="font"> |
862 | 964 |
<font> |
863 | 965 |
<weight>75</weight> |
... | ... | |
865 | 967 |
</font> |
866 | 968 |
</property> |
867 | 969 |
<property name="text"> |
868 |
<string>Include Child Symbol</string>
|
|
970 |
<string>Change Base, Additional</string>
|
|
869 | 971 |
</property> |
870 | 972 |
</widget> |
871 | 973 |
</item> |
872 |
<item row="16" column="1"> |
|
873 |
<widget class="QPushButton" name="pushButtonChange"> |
|
874 |
<property name="text"> |
|
875 |
<string>Change Item on Drawing without DB Update</string> |
|
974 |
<item row="12" column="1" colspan="3"> |
|
975 |
<widget class="QTableWidget" name="tableWidgetConnList"> |
|
976 |
<property name="maximumSize"> |
|
977 |
<size> |
|
978 |
<width>16777215</width> |
|
979 |
<height>150</height> |
|
980 |
</size> |
|
876 | 981 |
</property> |
982 |
<attribute name="verticalHeaderVisible"> |
|
983 |
<bool>false</bool> |
|
984 |
</attribute> |
|
877 | 985 |
</widget> |
878 | 986 |
</item> |
879 |
<item row="12" column="0">
|
|
880 |
<widget class="QLabel" name="isExceptDetectLabel">
|
|
987 |
<item row="4" column="0">
|
|
988 |
<widget class="QLabel" name="isContainChildLabel">
|
|
881 | 989 |
<property name="font"> |
882 | 990 |
<font> |
883 | 991 |
<weight>75</weight> |
... | ... | |
885 | 993 |
</font> |
886 | 994 |
</property> |
887 | 995 |
<property name="text"> |
888 |
<string>Exclude</string>
|
|
996 |
<string>Include Child Symbol</string>
|
|
889 | 997 |
</property> |
890 | 998 |
</widget> |
891 | 999 |
</item> |
892 |
<item row="8" column="0">
|
|
1000 |
<item row="10" column="0">
|
|
893 | 1001 |
<widget class="QLabel" name="originalPointLabel"> |
894 | 1002 |
<property name="sizePolicy"> |
895 | 1003 |
<sizepolicy hsizetype="Preferred" vsizetype="Preferred"> |
... | ... | |
911 | 1019 |
</property> |
912 | 1020 |
</widget> |
913 | 1021 |
</item> |
914 |
<item row="15" column="0">
|
|
915 |
<widget class="QLabel" name="label_3">
|
|
1022 |
<item row="18" column="0">
|
|
1023 |
<widget class="QLabel" name="label_4">
|
|
916 | 1024 |
<property name="font"> |
917 | 1025 |
<font> |
918 | 1026 |
<weight>75</weight> |
... | ... | |
920 | 1028 |
</font> |
921 | 1029 |
</property> |
922 | 1030 |
<property name="text"> |
923 |
<string>Change Base, Additional</string> |
|
924 |
</property> |
|
925 |
</widget> |
|
926 |
</item> |
|
927 |
<item row="9" column="1"> |
|
928 |
<widget class="QLineEdit" name="connectionPointLineEdit"> |
|
929 |
<property name="readOnly"> |
|
930 |
<bool>true</bool> |
|
931 |
</property> |
|
932 |
</widget> |
|
933 |
</item> |
|
934 |
<item row="3" column="1"> |
|
935 |
<widget class="QSpinBox" name="rotationCountSpinBox"> |
|
936 |
<property name="minimum"> |
|
937 |
<number>0</number> |
|
938 |
</property> |
|
939 |
<property name="maximum"> |
|
940 |
<number>270</number> |
|
941 |
</property> |
|
942 |
<property name="singleStep"> |
|
943 |
<number>90</number> |
|
944 |
</property> |
|
945 |
<property name="value"> |
|
946 |
<number>0</number> |
|
947 |
</property> |
|
948 |
</widget> |
|
949 |
</item> |
|
950 |
<item row="2" column="1"> |
|
951 |
<widget class="QLineEdit" name="minMatchPointLineEdit"> |
|
952 |
<property name="enabled"> |
|
953 |
<bool>false</bool> |
|
1031 |
<string>Symbol Info on Drawing</string> |
|
954 | 1032 |
</property> |
955 | 1033 |
</widget> |
956 | 1034 |
</item> |
957 |
<item row="7" column="1" colspan="3">
|
|
1035 |
<item row="9" column="1" colspan="3">
|
|
958 | 1036 |
<widget class="QListWidget" name="additionalSymbolListWidget"> |
959 | 1037 |
<property name="sizePolicy"> |
960 | 1038 |
<sizepolicy hsizetype="Expanding" vsizetype="Expanding"> |
... | ... | |
996 | 1074 |
</property> |
997 | 1075 |
</widget> |
998 | 1076 |
</item> |
999 |
<item row="3" column="0"> |
|
1000 |
<widget class="QLabel" name="rotationCountLabel"> |
|
1001 |
<property name="font"> |
|
1002 |
<font> |
|
1003 |
<weight>75</weight> |
|
1004 |
<bold>true</bold> |
|
1005 |
</font> |
|
1006 |
</property> |
|
1007 |
<property name="text"> |
|
1008 |
<string>Rotation Detection Degree</string> |
|
1009 |
</property> |
|
1010 |
</widget> |
|
1011 |
</item> |
|
1012 |
<item row="9" column="0"> |
|
1013 |
<widget class="QLabel" name="connectionPointLabel"> |
|
1077 |
<item row="14" column="0"> |
|
1078 |
<widget class="QLabel" name="isExceptDetectLabel"> |
|
1014 | 1079 |
<property name="font"> |
1015 | 1080 |
<font> |
1016 | 1081 |
<weight>75</weight> |
... | ... | |
1018 | 1083 |
</font> |
1019 | 1084 |
</property> |
1020 | 1085 |
<property name="text"> |
1021 |
<string>Connection Point</string> |
|
1022 |
</property> |
|
1023 |
<property name="alignment"> |
|
1024 |
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> |
|
1086 |
<string>Exclude</string> |
|
1025 | 1087 |
</property> |
1026 | 1088 |
</widget> |
1027 | 1089 |
</item> |
1028 |
<item row="1" column="0"> |
|
1029 |
<widget class="QLabel" name="thresholdLabel"> |
|
1030 |
<property name="font"> |
|
1031 |
<font> |
|
1032 |
<weight>75</weight> |
|
1033 |
<bold>true</bold> |
|
1034 |
</font> |
|
1035 |
</property> |
|
1036 |
<property name="text"> |
|
1037 |
<string>Threshold(%)</string> |
|
1090 |
<item row="10" column="1"> |
|
1091 |
<widget class="QLineEdit" name="originalPointLineEdit"> |
|
1092 |
<property name="readOnly"> |
|
1093 |
<bool>true</bool> |
|
1038 | 1094 |
</property> |
1039 | 1095 |
</widget> |
1040 | 1096 |
</item> |
1041 |
<item row="9" column="2"> |
|
1042 |
<widget class="QPushButton" name="addConnectionPointButton"> |
|
1043 |
<property name="minimumSize"> |
|
1044 |
<size> |
|
1045 |
<width>40</width> |
|
1046 |
<height>0</height> |
|
1047 |
</size> |
|
1048 |
</property> |
|
1049 |
<property name="maximumSize"> |
|
1050 |
<size> |
|
1051 |
<width>40</width> |
|
1052 |
<height>16777215</height> |
|
1053 |
</size> |
|
1054 |
</property> |
|
1055 |
<property name="text"> |
|
1056 |
<string>Add</string> |
|
1097 |
<item row="11" column="1"> |
|
1098 |
<widget class="QLineEdit" name="connectionPointLineEdit"> |
|
1099 |
<property name="readOnly"> |
|
1100 |
<bool>true</bool> |
|
1057 | 1101 |
</property> |
1058 | 1102 |
</widget> |
1059 | 1103 |
</item> |
1060 |
<item row="14" column="1">
|
|
1061 |
<widget class="QCheckBox" name="makeFlipCheckBox">
|
|
1062 |
<property name="text">
|
|
1063 |
<string/>
|
|
1104 |
<item row="1" column="1" colspan="3">
|
|
1105 |
<widget class="QSpinBox" name="spinBoxThreshold">
|
|
1106 |
<property name="minimum">
|
|
1107 |
<number>1</number>
|
|
1064 | 1108 |
</property> |
1065 |
</widget> |
|
1066 |
</item> |
|
1067 |
<item row="0" column="1"> |
|
1068 |
<widget class="QLineEdit" name="nameLineEdit"/> |
|
1069 |
</item> |
|
1070 |
<item row="14" column="0"> |
|
1071 |
<widget class="QLabel" name="makeFlipLabel"> |
|
1072 |
<property name="font"> |
|
1073 |
<font> |
|
1074 |
<weight>75</weight> |
|
1075 |
<bold>true</bold> |
|
1076 |
</font> |
|
1109 |
<property name="maximum"> |
|
1110 |
<number>100</number> |
|
1077 | 1111 |
</property> |
1078 |
<property name="text">
|
|
1079 |
<string>Detect Flip</string>
|
|
1112 |
<property name="value">
|
|
1113 |
<number>75</number>
|
|
1080 | 1114 |
</property> |
1081 | 1115 |
</widget> |
1082 | 1116 |
</item> |
1083 |
<item row="6" column="1">
|
|
1117 |
<item row="8" column="1" colspan="3">
|
|
1084 | 1118 |
<layout class="QHBoxLayout" name="horizontalLayout_3"> |
1085 | 1119 |
<item> |
1086 | 1120 |
<widget class="QSpinBox" name="spinBoxParent"> |
... | ... | |
1123 | 1157 |
</item> |
1124 | 1158 |
</layout> |
1125 | 1159 |
</item> |
1126 |
<item row="15" column="1">
|
|
1160 |
<item row="17" column="1" colspan="3">
|
|
1127 | 1161 |
<widget class="QCheckBox" name="checkBoxChange"> |
1128 | 1162 |
<property name="text"> |
1129 | 1163 |
<string/> |
1130 | 1164 |
</property> |
1131 | 1165 |
</widget> |
1132 | 1166 |
</item> |
1133 |
<item row="4" column="1">
|
|
1134 |
<widget class="QCheckBox" name="isContainChildCheckBox">
|
|
1167 |
<item row="16" column="1" colspan="3">
|
|
1168 |
<widget class="QCheckBox" name="makeFlipCheckBox">
|
|
1135 | 1169 |
<property name="text"> |
1136 | 1170 |
<string/> |
1137 | 1171 |
</property> |
1138 |
<property name="checkable"> |
|
1139 |
<bool>true</bool> |
|
1172 |
</widget> |
|
1173 |
</item> |
|
1174 |
<item row="15" column="1" colspan="3"> |
|
1175 |
<widget class="QCheckBox" name="immediateInsertCheckBox"> |
|
1176 |
<property name="text"> |
|
1177 |
<string/> |
|
1140 | 1178 |
</property> |
1141 | 1179 |
</widget> |
1142 | 1180 |
</item> |
1143 |
<item row="9" column="3"> |
|
1144 |
<widget class="QPushButton" name="pushButtonDelConnPt"> |
|
1145 |
<property name="minimumSize"> |
|
1146 |
<size> |
|
1147 |
<width>40</width> |
|
1148 |
<height>0</height> |
|
1149 |
</size> |
|
1181 |
<item row="13" column="1" colspan="3"> |
|
1182 |
<widget class="QSpinBox" name="spinBoxhasInstrumentLabel"> |
|
1183 |
<property name="maximum"> |
|
1184 |
<number>1</number> |
|
1150 | 1185 |
</property> |
1186 |
</widget> |
|
1187 |
</item> |
|
1188 |
<item row="7" column="1" colspan="3"> |
|
1189 |
<widget class="QListWidget" name="textAreaListWidget"/> |
|
1190 |
</item> |
|
1191 |
<item row="6" column="1"> |
|
1192 |
<widget class="QLineEdit" name="textAreaLineEdit"/> |
|
1193 |
</item> |
|
1194 |
<item row="6" column="0"> |
|
1195 |
<widget class="QLabel" name="label_5"> |
|
1196 |
<property name="font"> |
|
1197 |
<font> |
|
1198 |
<weight>75</weight> |
|
1199 |
<bold>true</bold> |
|
1200 |
</font> |
|
1201 |
</property> |
|
1202 |
<property name="text"> |
|
1203 |
<string>Text Area</string> |
|
1204 |
</property> |
|
1205 |
</widget> |
|
1206 |
</item> |
|
1207 |
<item row="6" column="2"> |
|
1208 |
<widget class="QPushButton" name="addTextAreaButton"> |
|
1151 | 1209 |
<property name="maximumSize"> |
1152 | 1210 |
<size> |
1153 | 1211 |
<width>40</width> |
... | ... | |
1155 | 1213 |
</size> |
1156 | 1214 |
</property> |
1157 | 1215 |
<property name="text"> |
1158 |
<string>Del</string> |
|
1159 |
</property> |
|
1160 |
</widget> |
|
1161 |
</item> |
|
1162 |
<item row="12" column="1"> |
|
1163 |
<widget class="QCheckBox" name="isExceptDetectCheckBox"> |
|
1164 |
<property name="text"> |
|
1165 |
<string/> |
|
1216 |
<string>Add</string> |
|
1166 | 1217 |
</property> |
1167 | 1218 |
</widget> |
1168 | 1219 |
</item> |
1169 |
<item row="8" column="2">
|
|
1170 |
<widget class="QPushButton" name="addOriginalPointButton">
|
|
1220 |
<item row="6" column="3">
|
|
1221 |
<widget class="QPushButton" name="delTextAreaButton">
|
|
1171 | 1222 |
<property name="maximumSize"> |
1172 | 1223 |
<size> |
1173 | 1224 |
<width>40</width> |
... | ... | |
1175 | 1226 |
</size> |
1176 | 1227 |
</property> |
1177 | 1228 |
<property name="text"> |
1178 |
<string>Add</string>
|
|
1229 |
<string>Del</string>
|
|
1179 | 1230 |
</property> |
1180 | 1231 |
</widget> |
1181 | 1232 |
</item> |
내보내기 Unified diff