개정판 a25e9bcd
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