프로젝트

일반

사용자정보

개정판 273f1e40

ID273f1e409af1151eec35cecf6662ea62eb6e0e25
상위 ad3baca2
하위 ba93b63d

함의성이(가) 일년 이상 전에 추가함

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

클립보드 이미지 추가 (최대 크기: 500 MB)