개정판 e46783af
issue #587: support size text item for symbol
Change-Id: I454fdd5e02027fbb57eeb8fa3825d4a8e98651a2
DTI_PID/DTI_PID/SymbolAttrEditorDialog.py | ||
---|---|---|
21 | 21 |
This is symbol attribute editor dialog class |
22 | 22 |
""" |
23 | 23 |
|
24 |
SYMBOL_ATTR_DATA_TYPES = {'Symbol Item':-1, 'Text Item':-1, 'Tag No':-1, 'Valve Oper Code':-1, 'Comp Item':-1, 'Int':1, 'String':1} |
|
24 |
SYMBOL_ATTR_DATA_TYPES = {'Symbol Item':-1, 'Size Text Item':-1, 'Text Item':-1, 'Tag No':-1, 'Valve Oper Code':-1, 'Comp Item':-1, 'Int':1, 'String':1}
|
|
25 | 25 |
|
26 | 26 |
def __init__(self, parent, symbolType = None): |
27 | 27 |
QDialog.__init__(self, parent) |
... | ... | |
113 | 113 |
|
114 | 114 |
row = 0 |
115 | 115 |
for attr in attrs: |
116 |
item = QTableWidgetItem(attr.UID) # UID |
|
116 |
item = QTableWidgetItem(attr.UID) # UID
|
|
117 | 117 |
self.ui.tableWidgetAttr.setItem(row, 0, item) |
118 |
item = QTableWidgetItem(attr.Attribute) # Name |
|
118 |
item = QTableWidgetItem(attr.Attribute) # Name
|
|
119 | 119 |
self.ui.tableWidgetAttr.setItem(row, 1, item) |
120 |
item = QTableWidgetItem(attr.DisplayAttribute) # Display Name |
|
120 |
item = QTableWidgetItem(attr.DisplayAttribute) # Display Name
|
|
121 | 121 |
self.ui.tableWidgetAttr.setItem(row, 2, item) |
122 | 122 |
|
123 | 123 |
attrTypeComboBox = QComboBox() |
내보내기 Unified diff