개정판 00b01eeb
issue #1048 :메인화면 수정 - 도면 오픈시 Loop 와 Log 초기화
Change-Id: I0e8be191a60beb46a792a5e02c3c5b5b79e2e076
HYTOS/HYTOS/MainWindow.py | ||
---|---|---|
310 | 310 |
self.treeWidgetDrawingList.header().setSectionResizeMode(2, QHeaderView.ResizeToContents) |
311 | 311 |
self.treeWidgetDrawingList.hideColumn(2) |
312 | 312 |
|
313 |
def clear_loop(self): |
|
314 |
self.tableWidgetLoop.setColumnCount(0) |
|
315 |
|
|
313 | 316 |
def initTableWidgetHMB(self): |
314 | 317 |
app_doc_data = AppDocData.instance() |
315 | 318 |
|
... | ... | |
740 | 743 |
self.tableWidgetLoop.clear() |
741 | 744 |
self.tableWidgetLoop.setColumnCount(len(loops) * 4) |
742 | 745 |
|
743 |
_col_names = [[loop.name, 'pressure', 'dP', 'density\nelevation'] for loop in loops]
|
|
746 |
_col_names = [[loop.name, 'pressure', 'Static\nLine\ndP_Eq', 'El.\nDensity\nEl.'] for loop in loops]
|
|
744 | 747 |
col_names = [] |
745 | 748 |
for col_name in _col_names: col_names.extend(col_name) |
746 | 749 |
self.tableWidgetLoop.setHorizontalHeaderLabels(col_names) |
750 |
self.tableWidgetLoop.horizontalHeader().setVisible(True) |
|
747 | 751 |
|
748 | 752 |
max_rows = 0 |
749 | 753 |
for col in range(len(loops)): |
... | ... | |
773 | 777 |
if not loops[col].density_elevations[loops[col].items[row]]: item.setBackground(Qt.red) |
774 | 778 |
self.tableWidgetLoop.setItem(row, col * 4 + 3, item) |
775 | 779 |
|
780 |
self.tableWidgetLoop.resizeColumnsToContents() |
|
781 |
self.tableWidgetLoop.resizeRowsToContents() |
|
776 | 782 |
''' |
777 | 783 |
@brief configuration |
778 | 784 |
''' |
... | ... | |
923 | 929 |
self.setAttributes(drawing) |
924 | 930 |
self.setMainWindowTitle(drawing.path) |
925 | 931 |
self.initTableWidgetHMB() |
932 |
self.clear_loop() |
|
933 |
self.clearlogs() |
|
926 | 934 |
## Load data on database |
927 | 935 |
|
928 | 936 |
self.symbolTreeWidget.initSymbolTreeWidget() |
내보내기 Unified diff