개정판 a2e3cd0c
issue #581: save
DTI_PID/DTI_PID/ConfigurationDialog.py | ||
---|---|---|
35 | 35 |
|
36 | 36 |
self.ui = Configuration_UI.Ui_ConfigurationDialog() |
37 | 37 |
self.ui.setupUi(self) |
38 |
self.ui.listViewProperties = ListView(self.ui.groupBoxLineNo) |
|
39 |
self.ui.listViewProperties.setObjectName('listViewProperties') |
|
38 |
self.ui.listViewProperties = ListView(self.ui.groupBoxLineNo) # no used
|
|
39 |
self.ui.listViewProperties.setObjectName('listViewProperties') # no used
|
|
40 | 40 |
self.ui.horizontalLayout_3.addWidget(self.ui.listViewProperties) |
41 | 41 |
self.isAccepted = False |
42 |
self.itemModel = QStandardItemModel() |
|
42 |
#self.itemModel = QStandardItemModel()
|
|
43 | 43 |
self.delimiter = '"' |
44 |
self.lineNoDelimiter = '!-!' |
|
44 | 45 |
self.defaultColor = Color(0, 0, 0, 255) |
45 | 46 |
self.currentIndex = 0 |
46 | 47 |
self.lineNoAttributeUID = [] |
... | ... | |
74 | 75 |
configs = docData.getConfigs('Text Size', 'Max Text Size') |
75 | 76 |
self.ui.maxTextSizeSpinBox.setValue(int(configs[0].value)) if 1 == len(configs) else self.ui.maxTextSizeSpinBox.setValue(60) |
76 | 77 |
|
77 |
configs = docData.getConfigs('Size', 'Delimiter') |
|
78 |
self.ui.lineEditSizeDelimiter.setText(configs[0].value if 1 == len(configs) else 'X') |
|
78 |
#configs = docData.getConfigs('Size', 'Delimiter')
|
|
79 |
#self.ui.lineEditSizeDelimiter.setText(configs[0].value if 1 == len(configs) else 'X')
|
|
79 | 80 |
|
80 | 81 |
configs = docData.getConfigs('Filter', 'MinimumSize') |
81 | 82 |
self.ui.lineEditMinimumSize.setText(configs[0].value if 1 == len(configs) else '15') |
... | ... | |
94 | 95 |
configs = docData.getConfigs('Small Line Minimum Length', 'Min Length') |
95 | 96 |
self.ui.smallLineMinLengthSpinBox.setValue(int(configs[0].value)) if 1 == len(configs) else self.ui.smallLineMinLengthSpinBox.setValue(10) |
96 | 97 |
|
97 |
configs = docData.getConfigs('Line No', 'Size Unit') |
|
98 |
if 1 == len(configs): |
|
99 |
self.ui.radioButtonMetric.setChecked(True) if 'Metric' == configs[0].value else self.ui.radioButtonInch.setChecked(True) |
|
100 |
else: |
|
101 |
self.ui.radioButtonMetric.setChecked(True) |
|
98 |
#configs = docData.getConfigs('Line No', 'Size Unit')
|
|
99 |
#if 1 == len(configs):
|
|
100 |
# self.ui.radioButtonMetric.setChecked(True) if 'Metric' == configs[0].value else self.ui.radioButtonInch.setChecked(True)
|
|
101 |
#else:
|
|
102 |
# self.ui.radioButtonMetric.setChecked(True)
|
|
102 | 103 |
|
103 |
configs = docData.getConfigs('Line No', 'Delimiter') |
|
104 |
if 1 == len(configs): |
|
105 |
self.ui.lineEdit.setText(configs[0].value) |
|
104 |
#configs = docData.getConfigs('Line No', 'Delimiter')
|
|
105 |
#if 1 == len(configs):
|
|
106 |
# self.ui.lineEdit.setText(configs[0].value)
|
|
106 | 107 |
|
107 | 108 |
""" |
108 | 109 |
properties = docData.getLineProperties() |
... | ... | |
118 | 119 |
|
119 | 120 |
configs = docData.getConfigs('Line No', 'Configuration') |
120 | 121 |
if len(configs) == 1 and configs[0].value is not None: |
121 |
for value in configs[0].value.split(self.delimiter): |
|
122 |
#for value in configs[0].value.split(self.ui.lineEdit.text()): |
|
123 |
lineProp = docData.getLinePropertiesByUID(value) |
|
124 |
if lineProp: |
|
125 |
item = QStandardItem(lineProp[0].DisplayAttribute) |
|
126 |
item.tag = value |
|
127 |
else: |
|
128 |
item = QStandardItem(value) |
|
129 |
item.tag = value |
|
122 |
for lineNo in configs[0].value.split(self.lineNoDelimiter): |
|
123 |
displayLineNo = '' |
|
124 |
for value in lineNo.split(self.delimiter): |
|
125 |
lineProp = docData.getLinePropertiesByUID(value) |
|
126 |
if lineProp: |
|
127 |
displayLineNo = displayLineNo + lineProp[0].DisplayAttribute |
|
128 |
else: |
|
129 |
displayLineNo = displayLineNo + value |
|
130 | 130 |
|
131 |
self.itemModel.appendRow(item) |
|
132 |
self.ui.listViewProperties.setModel(self.itemModel) |
|
131 |
item = QListWidgetItem(displayLineNo) |
|
132 |
item.tag = lineNo |
|
133 |
self.ui.listWidgetLineNo.addItem(item) |
|
134 |
#self.ui.listViewProperties.setModel(self.itemModel) |
|
133 | 135 |
|
134 | 136 |
configs = docData.getConfigs('Note No Tag Rule', 'Note No Expression') |
135 | 137 |
self.ui.lineEditNoteNoExpression.setText(configs[0].value if configs else '') |
... | ... | |
222 | 224 |
self.ui.pushButtonAddProperty.clicked.connect(self.addLineProperty) |
223 | 225 |
self.ui.pushButtonDeleteProperty.clicked.connect(self.removeSelectedItem) |
224 | 226 |
self.ui.radioButtonFixedSize.toggled.connect(self.onFixedSizeToggled) |
225 |
self.ui.pushButtonAddDelimiter.clicked.connect(self.addDelimiter) |
|
227 |
#self.ui.pushButtonAddDelimiter.clicked.connect(self.addDelimiter)
|
|
226 | 228 |
self.ui.tableWidgetColorProperty.cellDoubleClicked.connect(self.cellDoubleClick) |
227 | 229 |
self.ui.comboBoxColorOption.currentIndexChanged.connect(self.currentIndexChanged) |
228 | 230 |
self.ui.radioButtonRandom.toggled.connect(self.onPropertyToggled) |
229 | 231 |
self.ui.pushButtonLineNoAttribute.clicked.connect(self.editLineNoAttributeClicked) |
230 | 232 |
self.ui.checkBoxNoteNoSymbolName.stateChanged.connect(self.checkBoxNoteNoSymbolNameChanged) |
233 |
self.ui.listWidgetLineNo.itemDoubleClicked.connect(self.lineNoItemDoubleCliced) |
|
234 |
|
|
235 |
def lineNoItemDoubleCliced(self, item): |
|
236 |
from ConfigurationLineNoDialog import QConfigurationLineNoDialog |
|
237 |
|
|
238 |
configuration_line_no_dialog = QConfigurationLineNoDialog(self, False, item) |
|
239 |
item_data_format_dialog.exec_() |
|
231 | 240 |
|
232 | 241 |
def checkBoxNoteNoSymbolNameChanged(self): |
233 | 242 |
if self.ui.checkBoxNoteNoSymbolName.isChecked() is True: |
... | ... | |
242 | 251 |
properties = app_doc_data.getLineProperties() |
243 | 252 |
if properties: |
244 | 253 |
self.lineNoAttributeUID.clear() |
245 |
self.ui.comboBoxProperties.clear() |
|
254 |
#self.ui.comboBoxProperties.clear()
|
|
246 | 255 |
self.tempLineColorUID.clear() |
247 | 256 |
for prop in properties: |
248 | 257 |
self.lineNoAttributeUID.append(prop.UID) |
249 |
self.ui.comboBoxProperties.addItem(prop.DisplayAttribute) |
|
258 |
#self.ui.comboBoxProperties.addItem(prop.DisplayAttribute)
|
|
250 | 259 |
if prop.AttributeType == 'Code Table': |
251 | 260 |
self.tempLineColorUID.append(prop.Attribute) |
252 | 261 |
self.ui.comboBoxColorOption.addItem(prop.DisplayAttribute) |
DTI_PID/DTI_PID/ConfigurationLineNoDialog.py | ||
---|---|---|
1 |
# -*- coding: utf-8 -*- |
|
2 |
|
|
3 |
# Form implementation generated from reading ui file 'ProjectDialog.ui' |
|
4 |
# |
|
5 |
# Created by: PyQt5 UI code generator 5.6 |
|
6 |
# |
|
7 |
# WARNING! All changes made in this file will be lost! |
|
8 |
|
|
9 |
from PyQt5 import QtCore, QtGui, QtWidgets |
|
10 |
from PyQt5.QtWidgets import * |
|
11 |
import os |
|
12 |
from Project import Project |
|
13 |
from AppDocData import AppDocData |
|
14 |
import Configuration_LineNo_UI |
|
15 |
|
|
16 |
class QConfigurationLineNoDialog(QDialog): |
|
17 |
def __init__(self, parent, isAdd, lineNo=None): |
|
18 |
QDialog.__init__(self, parent) |
|
19 |
|
|
20 |
self.ui = Configuration_LineNo_UI.Ui_Dialog() |
|
21 |
self.ui.setupUi(self) |
|
22 |
self.isAdd = isAdd |
|
23 |
self.lineNo = lineNo |
|
24 |
self.isAccepted = False |
|
25 |
self.newLineNo = None |
|
26 |
if not self.isAdd: |
|
27 |
self.setWindowTitle(self.tr('Edit')) |
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
def showDialog(self): |
|
32 |
self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowCloseButtonHint & ~QtCore.Qt.WindowContextHelpButtonHint) |
|
33 |
self.exec_() |
|
34 |
return self.isAccepted, self.newLineNo |
|
35 |
|
|
36 |
def accept(self): |
|
37 |
appDocData = AppDocData.instance() |
|
38 |
self.newColName = self.ui.lineEdit.text() |
|
39 |
|
|
40 |
if not self.validationCheck(self.newColName): |
|
41 |
QMessageBox.warning(self, self.tr('INFO'), self.tr('Please check column name')) |
|
42 |
return |
|
43 |
self.isAccepted = True |
|
44 |
|
|
45 |
if self.isAdd: |
|
46 |
self.newHistory = (None, self.newColName) |
|
47 |
#if appDocData.add_column_into_table(self.tableName, self.ui.lineEdit.text()): |
|
48 |
# self.isAccepted = True |
|
49 |
# QDialog.accept(self) |
|
50 |
#else: |
|
51 |
# QDialog.reject(self) |
|
52 |
else: |
|
53 |
self.newHistory = (self.oldColName, self.newColName) |
|
54 |
#if appDocData.edit_column_Name_in_table(self.tableName, self.oldColName, self.ui.lineEdit.text()): |
|
55 |
# self.isAccepted = True |
|
56 |
# QDialog.accept(self) |
|
57 |
#else: |
|
58 |
# QDialog.reject(self) |
|
59 |
|
|
60 |
QDialog.accept(self) |
|
61 |
|
|
62 |
def reject(self): |
|
63 |
QDialog.reject(self) |
|
64 |
|
|
65 |
def validationCheck(self, colName): |
|
66 |
if colName == '': |
|
67 |
return False |
|
68 |
for col in self.colList: |
|
69 |
if col == colName: |
|
70 |
return False |
|
71 |
for record in self.history: |
|
72 |
if record[1] == colName: |
|
73 |
return False |
|
74 |
return True |
DTI_PID/DTI_PID/Configuration_LineNo_UI.py | ||
---|---|---|
11 | 11 |
class Ui_Dialog(object): |
12 | 12 |
def setupUi(self, Dialog): |
13 | 13 |
Dialog.setObjectName("Dialog") |
14 |
Dialog.resize(628, 289)
|
|
14 |
Dialog.resize(628, 386)
|
|
15 | 15 |
self.gridLayout_7 = QtWidgets.QGridLayout(Dialog) |
16 | 16 |
self.gridLayout_7.setObjectName("gridLayout_7") |
17 | 17 |
self.widget = QtWidgets.QWidget(Dialog) |
... | ... | |
38 | 38 |
self.horizontalLayout_17.addWidget(self.radioButtonInch_4) |
39 | 39 |
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
40 | 40 |
self.horizontalLayout_17.addItem(spacerItem) |
41 |
self.pushButtonLineNoAttribute_4 = QtWidgets.QPushButton(self.groupBoxLineNo) |
|
42 |
self.pushButtonLineNoAttribute_4.setMinimumSize(QtCore.QSize(50, 24)) |
|
43 |
self.pushButtonLineNoAttribute_4.setMaximumSize(QtCore.QSize(16777215, 24)) |
|
44 |
self.pushButtonLineNoAttribute_4.setObjectName("pushButtonLineNoAttribute_4") |
|
45 |
self.horizontalLayout_17.addWidget(self.pushButtonLineNoAttribute_4) |
|
46 | 41 |
self.verticalLayout_5.addLayout(self.horizontalLayout_17) |
47 | 42 |
self.horizontalLayout_18 = QtWidgets.QHBoxLayout() |
48 | 43 |
self.horizontalLayout_18.setObjectName("horizontalLayout_18") |
... | ... | |
90 | 85 |
self.verticalLayout_5.addLayout(self.horizontalLayout_19) |
91 | 86 |
self.horizontalLayout_21 = QtWidgets.QHBoxLayout() |
92 | 87 |
self.horizontalLayout_21.setObjectName("horizontalLayout_21") |
88 |
self.listWidget = QtWidgets.QListWidget(self.groupBoxLineNo) |
|
89 |
self.listWidget.setObjectName("listWidget") |
|
90 |
self.horizontalLayout_21.addWidget(self.listWidget) |
|
93 | 91 |
self.verticalLayout_5.addLayout(self.horizontalLayout_21) |
94 | 92 |
self.gridLayout_6.addLayout(self.verticalLayout_5, 6, 0, 1, 1) |
95 | 93 |
self.gridLayout_2.addWidget(self.groupBoxLineNo, 0, 0, 1, 1) |
... | ... | |
107 | 105 |
|
108 | 106 |
def retranslateUi(self, Dialog): |
109 | 107 |
_translate = QtCore.QCoreApplication.translate |
110 |
Dialog.setWindowTitle(_translate("Dialog", "Dialog"))
|
|
108 |
Dialog.setWindowTitle(_translate("Dialog", "Add"))
|
|
111 | 109 |
self.groupBoxLineNo.setTitle(_translate("Dialog", "Line No")) |
112 | 110 |
self.label_8.setText(_translate("Dialog", "Size Unit : ")) |
113 | 111 |
self.radioButtonMetric_4.setText(_translate("Dialog", "Metric")) |
114 | 112 |
self.radioButtonInch_4.setText(_translate("Dialog", "Inch")) |
115 |
self.pushButtonLineNoAttribute_4.setText(_translate("Dialog", "Line No Attribute")) |
|
116 | 113 |
self.label_9.setText(_translate("Dialog", "Delimiter : ")) |
117 | 114 |
self.pushButtonAddDelimiter_4.setText(_translate("Dialog", "Add")) |
118 | 115 |
self.label_29.setText(_translate("Dialog", "properties : ")) |
DTI_PID/DTI_PID/Configuration_UI.py | ||
---|---|---|
105 | 105 |
self.gridLayout_3.setObjectName("gridLayout_3") |
106 | 106 |
self.verticalLayout_2 = QtWidgets.QVBoxLayout() |
107 | 107 |
self.verticalLayout_2.setObjectName("verticalLayout_2") |
108 |
self.horizontalLayout_7 = QtWidgets.QHBoxLayout() |
|
109 |
self.horizontalLayout_7.setObjectName("horizontalLayout_7") |
|
110 |
self.label_3 = QtWidgets.QLabel(self.groupBoxLineNo) |
|
111 |
self.label_3.setObjectName("label_3") |
|
112 |
self.horizontalLayout_7.addWidget(self.label_3) |
|
113 |
self.radioButtonMetric = QtWidgets.QRadioButton(self.groupBoxLineNo) |
|
114 |
self.radioButtonMetric.setObjectName("radioButtonMetric") |
|
115 |
self.horizontalLayout_7.addWidget(self.radioButtonMetric) |
|
116 |
self.radioButtonInch = QtWidgets.QRadioButton(self.groupBoxLineNo) |
|
117 |
self.radioButtonInch.setMinimumSize(QtCore.QSize(0, 0)) |
|
118 |
self.radioButtonInch.setObjectName("radioButtonInch") |
|
119 |
self.horizontalLayout_7.addWidget(self.radioButtonInch) |
|
120 |
spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
|
121 |
self.horizontalLayout_7.addItem(spacerItem3) |
|
122 |
self.pushButtonLineNoAttribute = QtWidgets.QPushButton(self.groupBoxLineNo) |
|
123 |
self.pushButtonLineNoAttribute.setMinimumSize(QtCore.QSize(50, 24)) |
|
124 |
self.pushButtonLineNoAttribute.setMaximumSize(QtCore.QSize(16777215, 24)) |
|
125 |
self.pushButtonLineNoAttribute.setObjectName("pushButtonLineNoAttribute") |
|
126 |
self.horizontalLayout_7.addWidget(self.pushButtonLineNoAttribute) |
|
127 |
self.verticalLayout_2.addLayout(self.horizontalLayout_7) |
|
128 |
self.horizontalLayout_5 = QtWidgets.QHBoxLayout() |
|
129 |
self.horizontalLayout_5.setObjectName("horizontalLayout_5") |
|
130 |
self.verticalLayout_2.addLayout(self.horizontalLayout_5) |
|
131 | 108 |
self.horizontalLayout_2 = QtWidgets.QHBoxLayout() |
132 | 109 |
self.horizontalLayout_2.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint) |
133 | 110 |
self.horizontalLayout_2.setObjectName("horizontalLayout_2") |
134 | 111 |
self.horizontalLayout_4 = QtWidgets.QHBoxLayout() |
135 | 112 |
self.horizontalLayout_4.setObjectName("horizontalLayout_4") |
136 | 113 |
self.horizontalLayout_2.addLayout(self.horizontalLayout_4) |
137 |
self.label_2 = QtWidgets.QLabel(self.groupBoxLineNo) |
|
138 |
self.label_2.setObjectName("label_2") |
|
139 |
self.horizontalLayout_2.addWidget(self.label_2) |
|
140 |
self.lineEdit = QtWidgets.QLineEdit(self.groupBoxLineNo) |
|
141 |
self.lineEdit.setMaximumSize(QtCore.QSize(60, 16777215)) |
|
142 |
self.lineEdit.setMaxLength(2) |
|
143 |
self.lineEdit.setObjectName("lineEdit") |
|
144 |
self.horizontalLayout_2.addWidget(self.lineEdit) |
|
145 |
self.pushButtonAddDelimiter = QtWidgets.QPushButton(self.groupBoxLineNo) |
|
146 |
self.pushButtonAddDelimiter.setMinimumSize(QtCore.QSize(50, 0)) |
|
147 |
self.pushButtonAddDelimiter.setMaximumSize(QtCore.QSize(50, 16777215)) |
|
148 |
self.pushButtonAddDelimiter.setObjectName("pushButtonAddDelimiter") |
|
149 |
self.horizontalLayout_2.addWidget(self.pushButtonAddDelimiter) |
|
150 |
spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
|
151 |
self.horizontalLayout_2.addItem(spacerItem4) |
|
152 |
self.label_26 = QtWidgets.QLabel(self.groupBoxLineNo) |
|
153 |
self.label_26.setObjectName("label_26") |
|
154 |
self.horizontalLayout_2.addWidget(self.label_26) |
|
155 |
self.comboBoxProperties = QtWidgets.QComboBox(self.groupBoxLineNo) |
|
156 |
self.comboBoxProperties.setMinimumSize(QtCore.QSize(200, 0)) |
|
157 |
self.comboBoxProperties.setObjectName("comboBoxProperties") |
|
158 |
self.horizontalLayout_2.addWidget(self.comboBoxProperties) |
|
114 |
self.pushButtonLineNoAttribute = QtWidgets.QPushButton(self.groupBoxLineNo) |
|
115 |
self.pushButtonLineNoAttribute.setMinimumSize(QtCore.QSize(50, 24)) |
|
116 |
self.pushButtonLineNoAttribute.setMaximumSize(QtCore.QSize(16777215, 24)) |
|
117 |
self.pushButtonLineNoAttribute.setObjectName("pushButtonLineNoAttribute") |
|
118 |
self.horizontalLayout_2.addWidget(self.pushButtonLineNoAttribute) |
|
119 |
spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
|
120 |
self.horizontalLayout_2.addItem(spacerItem3) |
|
159 | 121 |
self.pushButtonAddProperty = QtWidgets.QPushButton(self.groupBoxLineNo) |
160 | 122 |
self.pushButtonAddProperty.setMinimumSize(QtCore.QSize(50, 0)) |
161 | 123 |
self.pushButtonAddProperty.setMaximumSize(QtCore.QSize(50, 16777215)) |
... | ... | |
170 | 132 |
self.verticalLayout_2.addLayout(self.horizontalLayout_2) |
171 | 133 |
self.horizontalLayout_3 = QtWidgets.QHBoxLayout() |
172 | 134 |
self.horizontalLayout_3.setObjectName("horizontalLayout_3") |
135 |
self.listWidgetLineNo = QtWidgets.QListWidget(self.groupBoxLineNo) |
|
136 |
self.listWidgetLineNo.setObjectName("listWidgetLineNo") |
|
137 |
self.horizontalLayout_3.addWidget(self.listWidgetLineNo) |
|
173 | 138 |
self.verticalLayout_2.addLayout(self.horizontalLayout_3) |
174 | 139 |
self.gridLayout_3.addLayout(self.verticalLayout_2, 6, 0, 1, 1) |
175 | 140 |
self.gridLayout_2.addWidget(self.groupBoxLineNo, 4, 1, 1, 1) |
... | ... | |
189 | 154 |
self.comboBoxOCRData.setMaximumSize(QtCore.QSize(200, 16777215)) |
190 | 155 |
self.comboBoxOCRData.setObjectName("comboBoxOCRData") |
191 | 156 |
self.horizontalLayout_14.addWidget(self.comboBoxOCRData) |
192 |
spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
|
|
193 |
self.horizontalLayout_14.addItem(spacerItem5)
|
|
157 |
spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
|
|
158 |
self.horizontalLayout_14.addItem(spacerItem4)
|
|
194 | 159 |
self.verticalLayout_5.addLayout(self.horizontalLayout_14) |
195 | 160 |
self.horizontalLayout_11 = QtWidgets.QHBoxLayout() |
196 | 161 |
self.horizontalLayout_11.setObjectName("horizontalLayout_11") |
... | ... | |
217 | 182 |
self.spinBoxShrinkSize.setMinimumSize(QtCore.QSize(100, 0)) |
218 | 183 |
self.spinBoxShrinkSize.setObjectName("spinBoxShrinkSize") |
219 | 184 |
self.horizontalLayout_15.addWidget(self.spinBoxShrinkSize) |
220 |
spacerItem6 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
|
|
221 |
self.horizontalLayout_15.addItem(spacerItem6)
|
|
185 |
spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
|
|
186 |
self.horizontalLayout_15.addItem(spacerItem5)
|
|
222 | 187 |
self.verticalLayout_5.addLayout(self.horizontalLayout_15) |
223 | 188 |
self.horizontalLayout_13 = QtWidgets.QHBoxLayout() |
224 | 189 |
self.horizontalLayout_13.setObjectName("horizontalLayout_13") |
... | ... | |
247 | 212 |
self.maxTextSizeSpinBox.setProperty("value", 60) |
248 | 213 |
self.maxTextSizeSpinBox.setObjectName("maxTextSizeSpinBox") |
249 | 214 |
self.horizontalLayout_13.addWidget(self.maxTextSizeSpinBox) |
250 |
spacerItem7 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
|
|
251 |
self.horizontalLayout_13.addItem(spacerItem7)
|
|
215 |
spacerItem6 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
|
|
216 |
self.horizontalLayout_13.addItem(spacerItem6)
|
|
252 | 217 |
self.verticalLayout_5.addLayout(self.horizontalLayout_13) |
253 | 218 |
self.horizontalLayout_17 = QtWidgets.QHBoxLayout() |
254 | 219 |
self.horizontalLayout_17.setObjectName("horizontalLayout_17") |
... | ... | |
259 | 224 |
self.spinBoxMergeSize.setMinimumSize(QtCore.QSize(100, 0)) |
260 | 225 |
self.spinBoxMergeSize.setObjectName("spinBoxMergeSize") |
261 | 226 |
self.horizontalLayout_17.addWidget(self.spinBoxMergeSize) |
262 |
spacerItem8 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
|
|
263 |
self.horizontalLayout_17.addItem(spacerItem8)
|
|
227 |
spacerItem7 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
|
|
228 |
self.horizontalLayout_17.addItem(spacerItem7)
|
|
264 | 229 |
self.verticalLayout_5.addLayout(self.horizontalLayout_17) |
265 | 230 |
self.gridLayout_14.addLayout(self.verticalLayout_5, 0, 0, 1, 1) |
266 | 231 |
self.gridLayout_2.addWidget(self.groupBoxText, 0, 1, 1, 1) |
... | ... | |
439 | 404 |
ConfigurationDialog.setTabOrder(self.spinBoxMaxArea, self.spinBoxWidth) |
440 | 405 |
ConfigurationDialog.setTabOrder(self.spinBoxWidth, self.spinBoxHeight) |
441 | 406 |
ConfigurationDialog.setTabOrder(self.spinBoxHeight, self.smallLineMinLengthSpinBox) |
442 |
ConfigurationDialog.setTabOrder(self.smallLineMinLengthSpinBox, self.radioButtonMetric) |
|
443 |
ConfigurationDialog.setTabOrder(self.radioButtonMetric, self.radioButtonInch) |
|
444 |
ConfigurationDialog.setTabOrder(self.radioButtonInch, self.lineEdit) |
|
445 |
ConfigurationDialog.setTabOrder(self.lineEdit, self.pushButtonAddDelimiter) |
|
446 |
ConfigurationDialog.setTabOrder(self.pushButtonAddDelimiter, self.pushButtonLineNoAttribute) |
|
447 |
ConfigurationDialog.setTabOrder(self.pushButtonLineNoAttribute, self.comboBoxProperties) |
|
448 |
ConfigurationDialog.setTabOrder(self.comboBoxProperties, self.pushButtonAddProperty) |
|
407 |
ConfigurationDialog.setTabOrder(self.smallLineMinLengthSpinBox, self.pushButtonAddProperty) |
|
449 | 408 |
ConfigurationDialog.setTabOrder(self.pushButtonAddProperty, self.lineEdit_2) |
450 | 409 |
ConfigurationDialog.setTabOrder(self.lineEdit_2, self.tableWidgetLineTypes) |
451 | 410 |
ConfigurationDialog.setTabOrder(self.tableWidgetLineTypes, self.fontComboBox) |
... | ... | |
469 | 428 |
self.label_16.setText(_translate("ConfigurationDialog", "Small Line Minimum Length")) |
470 | 429 |
self.label.setText(_translate("ConfigurationDialog", "Sliding Window Size(WxH) : ")) |
471 | 430 |
self.groupBoxLineNo.setTitle(_translate("ConfigurationDialog", "Line No")) |
472 |
self.label_3.setText(_translate("ConfigurationDialog", "Size Unit : ")) |
|
473 |
self.radioButtonMetric.setText(_translate("ConfigurationDialog", "Metric")) |
|
474 |
self.radioButtonInch.setText(_translate("ConfigurationDialog", "Inch")) |
|
475 | 431 |
self.pushButtonLineNoAttribute.setText(_translate("ConfigurationDialog", "Line No Attribute")) |
476 |
self.label_2.setText(_translate("ConfigurationDialog", "Delimiter : ")) |
|
477 |
self.pushButtonAddDelimiter.setText(_translate("ConfigurationDialog", "Add")) |
|
478 |
self.label_26.setText(_translate("ConfigurationDialog", "properties : ")) |
|
479 | 432 |
self.pushButtonAddProperty.setText(_translate("ConfigurationDialog", "Add")) |
480 | 433 |
self.pushButtonDeleteProperty.setText(_translate("ConfigurationDialog", "Delete")) |
481 | 434 |
self.groupBoxText.setTitle(_translate("ConfigurationDialog", "Text Detection")) |
DTI_PID/DTI_PID/UI/Configuration.ui | ||
---|---|---|
222 | 222 |
<item row="6" column="0"> |
223 | 223 |
<layout class="QVBoxLayout" name="verticalLayout_2"> |
224 | 224 |
<item> |
225 |
<layout class="QHBoxLayout" name="horizontalLayout_7"> |
|
226 |
<item> |
|
227 |
<widget class="QLabel" name="label_3"> |
|
228 |
<property name="text"> |
|
229 |
<string>Size Unit : </string> |
|
230 |
</property> |
|
231 |
</widget> |
|
232 |
</item> |
|
233 |
<item> |
|
234 |
<widget class="QRadioButton" name="radioButtonMetric"> |
|
235 |
<property name="text"> |
|
236 |
<string>Metric</string> |
|
237 |
</property> |
|
238 |
</widget> |
|
239 |
</item> |
|
240 |
<item> |
|
241 |
<widget class="QRadioButton" name="radioButtonInch"> |
|
242 |
<property name="minimumSize"> |
|
243 |
<size> |
|
244 |
<width>0</width> |
|
245 |
<height>0</height> |
|
246 |
</size> |
|
247 |
</property> |
|
248 |
<property name="text"> |
|
249 |
<string>Inch</string> |
|
250 |
</property> |
|
251 |
</widget> |
|
252 |
</item> |
|
253 |
<item> |
|
254 |
<spacer name="horizontalSpacer_9"> |
|
255 |
<property name="orientation"> |
|
256 |
<enum>Qt::Horizontal</enum> |
|
257 |
</property> |
|
258 |
<property name="sizeHint" stdset="0"> |
|
259 |
<size> |
|
260 |
<width>40</width> |
|
261 |
<height>20</height> |
|
262 |
</size> |
|
263 |
</property> |
|
264 |
</spacer> |
|
265 |
</item> |
|
266 |
<item> |
|
267 |
<widget class="QPushButton" name="pushButtonLineNoAttribute"> |
|
268 |
<property name="minimumSize"> |
|
269 |
<size> |
|
270 |
<width>50</width> |
|
271 |
<height>24</height> |
|
272 |
</size> |
|
273 |
</property> |
|
274 |
<property name="maximumSize"> |
|
275 |
<size> |
|
276 |
<width>16777215</width> |
|
277 |
<height>24</height> |
|
278 |
</size> |
|
279 |
</property> |
|
280 |
<property name="text"> |
|
281 |
<string>Line No Attribute</string> |
|
282 |
</property> |
|
283 |
</widget> |
|
284 |
</item> |
|
285 |
</layout> |
|
286 |
</item> |
|
287 |
<item> |
|
288 |
<layout class="QHBoxLayout" name="horizontalLayout_5"/> |
|
289 |
</item> |
|
290 |
<item> |
|
291 | 225 |
<layout class="QHBoxLayout" name="horizontalLayout_2"> |
292 | 226 |
<property name="sizeConstraint"> |
293 | 227 |
<enum>QLayout::SetDefaultConstraint</enum> |
... | ... | |
296 | 230 |
<layout class="QHBoxLayout" name="horizontalLayout_4"/> |
297 | 231 |
</item> |
298 | 232 |
<item> |
299 |
<widget class="QLabel" name="label_2"> |
|
300 |
<property name="text"> |
|
301 |
<string>Delimiter : </string> |
|
302 |
</property> |
|
303 |
</widget> |
|
304 |
</item> |
|
305 |
<item> |
|
306 |
<widget class="QLineEdit" name="lineEdit"> |
|
307 |
<property name="maximumSize"> |
|
308 |
<size> |
|
309 |
<width>60</width> |
|
310 |
<height>16777215</height> |
|
311 |
</size> |
|
312 |
</property> |
|
313 |
<property name="maxLength"> |
|
314 |
<number>2</number> |
|
315 |
</property> |
|
316 |
</widget> |
|
317 |
</item> |
|
318 |
<item> |
|
319 |
<widget class="QPushButton" name="pushButtonAddDelimiter"> |
|
233 |
<widget class="QPushButton" name="pushButtonLineNoAttribute"> |
|
320 | 234 |
<property name="minimumSize"> |
321 | 235 |
<size> |
322 | 236 |
<width>50</width> |
323 |
<height>0</height>
|
|
237 |
<height>24</height>
|
|
324 | 238 |
</size> |
325 | 239 |
</property> |
326 | 240 |
<property name="maximumSize"> |
327 | 241 |
<size> |
328 |
<width>50</width>
|
|
329 |
<height>16777215</height>
|
|
242 |
<width>16777215</width>
|
|
243 |
<height>24</height>
|
|
330 | 244 |
</size> |
331 | 245 |
</property> |
332 | 246 |
<property name="text"> |
333 |
<string>Add</string>
|
|
247 |
<string>Line No Attribute</string>
|
|
334 | 248 |
</property> |
335 | 249 |
</widget> |
336 | 250 |
</item> |
... | ... | |
348 | 262 |
</spacer> |
349 | 263 |
</item> |
350 | 264 |
<item> |
351 |
<widget class="QLabel" name="label_26"> |
|
352 |
<property name="text"> |
|
353 |
<string>properties : </string> |
|
354 |
</property> |
|
355 |
</widget> |
|
356 |
</item> |
|
357 |
<item> |
|
358 |
<widget class="QComboBox" name="comboBoxProperties"> |
|
359 |
<property name="minimumSize"> |
|
360 |
<size> |
|
361 |
<width>200</width> |
|
362 |
<height>0</height> |
|
363 |
</size> |
|
364 |
</property> |
|
365 |
</widget> |
|
366 |
</item> |
|
367 |
<item> |
|
368 | 265 |
<widget class="QPushButton" name="pushButtonAddProperty"> |
369 | 266 |
<property name="minimumSize"> |
370 | 267 |
<size> |
... | ... | |
408 | 305 |
</layout> |
409 | 306 |
</item> |
410 | 307 |
<item> |
411 |
<layout class="QHBoxLayout" name="horizontalLayout_3"/> |
|
308 |
<layout class="QHBoxLayout" name="horizontalLayout_3"> |
|
309 |
<item> |
|
310 |
<widget class="QListWidget" name="listWidgetLineNo"/> |
|
311 |
</item> |
|
312 |
</layout> |
|
412 | 313 |
</item> |
413 | 314 |
</layout> |
414 | 315 |
</item> |
... | ... | |
925 | 826 |
<tabstop>spinBoxWidth</tabstop> |
926 | 827 |
<tabstop>spinBoxHeight</tabstop> |
927 | 828 |
<tabstop>smallLineMinLengthSpinBox</tabstop> |
928 |
<tabstop>radioButtonMetric</tabstop> |
|
929 |
<tabstop>radioButtonInch</tabstop> |
|
930 |
<tabstop>lineEdit</tabstop> |
|
931 |
<tabstop>pushButtonAddDelimiter</tabstop> |
|
932 |
<tabstop>pushButtonLineNoAttribute</tabstop> |
|
933 |
<tabstop>comboBoxProperties</tabstop> |
|
934 | 829 |
<tabstop>pushButtonAddProperty</tabstop> |
935 | 830 |
<tabstop>lineEdit_2</tabstop> |
936 | 831 |
<tabstop>tableWidgetLineTypes</tabstop> |
DTI_PID/DTI_PID/UI/Configuration_LineNo.ui | ||
---|---|---|
7 | 7 |
<x>0</x> |
8 | 8 |
<y>0</y> |
9 | 9 |
<width>628</width> |
10 |
<height>289</height>
|
|
10 |
<height>386</height>
|
|
11 | 11 |
</rect> |
12 | 12 |
</property> |
13 | 13 |
<property name="windowTitle"> |
14 |
<string>Dialog</string>
|
|
14 |
<string>Add</string>
|
|
15 | 15 |
</property> |
16 | 16 |
<layout class="QGridLayout" name="gridLayout_7"> |
17 | 17 |
<item row="0" column="0"> |
... | ... | |
67 | 67 |
</property> |
68 | 68 |
</spacer> |
69 | 69 |
</item> |
70 |
<item> |
|
71 |
<widget class="QPushButton" name="pushButtonLineNoAttribute_4"> |
|
72 |
<property name="minimumSize"> |
|
73 |
<size> |
|
74 |
<width>50</width> |
|
75 |
<height>24</height> |
|
76 |
</size> |
|
77 |
</property> |
|
78 |
<property name="maximumSize"> |
|
79 |
<size> |
|
80 |
<width>16777215</width> |
|
81 |
<height>24</height> |
|
82 |
</size> |
|
83 |
</property> |
|
84 |
<property name="text"> |
|
85 |
<string>Line No Attribute</string> |
|
86 |
</property> |
|
87 |
</widget> |
|
88 |
</item> |
|
89 | 70 |
</layout> |
90 | 71 |
</item> |
91 | 72 |
<item> |
... | ... | |
215 | 196 |
</layout> |
216 | 197 |
</item> |
217 | 198 |
<item> |
218 |
<layout class="QHBoxLayout" name="horizontalLayout_21"/> |
|
199 |
<layout class="QHBoxLayout" name="horizontalLayout_21"> |
|
200 |
<item> |
|
201 |
<widget class="QListWidget" name="listWidget"/> |
|
202 |
</item> |
|
203 |
</layout> |
|
219 | 204 |
</item> |
220 | 205 |
</layout> |
221 | 206 |
</item> |
내보내기 Unified diff