개정판 0b2e4877
issue #486: line save on going
DTI_PID/DTI_PID/ItemPropertyTableWidget.py | ||
---|---|---|
621 | 621 |
elif keyCell.text() == 'CONN' and type(items[0]) is QEngineeringLineNoTextItem: |
622 | 622 |
from SymbolAttr import SymbolAttr |
623 | 623 |
attr = SymbolAttr() |
624 |
attr.AttributeType == "Line Item" |
|
624 |
attr.AttributeType = "Line Item" |
|
625 |
cmd = SelectAttributeCommand.SelectAttributeCommand(items[0], attr, self.mainWindow.graphicsView) |
|
626 |
cmd.onSuccess.connect(self.onSuccessSelectAttribute) |
|
627 |
self.mainWindow.graphicsView.command = cmd |
|
628 |
elif keyCell.text().find('CONN') is 0 and type(items[0]) is QEngineeringLineItem: |
|
629 |
from SymbolAttr import SymbolAttr |
|
630 |
attr = SymbolAttr() |
|
631 |
attr.AttributeType = "Line Conn" |
|
632 |
attr.ConnNum = int(keyCell.text().replace('CONN', '')) |
|
625 | 633 |
cmd = SelectAttributeCommand.SelectAttributeCommand(items[0], attr, self.mainWindow.graphicsView) |
626 | 634 |
cmd.onSuccess.connect(self.onSuccessSelectAttribute) |
627 | 635 |
self.mainWindow.graphicsView.command = cmd |
628 | 636 |
#elif Qt.ItemIsEnabled is not self.item(row, column).flags(): |
629 | 637 |
# self.editItem(self.item(row, column)) |
638 |
|
|
630 | 639 |
|
631 | 640 |
''' |
632 | 641 |
@brief success select attribute |
내보내기 Unified diff