프로젝트

일반

사용자정보

개정판 5244d622

ID5244d62253d9049c2cd1ab8e8435fd6e8a90d952
상위 ff77e799
하위 c1cd5609, d5e0659b, 39a2a688

백흠경이(가) 약 6년 전에 추가함

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

클립보드 이미지 추가 (최대 크기: 500 MB)