개정판 273f1e40
add symbol flip state
Change-Id: I18bc8f061f7f791e1996cf69bcefedbc97124450
DTI_PID/DTI_PID/ItemPropertyTableWidget.py | ||
---|---|---|
372 | 372 |
self.setItem(5, 1, QTableWidgetItem(self.tr("OWNER"))) |
373 | 373 |
self.setItem(6, 1, QTableWidgetItem(self.tr("Message"))) |
374 | 374 |
elif issubclass(type(item), SymbolSvgItem): |
375 |
self.setRowCount(6)
|
|
375 |
self.setRowCount(7)
|
|
376 | 376 |
self.setItem(0, 1, QTableWidgetItem(self.tr("UID"))) |
377 | 377 |
self.setItem(1, 1, QTableWidgetItem(self.tr("Name"))) |
378 | 378 |
self.setItem(2, 1, QTableWidgetItem(self.tr("Type"))) |
379 | 379 |
self.setItem(3, 1, QTableWidgetItem(self.tr("Angle"))) |
380 | 380 |
self.setItem(4, 1, QTableWidgetItem(self.tr("Origin"))) |
381 |
self.setItem(5, 1, QTableWidgetItem(self.tr("OWNER"))) |
|
381 |
self.setItem(5, 1, QTableWidgetItem(self.tr("Flip"))) |
|
382 |
self.setItem(6, 1, QTableWidgetItem(self.tr("OWNER"))) |
|
382 | 383 |
elif type(item) is QEngineeringNoteItem: |
383 | 384 |
self.setRowCount(2) |
384 | 385 |
self.setItem(0, 1, QTableWidgetItem(self.tr("Note No"))) |
... | ... | |
688 | 689 |
self.setItem(2, 3, QTableWidgetItem(self._item.type)) |
689 | 690 |
self.setItem(3, 3, QTableWidgetItem(str(round(self._item.rotation())))) |
690 | 691 |
self.setItem(4, 3, QTableWidgetItem(str(self._item.origin))) |
692 |
self.setItem(5, 3, QTableWidgetItem('Yes' if self._item.flip == 1 else 'No')) |
|
691 | 693 |
owner_item = QTableWidgetItem( |
692 | 694 |
'{}'.format('None' if self._item.owner is None else str(self._item.owner))) |
693 |
self.setItem(5, 3, owner_item)
|
|
695 |
self.setItem(6, 3, owner_item)
|
|
694 | 696 |
|
695 | 697 |
for index in range(self.rowCount()): |
696 | 698 |
item = self.item(index, 3) |
... | ... | |
700 | 702 |
""" show icon item """ |
701 | 703 |
attr = SymbolAttr() |
702 | 704 |
attr.AttributeType = "OWNER" |
703 |
self.show_icon_item(5, 2, attr)
|
|
704 |
self.item(5, 1).setData(Qt.UserRole, attr)
|
|
705 |
self.show_icon_item(6, 2, attr)
|
|
706 |
self.item(6, 1).setData(Qt.UserRole, attr)
|
|
705 | 707 |
|
706 | 708 |
if type(self._item) is not QEngineeringSpecBreakItem and type(self._item) is not QEngineeringErrorItem: |
707 | 709 |
self.show_item_properties(self._item) |
내보내기 Unified diff