개정판 5e37db94
issue #578: 11 remove same line no
Change-Id: I5039379c977e1fcc16ce8bd535231b5de5c4a35b
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
2438 | 2438 |
|
2439 | 2439 |
for connectedItem in line_run.items: |
2440 | 2440 |
if issubclass(type(connectedItem), SymbolSvgItem): self.itemTreeWidget.addTreeItem(treeItem, connectedItem) |
2441 |
#for connectedItem in line_run.items: |
|
2442 |
# if issubclass(type(connectedItem), SymbolSvgItem): self.itemTreeWidget.addTreeItem(treeItem, connectedItem) |
|
2441 | 2443 |
|
2442 | 2444 |
docData.tracerLineNos.append(item) |
2443 | 2445 |
|
DTI_PID/DTI_PID/Shapes/EngineeringLineNoTextItem.py | ||
---|---|---|
172 | 172 |
""" |
173 | 173 |
from TextItemFactory import TextItemFactory |
174 | 174 |
from SymbolAttr import SymbolAttr |
175 |
import uuid |
|
175 | 176 |
|
176 | 177 |
item = None |
177 | 178 |
|
179 |
uidNode = node.find('UID') |
|
180 |
uid = uidNode.text if uidNode is not None else uuid.uuid4() # generate UUID |
|
178 | 181 |
location = node.find('LOCATION').text if node.find('LOCATION') is not None else '0,0' |
179 | 182 |
x = float(location.split(',')[0]) |
180 | 183 |
y = float(location.split(',')[1]) |
... | ... | |
190 | 193 |
attr = SymbolAttr.fromXml(attr_node) |
191 | 194 |
item.attrs[attr] = attr_node.text |
192 | 195 |
|
196 |
item.uid = uid |
|
193 | 197 |
item.loc = (x, y) |
194 | 198 |
item.size = (width, height) |
195 | 199 |
item.angle = angle |
내보내기 Unified diff