프로젝트

일반

사용자정보

개정판 a25e9bcd

IDa25e9bcdcfdd1660d19189c30c5ed0fcc5778d65
상위 d1e76237
하위 611d6b1f

김연진이(가) 약 5년 전에 추가함

issue #1201 : 2 Phase 계산식

Change-Id: If8b0516eb60c819a2699ad82741030acd29b12fa

차이점 보기:

HYTOS/HYTOS/RoughnessDialog.py
38 38
    def double_clicked(self, row):
39 39
        QDialog.accept(self)
40 40

  
41
    def show_dialog(self):
41
    def show_dialog(self, phase_type=None):
42 42
        self.init_units()
43
        self.init_roughness()
43
        self.init_roughness(phase_type)
44 44
        self.setWindowFlags(self.windowFlags() & ~Qt.WindowContextHelpButtonHint)
45 45
        self.exec_()
46 46

  
......
66 66

  
67 67
        return item
68 68

  
69
    def init_roughness(self):
69
    def init_roughness(self, phase_type):
70 70
        from AppDocData import AppDocData
71 71

  
72 72
        self.ui.tableWidget_Roughness.setColumnCount(6)
......
97 97
            self.ui.tableWidget_Roughness.hideColumn(3)
98 98
            self.ui.tableWidget_Roughness.hideColumn(4)
99 99

  
100
        roughness_list = AppDocData.instance().getRoughness()
100
        if phase_type == 'Mixed':
101
            roughness_list = AppDocData.instance().getRoughness('Mixed')
102
        else:
103
            roughness_list = AppDocData.instance().getRoughness('Normal')
104

  
101 105
        for roughness in roughness_list:
102 106
            row_count = self.ui.tableWidget_Roughness.rowCount()
103 107
            self.ui.tableWidget_Roughness.setRowCount(row_count + 1)

내보내기 Unified diff

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