개정판 f46260ea
issue #000: fix symbol attr and recognize
Change-Id: I91ff75e2264c279b7bf0ec507a468e9f643224b2
DTI_PID/DTI_PID/RecognitionDialog.py | ||
---|---|---|
1745 | 1745 |
else: |
1746 | 1746 |
self.ui.lineCheckBox.setVisible(False) |
1747 | 1747 |
|
1748 |
''' |
|
1748 | 1749 |
if self.batch: |
1749 | 1750 |
self.ui.lineCheckBox.setCheckState(Qt.Checked) |
1750 | 1751 |
self.ui.lineCheckBox.setEnabled(False) |
... | ... | |
1754 | 1755 |
self.ui.checkBoxSymbol.setCheckState(Qt.Checked) |
1755 | 1756 |
self.ui.lineCheckBox.setCheckState(Qt.Unchecked) |
1756 | 1757 |
self.ui.checkBoxText.setCheckState(Qt.Unchecked) |
1758 |
''' |
|
1759 |
self.ui.checkBoxSymbol.setCheckState(Qt.Checked) |
|
1760 |
self.ui.lineCheckBox.setCheckState(Qt.Unchecked) |
|
1761 |
self.ui.checkBoxText.setCheckState(Qt.Unchecked) |
|
1757 | 1762 |
|
1758 | 1763 |
def checkBoxChanged(self, checkState): |
1759 | 1764 |
''' |
1760 |
@brief line cannot be eocognized alone
|
|
1765 |
@brief line and text cannot be reocognized alone
|
|
1761 | 1766 |
@author euisung |
1762 | 1767 |
@date 2019.05.14 |
1763 | 1768 |
''' |
DTI_PID/DTI_PID/SymbolAttrEditorDialog.py | ||
---|---|---|
158 | 158 |
for key,value in QSymbolAttrEditorDialog.SYMBOL_ATTR_DATA_TYPES.items(): |
159 | 159 |
attrTypeComboBox.addItem(key) |
160 | 160 |
|
161 |
if attr.IsProp >= 2:
|
|
161 |
if attr.IsProp >= 3:
|
|
162 | 162 |
attrTypeComboBox.setEnabled(False) |
163 | 163 |
if attr.AttributeType in [type for type , _ in QSymbolAttrEditorDialog.SYMBOL_ATTR_DATA_TYPES.items()]: |
164 | 164 |
self.ui.tableWidgetAttr.setCellWidget(row, 3, attrTypeComboBox) |
... | ... | |
208 | 208 |
attr.append(table.item(index, 5).text() if table.item(index, 5) is not None else '') # Expression |
209 | 209 |
attr.append(table.item(index, 6).tag if table.item(index, 6).tag is not None else 'ALL') # Target |
210 | 210 |
attr.append(index) |
211 |
attr.append(table.item(index, 0).tag.IsProp) |
|
211 |
attr.append(table.item(index, 0).tag.IsProp) if hasattr(table.item(index, 0), 'tag') else attr.append(0)
|
|
212 | 212 |
attrs.append(attr) |
213 | 213 |
|
214 | 214 |
appDocData.saveSymbolAttributes(self.currentTypeId, attrs) |
내보내기 Unified diff