개정판 40db2c6f
dev issue #637: commit
DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py | ||
---|---|---|
13 | 13 |
from AppDocData import * |
14 | 14 |
from EngineeringConnectorItem import QEngineeringConnectorItem |
15 | 15 |
from EngineeringAbstractItem import QEngineeringAbstractItem |
16 |
from EngineeringSpecBreakItem import QEngineeringSpecBreakItem |
|
16 | 17 |
from UserInputAttribute import UserInputAttribute |
17 | 18 |
import SelectAttributeCommand |
18 | 19 |
|
... | ... | |
536 | 537 |
|
537 | 538 |
# 해당 Type의 attribute setting |
538 | 539 |
docData = AppDocData.instance() |
539 |
if self.type == 'Segment Breaks':
|
|
540 |
if type(attr) is QEngineeringSpecBreakItem:
|
|
540 | 541 |
attrs['Up Stream'] = '' |
541 | 542 |
attrs['Down Stream'] = '' |
542 | 543 |
|
... | ... | |
662 | 663 |
attributeNode = Element('SYMBOLATTRIBUTE') |
663 | 664 |
attributeNode.text = str(attr.uid) |
664 | 665 |
attributesNode.append(attributeNode) |
665 |
elif type(attr) is tuple and self.type == 'Segment Breaks':
|
|
666 |
elif type(attr) is tuple and type(self) is QEngineeringSpecBreakItem:
|
|
666 | 667 |
attributeNode = Element(attr[0].upper().replace(' ','')) |
667 | 668 |
attributeNode.text = str(attr[1] if attr[1] is not None else '') |
668 | 669 |
attributesNode.append(attributeNode) |
... | ... | |
673 | 674 |
currentPointModeIndexNode.text = str(self.currentPointModeIndex) |
674 | 675 |
node.append(currentPointModeIndexNode) |
675 | 676 |
|
676 |
if self.type == 'Segment Breaks':
|
|
677 |
if type(self) is QEngineeringSpecBreakItem:
|
|
677 | 678 |
specBreakOffsetXNode = Element('SPECBREAKOFFSETX') |
678 | 679 |
specBreakOffsetXNode.text = str(self.specBreak_offsetX) |
679 | 680 |
node.append(specBreakOffsetXNode) |
... | ... | |
812 | 813 |
from QEngineeringEquipmentItem import QEngineeringEquipmentItem |
813 | 814 |
from QEngineeringInstrumentItem import QEngineeringInstrumentItem |
814 | 815 |
from EngineeringNozzleItem import QEngineeringNozzleItem |
815 |
from EngineeringSpecBreakItem import QEngineeringSpecBreakItem |
|
816 |
|
|
816 | 817 |
from AppDocData import AppDocData |
817 | 818 |
|
818 | 819 |
docData = AppDocData.instance() |
내보내기 Unified diff