프로젝트

일반

사용자정보

개정판 fe6060ea

IDfe6060eace7559366c8ddf125218c96a32eead79
상위 9045487f
하위 6795de66

함의성이(가) 약 5년 전에 추가함

issue #1366: add server addeess option and spec break ongoing

Change-Id: Ice85881a505eaeccb6e67a939e7ded320306ac19

차이점 보기:

DTI_PID/DTI_PID/ItemPropertyTableWidget.py
16 16
import sys
17 17
import math
18 18
import re
19
import SelectAttributeCommand
19
import SelectAttributeCommand, SelectAttributeBatchCommand
20 20

  
21 21
from EngineeringAbstractItem import QEngineeringAbstractItem
22 22
from SymbolSvgItem import SymbolSvgItem
......
338 338
                self.setItem(2, 1, QTableWidgetItem(self.tr("Type")))
339 339
                self.setItem(3, 1, QTableWidgetItem(self.tr("Angle")))
340 340
                self.setItem(4, 1, QTableWidgetItem(self.tr("Origin")))
341
                self.setItem(5, 1, QTableWidgetItem(self.tr("OWNER")))
341
                self.setItem(5, 1, QTableWidgetItem(self.tr("Set Batch")))
342 342
                self.setItem(6, 1, QTableWidgetItem(self.tr("Set Specs")))
343 343
            elif type(item) is QEngineeringErrorItem:
344 344
                self.setRowCount(7)
......
1034 1034
                    cmd = SelectAttributeCommand.SelectAttributeCommand(items[0], attr, self.mainWindow.graphicsView)
1035 1035
                    cmd.onSuccess.connect(self.onSuccessSelectAttribute)
1036 1036
                    self.mainWindow.graphicsView.command = cmd
1037

  
1038 1037
                elif keyCell.text() == 'Set Specs':
1039 1038
                    from SpecBreakDialog import QSpecBreakDialog
1040 1039

  
......
1045 1044
                    except Exception as ex:
1046 1045
                        print('error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename,
1047 1046
                                                                   sys.exc_info()[-1].tb_lineno))
1047
                elif keyCell.text() == 'Set Batch':
1048
                    cmd = SelectAttributeBatchCommand.SelectAttributeBatchCommand(items[0], self.mainWindow.graphicsView)
1049
                    cmd.onSuccess.connect(self.onSuccessSelectAttribute)
1050
                    self.mainWindow.graphicsView.command = cmd
1051

  
1048 1052
            elif issubclass(type(attr), SymbolProp):
1049 1053
                attr = keyCell.data(Qt.UserRole)
1050 1054
                cmd = SelectAttributeCommand.SelectAttributeCommand(items[0], attr, self.mainWindow.graphicsView)
......
1056 1060
        @author     kyouho
1057 1061
        @date       2018.10.23
1058 1062
    '''
1059

  
1060 1063
    def onSuccessSelectAttribute(self, connItem=None):
1061 1064
        """ update item's properties after selecting """
1062 1065
        self.show_item_property(self._item)

내보내기 Unified diff

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