개정판 128dbac3
issue #589: flow mark before remaster
Change-Id: I5729c2509fd789d3b4085abe961a7acced09209f
DTI_PID/DTI_PID/LineNoTracer.py | ||
---|---|---|
388 | 388 |
lineIndicator = [] |
389 | 389 |
vendor_packages = [item for item in worker.graphicsView.scene.items() if type(item) is QEngineeringVendorItem] |
390 | 390 |
end_breaks = [] |
391 |
flow_marks = [] |
|
391 |
#flow_marks = []
|
|
392 | 392 |
|
393 | 393 |
for end_break in [item for item in worker.graphicsView.scene.items() if type(item) is QEngineeringEndBreakItem]: |
394 | 394 |
if not end_break.prop('Freeze'): |
... | ... | |
548 | 548 |
end_break.transfer.onRemoved.connect(App.mainWnd().itemRemoved) |
549 | 549 |
end_break.addSvgItemToScene(worker.graphicsView.scene) |
550 | 550 |
|
551 |
''' |
|
551 | 552 |
"""make flow mark""" |
552 |
line_names = docdata.getSymbolListByType('type', 'Line')
|
|
553 |
line_names = docdata.getSymbolListByType('type', 'Flow Mark')
|
|
553 | 554 |
if len(line_names) is not 0: |
554 | 555 |
|
555 | 556 |
svgFileName = line_names[0].sName |
... | ... | |
605 | 606 |
if not flow_mark.prop('Freeze'): |
606 | 607 |
flow_mark.transfer.onRemoved.connect(App.mainWnd().itemRemoved) |
607 | 608 |
flow_mark.addSvgItemToScene(worker.graphicsView.scene) |
609 |
''' |
|
608 | 610 |
|
609 | 611 |
except Exception as ex: |
610 | 612 |
from App import App |
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
1632 | 1632 |
break |
1633 | 1633 |
if done: break |
1634 | 1634 |
|
1635 |
if type(item) is QEngineeringFlowMarkItem and item.parentItem(): |
|
1636 |
if item in item.parentItem()._flowMark: |
|
1637 |
item.parentItem()._flowMark.pop(item.parentItem()._flowMark.index(item)) |
|
1635 |
#if type(item) is QEngineeringFlowMarkItem and item.parentItem():
|
|
1636 |
# if item in item.parentItem()._flowMark:
|
|
1637 |
# item.parentItem()._flowMark.pop(item.parentItem()._flowMark.index(item))
|
|
1638 | 1638 |
|
1639 | 1639 |
if item.scene() is not None: item.scene().removeItem(item) |
1640 | 1640 |
except Exception as ex: |
내보내기 Unified diff