개정판 bd43d199
issue #597: HMB 테이블 연계(revised)
Change-Id: I205b45c79e8bbaaff2db87559834aa77594c5c41
DTI_PID/DTI_PID/HMBDialog.py | ||
---|---|---|
58 | 58 |
self.ui.tableWidgetHMBRecord = QTableWidgetEx(self.ui.groupBoxHMBRecord) |
59 | 59 |
self.ui.horizontalLayoutHMBColTableWidget.addWidget(self.ui.tableWidgetHMBRecord) |
60 | 60 |
|
61 |
self.ui.tableWidgetHMBData = QTableWidgetEx(self.ui.groupBoxHMBData)
|
|
61 |
self.ui.tableWidgetHMBData = QTableWidget(self.ui.groupBoxHMBData) |
|
62 | 62 |
self.ui.horizontalLayoutHMBTableWidget.addWidget(self.ui.tableWidgetHMBData) |
63 | 63 |
|
64 | 64 |
self.ui.tableWidgetHMBRecord.setColumnCount(3) |
... | ... | |
179 | 179 |
data = item.data(Qt.UserRole) |
180 | 180 |
data.stream_no = streamNo |
181 | 181 |
elif data.stream_no is None: |
182 |
data.stream_no = self.ui.tableWidgetHMBData.item(0, column).data(Qt.UserRole).stream_no |
|
182 |
for _row in range(self.ui.tableWidgetHMBData.rowCount()): |
|
183 |
if _row == row: |
|
184 |
continue |
|
185 |
item = self.ui.tableWidgetHMBData.item(_row, column) |
|
186 |
if item is not None: |
|
187 |
data = item.data(Qt.UserRole) |
|
188 |
data.stream_no = data.stream_no |
|
189 |
break |
|
183 | 190 |
except Exception as ex: |
184 | 191 |
print('error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, |
185 | 192 |
sys.exc_info()[-1].tb_lineno)) |
DTI_PID/DTI_PID/SymbolAttrEditorDialog.py | ||
---|---|---|
33 | 33 |
if combobox: |
34 | 34 |
if combobox.currentText() == 'HMB': |
35 | 35 |
app_doc_data = AppDocData.instance() |
36 |
attrs = app_doc_data.get_hmb_attributes() |
|
36 | 37 |
editor = QComboBox(parent) |
37 |
editor.addItems(app_doc_data.hmbTable.names)
|
|
38 |
editor.addItems([attr.Attribute for attr in attrs])
|
|
38 | 39 |
|
39 | 40 |
return editor |
40 | 41 |
|
내보내기 Unified diff