개정판 5244d622
issue #587: OPC에 연결되어 있는 Line 종류에 따라 Process/Instrument OPC로 구분한다
Change-Id: I9d81d9836df245cc3afc31fb72a95b4a91292ddc
DTI_PID/DTI_PID/Shapes/QEngineeringOPCItem.py | ||
---|---|---|
24 | 24 |
|
25 | 25 |
self._properties = \ |
26 | 26 |
{\ |
27 |
SymbolProp(None, 'Logical', 'String', Expression=None):'Process', |
|
27 | 28 |
SymbolProp(None, 'From', 'Text Item', Expression='self.From'):None, |
28 | 29 |
SymbolProp(None, 'To', 'Text Item', Expression='self.To'):None |
29 | 30 |
} |
... | ... | |
79 | 80 |
elif matches[0].connectors[1].connectedItem is self: # TO |
80 | 81 |
configs = app_doc_data.getConfigs('OPC Tag Rule', 'To Prefix') |
81 | 82 |
|
83 |
self.set_property('Logical', 'Process' if (matches[0].lineType == 'Primary' or matches[0].lineType == 'Secondary') else 'Instrument') # set OPC type |
|
84 |
|
|
82 | 85 |
rect = self.sceneBoundingRect() |
83 | 86 |
for attr in attributes: |
84 | 87 |
if rect.contains(attr.center()): |
내보내기 Unified diff