프로젝트

일반

사용자정보

개정판 00b01eeb

ID00b01eeb8f7df07515a314815cb3f0fc9e660954
상위 16a37794
하위 857d5558

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

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

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