프로젝트

일반

사용자정보

개정판 fd4ad20b

IDfd4ad20bb7228a00404221e50b9d633364fddf10
상위 9c62b3dd
하위 e13f6b89, 8f86253f

함의성이(가) 5년 이상 전에 추가함

issue #000: code arrange

Change-Id: I26703a6266ea3fafb882f26315cf12901d8e06d4

차이점 보기:

DTI_PID/DTI_PID/Shapes/EngineeringLineNoTextItem.py
277 277
                item.loc = (x, y)
278 278
                item.size = (width, height)
279 279
                item.angle = angle
280
                item.setToolTip('<b>{}</b><br>LINE NO={}'.format(str(item.uid), text))
280
                #item.setToolTip('<b>{}</b><br>LINE NO={}'.format(str(item.uid), text))
281 281

  
282 282
                """ apply freeze value """
283 283
                item.freeze_item.update_freeze(item.prop('Freeze'))
DTI_PID/DTI_PID/Shapes/EngineeringTextItem.py
453 453
            height = float(node.find('HEIGHT').text) if node.find('HEIGHT') is not None else 0
454 454
            angle = float(node.find('ANGLE').text) if node.find('ANGLE') is not None else 0
455 455
            value = node.find('VALUE').text
456
            attributeValue = node.find('ATTRIBUTEVALUE')
456
            #attributeValue = node.find('ATTRIBUTEVALUE')
457 457
            name = node.find('NAME').text
458 458
            textInfo = TextInfo(value, x, y, width, height, angle)
459 459
            
460
            item = TextItemFactory.instance().createTextItem(textInfo)
461
            if item is not None:
462
                    item.loc = (x, y)
463
                    item.size = (width, height)
464
                    item.angle = angle
465
            '''
460 466
            if name == 'NOTE':
461 467
                item = TextItemFactory.instance().createTextItem(textInfo)
462 468
                if item is not None:
......
487 493
                    item.loc = (x, y)
488 494
                    item.size = (width, height)
489 495
                    item.angle = angle
496
            '''
490 497

  
491 498
            # set uid and owner of item
492 499
            if item is not None:
DTI_PID/DTI_PID/Shapes/EngineeringVendorItem.py
41 41
        self._properties = { SymbolProp(None, 'Name', 'String'):None }
42 42

  
43 43
        self.setFlags(QGraphicsItem.ItemIsSelectable|QGraphicsItem.ItemIsFocusable)
44
        self.setToolTip(str(self.uid))
44 45

  
45 46
        self.transfer = Transfer()
46 47

  
......
110 111
                    matches = [prop for prop in vendorItem._properties.keys() if prop.Attribute == prop_node.attrib['Attribute']]
111 112
                    if matches:
112 113
                        vendorItem._properties[matches[0]] = matches[0].parse_value(prop_node.text) if prop_node.text else ''
114
            vendorItem.setToolTip(str(vendorItem.uid))
113 115
        except Exception as ex:
114 116
            from App import App
115 117
            from AppDocData import MessageType

내보내기 Unified diff

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