프로젝트

일반

사용자정보

개정판 d36e059c

IDd36e059c3e0dd8f054623065d9dc156355ccf94d
상위 1b8f2469
하위 f672d70a

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

issue #622: save alarm and save test

Change-Id: Id46625b9d3cf60077314082b78eab7f0e733d9ff

차이점 보기:

DTI_PID/DTI_PID/ConfigurationDialog.py
464 464
        shortcut.activated.connect(self.reject)
465 465
        # up to here
466 466

  
467
        # disable now
468
        self.ui.label_47.hide()
469
        self.ui.radioButtonOCRLocal.hide()
470
        self.ui.radioButtonOCRServer.hide()
471
        # up to here
472

  
467 473
    def set_page_segmentation_modes(self):
468 474
        """show page segmentation modes"""
469 475
        try:
DTI_PID/DTI_PID/MainWindow.py
763 763
            #                                           QMessageBox.Yes | QMessageBox.No):
764 764
            #    self.actionSaveCliked()
765 765
            #    return True
766
            if QMessageBox.Yes == QMessageBox.question(self, self.tr('Continue?'),
766
            if QMessageBox.Ignore == QMessageBox.question(self, self.tr('Continue?'),
767 767
                                                       self.tr('Changes may not have been saved.'),
768
                                                       QMessageBox.Yes | QMessageBox.Cancel):
768
                                                       QMessageBox.Ignore | QMessageBox.Cancel):
769 769
                return False
770
            return True
770 771

  
771 772
    '''
772 773
        @brief      action save click event
......
2047 2048
        from datetime import datetime
2048 2049
        from RecognitionDialog import QRecognitionDialog
2049 2050

  
2051
        # save alarm
2052
        self.save_alarm_enable(False)
2053

  
2050 2054
        app_doc_data = AppDocData.instance()
2051 2055
        project = app_doc_data.getCurrentProject()
2052 2056
        app_doc_data.needReOpening = None
......
2103 2107
                                                           sys.exc_info()[-1].tb_lineno)
2104 2108
            self.addMessage.emit(MessageType.Error, message)
2105 2109

  
2110
        # save alarm
2111
            self.save_alarm_enable(True)
2112

  
2106 2113
    '''
2107 2114
        @brief      recognize symbol and text
2108 2115
        @author     humkyung
......
2670 2677
        from QEngineeringFlowArrowItem import QEngineeringFlowArrowItem
2671 2678
        from EngineeringLineItem import QEngineeringLineItem
2672 2679
        from EngineeringUnknownItem import QEngineeringUnknownItem
2680
        #from SaveWorkCommand import SaveWorkCommand
2673 2681

  
2674 2682
        try:
2675 2683
            docData = AppDocData.instance()
......
2753 2761
            else:
2754 2762
                message = 'can\'t found {}'.format(diffFilePath)
2755 2763
                self.addMessage.emit(MessageType.Normal, message)
2764

  
2765
            #self.dbUpdate()
2766
            #SaveWorkCommand.save_to_xml()
2756 2767
        except Exception as ex:
2757 2768
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename,
2758 2769
                                                           sys.exc_info()[-1].tb_lineno)

내보내기 Unified diff

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