프로젝트

일반

사용자정보

개정판 9689cb6b

ID9689cb6b8ca0d76b59dd73a2f4ca1f87aea1301e
상위 e4366ced
하위 2c67ace9, cd4d302c

함의성이(가) 약 6년 전에 추가함

issue #000: fix item table key in and symbol probs

Change-Id: I4fc6531b45ddc2e6d2b6c4c428951583958ea026

차이점 보기:

DTI_PID/DTI_PID/ItemPropertyTableWidget.py
738 738
            if selectedIndexes[0].column() == 3 and self.item(selectedIndexes[0].row(), 1).text() == 'OWNER':
739 739
                items[0].owner = None
740 740
                self.show_item_property(items[0])
741
            elif len(items) == 1 and len(selectedIndexes) == 1 and type(items[0]) is not QEngineeringLineItem and type(items[0]) is not QEngineeringSpecBreakItem and self.item(selectedIndexes[0].row(), 0).text().find('CONN') is not 0:
741
            elif len(items) == 1 and len(selectedIndexes) == 1 and type(items[0]) is not QEngineeringLineItem and type(items[0]) is not QEngineeringSpecBreakItem and self.item(selectedIndexes[0].row(), 1).text().find('CONN') is not 0:
742 742
                if selectedIndexes[0].column() == 3:
743 743
                    attributeStr = self.item(selectedIndexes[0].row(), 1).text()
744 744
                    items[0].removeSelfAttr(attributeStr)
745 745
                    self.mainWindow.refreshResultPropertyTableWidget()
746 746
            elif len(items) == 1 and len(selectedIndexes) == 1 and (type(items[0]) is QEngineeringLineItem or issubclass(type(items[0]), SymbolSvgItem)):
747
                key_cell = self.item(selectedIndexes[0].row(), 0)
747
                key_cell = self.item(selectedIndexes[0].row(), 1)
748 748
                if selectedIndexes[0].column() == 3 and key_cell.text().find('CONN') is 0:
749 749
                    selectedUID = self.item(selectedIndexes[0].row(), 1).text()
750 750
                    connNum = int(key_cell.text().replace('CONN', ''))
DTI_PID/DTI_PID/Shapes/EngineeringEndBreakItem.py
34 34
        #attr.AttributeType = 'Comp Item'
35 35
        #self.attrs[attr] = None
36 36

  
37
        self._properties[SymbolProp(None, 'Connected Item', 'Comp Item')] = None
37
        self._properties = \
38
            {\
39
                SymbolProp(None, 'Connected Item', 'Comp Item'):None
40
            }
38 41

  
39 42
    '''
40 43
    def setPosition(self, loc, origin):
DTI_PID/DTI_PID/Shapes/EngineeringSpecBreakItem.py
36 36
        attr.AttributeType = 'Comp Item'
37 37
        self.attrs[attr] = None
38 38

  
39
        self._properties = \
40
            {\
41
                SymbolProp(None, 'Supplied By', 'String'):None
42
            }
43

  
39 44
    def is_connected(self, item):
40 45
        """ check if given item is connected to spec break """
41 46
        import uuid

내보내기 Unified diff

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