개정판 735aac62
build issue #000: edit size text item save
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
1731 | 1731 |
maxValue = maxValue + len(list(root.iter('LINE_NO'))) |
1732 | 1732 |
maxValue = maxValue + len(list(root.iter('LINE'))) |
1733 | 1733 |
maxValue = maxValue + len(list(root.iter('UNKNOWN'))) |
1734 |
maxValue = maxValue + len(list(root.iter('SIZETEXT'))) |
|
1734 | 1735 |
self.progress.setMaximum(maxValue) |
1735 | 1736 |
|
1736 | 1737 |
for symbol in root.find('SYMBOLS').iter('SYMBOL'): |
... | ... | |
1799 | 1800 |
self.progress.setValue(self.progress.value() + 1) |
1800 | 1801 |
|
1801 | 1802 |
QApplication.processEvents() |
1803 |
|
|
1804 |
# SIZE TEXT |
|
1805 |
for text in root.find('SIZETEXT').iter('ATTRIBUTE'): |
|
1806 |
item = QEngineeringTextItem.fromXml(text) |
|
1807 |
if item is not None: |
|
1808 |
uid = text.find('UID') |
|
1809 |
attributeValue = text.find('ATTRIBUTEVALUE') |
|
1810 |
name = text.find('NAME').text |
|
1811 |
item.transfer.onRemoved.connect(self.itemRemoved) |
|
1812 |
self.addTextItemToScene(item) |
|
1813 |
|
|
1814 |
self.progress.setValue(self.progress.value() + 1) |
|
1815 |
|
|
1816 |
QApplication.processEvents() |
|
1802 | 1817 |
|
1803 | 1818 |
for line in root.find('LINEINFOS').iter('LINE'): |
1804 | 1819 |
item = QEngineeringLineItem.fromXml(line) |
내보내기 Unified diff