개정판 f457910a
dev issue #637: commit for update
DTI_PID/DTI_PID/ItemPropertyTableWidget.py | ||
---|---|---|
311 | 311 |
if keyText is not None: |
312 | 312 |
keyItem.setText(keyText[1]) |
313 | 313 |
self.setItem(row, 0, keyItem) |
314 |
else: |
|
315 |
self.setItem(row, 0, keyItem) |
|
316 |
|
|
317 |
if self.symData.type == 'Segment Breaks' and (key == 'Up Stream' or key == 'Down Stream'): |
|
318 |
comboBox = QComboBox() |
|
319 |
comboBox.addItem('') |
|
320 |
|
|
314 | 321 |
|
315 | 322 |
|
323 |
#dd |
|
324 |
#self.mainWindow |
|
325 |
|
|
326 |
tempIndex = comboBox.findText(value) if comboBox.findText(value) != -1 else 0 |
|
327 |
comboBox.setCurrentIndex(tempIndex) |
|
328 |
self.setCellWidget(row, 1, comboBox) |
|
316 | 329 |
else: |
317 |
self.setItem(row, 0, keyItem)
|
|
330 |
self.setItem(row, 1, valueItem)
|
|
318 | 331 |
|
319 |
self.setItem(row, 1, valueItem) |
|
320 | 332 |
row = row + 1 |
321 | 333 |
# up to here |
322 | 334 |
|
... | ... | |
337 | 349 |
else: |
338 | 350 |
self.setRowCount(0) |
339 | 351 |
|
352 |
|
|
353 |
''' |
|
354 |
@brief find text item using uid |
|
355 |
@author kyouho |
|
356 |
@date ? |
|
357 |
''' |
|
340 | 358 |
def findTextItemFromUID(self, uid): |
341 | 359 |
items = [item for item in self.mainWindow.graphicsView.scene.items() if issubclass(type(item), QEngineeringTextItem)] |
342 | 360 |
for item in items: |
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
1559 | 1559 |
else: |
1560 | 1560 |
return False |
1561 | 1561 |
|
1562 |
''' |
|
1563 |
''' |
|
1564 |
#def findConnect |
|
1565 |
|
|
1562 | 1566 |
|
1563 | 1567 |
if __name__ == '__main__': |
1564 | 1568 |
from ProjectDialog import Ui_Dialog |
DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py | ||
---|---|---|
506 | 506 |
|
507 | 507 |
# 해당 Type의 attribute setting |
508 | 508 |
docData = AppDocData.instance() |
509 |
if self.type == 'Segment Breaks': |
|
510 |
attrs['Up Stream'] = '' |
|
511 |
attrs['Down Stream'] = '' |
|
512 |
|
|
509 | 513 |
symbolAttrs = docData.getSymbolAttribute(self.type) |
510 | 514 |
for attr in symbolAttrs: |
511 | 515 |
attrs[attr[0]] = '' |
512 | 516 |
|
517 |
|
|
513 | 518 |
for attr in self.attrs: |
514 | 519 |
if type(attr) is QEngineeringTextItem or issubclass(type(attr), SymbolSvgItem): |
515 | 520 |
attrs[attr.attribute] = attr.uid |
내보내기 Unified diff