Commit df5e27b261328c4f14ebb7ce04e9a6ac2e7f56c1
1 parent
659f92ed3a
Exists in
master
and in
2 other branches
GUI V1.0.11
- 시작시 버전 디버그 메시지 출력 - 프로그램 업로드 시 메시지 출력 세분화
Showing
3 changed files
with
21 additions
and
6 deletions
Show diff stats
app/gui/oven_control/config.cpp
... | ... | @@ -487,6 +487,8 @@ bool Config::loadProductInfo() |
487 | 487 | QString strTemp; |
488 | 488 | QMap<QString , QString> mapInfos; |
489 | 489 | |
490 | + qDebug() << QString("START GUI V%1.%2.%3").arg(MAJOR_VER).arg(MINOR_VER).arg(HOTFIX_VER); | |
491 | + | |
490 | 492 | FileProcessor::readFromInfoFile(mapInfos, QString(MODEL_INFO_FILE_NAME)); |
491 | 493 | |
492 | 494 | //m_strProductModelName = mapInfos[tr("모 델 명")]; | ... | ... |
app/gui/oven_control/define.h
app/gui/oven_control/fileprocessdlg.cpp
... | ... | @@ -661,7 +661,6 @@ void FileProcessDlg::programDownload(){ |
661 | 661 | void FileProcessDlg::onProgressFinished(){ |
662 | 662 | QString strDescPath; |
663 | 663 | QString strZipCmd; |
664 | - m_bRst = true; | |
665 | 664 | QProcess process; |
666 | 665 | |
667 | 666 | FileProcessor::detectUSB(strDescPath); |
... | ... | @@ -677,7 +676,7 @@ void FileProcessDlg::onProgressFinished(){ |
677 | 676 | |
678 | 677 | qDebug() << info.absoluteFilePath(); |
679 | 678 | |
680 | - if(m_nCfgtype == config_program_upload && m_bRst && info.exists()==true){ | |
679 | + if(m_nCfgtype == config_program_upload && info.exists()==true){ | |
681 | 680 | if(cookbooksrc.exists()){ |
682 | 681 | if(cookBookback.exists()){ |
683 | 682 | process.start("sh -c \"rm -r /prime/cookbook_back\""); |
... | ... | @@ -716,9 +715,23 @@ void FileProcessDlg::onProgressFinished(){ |
716 | 715 | process.start("sync"); |
717 | 716 | process.waitForFinished(); |
718 | 717 | qDebug() << QTime::currentTime(); |
719 | - ui->ctrLbRemainTime->setText(tr("CookBook Upload Success!.")); | |
718 | + if(m_bRst){ | |
719 | + ui->ctrLbRemainTime->setText(tr("Program & CookBook Upload Success!.")); | |
720 | + }else{ | |
721 | + ui->ctrLbRemainTime->setText(tr("CookBook Upload Success!.")); | |
722 | + } | |
720 | 723 | QTimer::singleShot(2000,this, SLOT(close())); |
721 | 724 | } |
725 | + else if(m_nCfgtype == config_program_upload){ | |
726 | + if(m_bRst){ | |
727 | + ui->ctrLbRemainTime->setText(tr("Program Upload Success")); | |
728 | + QTimer::singleShot(2000,this, SLOT(close())); | |
729 | + } | |
730 | + else{ | |
731 | + ui->ctrLbRemainTime->setText(tr("Program Upload Fail")); | |
732 | + QTimer::singleShot(2000,this, SLOT(close())); | |
733 | + } | |
734 | + } | |
722 | 735 | else{ |
723 | 736 | ui->ctrLbRemainTime->setText(tr("완료")); |
724 | 737 | QTimer::singleShot(2000,this, SLOT(close())); |
... | ... | @@ -728,7 +741,7 @@ void FileProcessDlg::onProgressFinished(){ |
728 | 741 | void FileProcessDlg::onErrorFired(QString Desc) |
729 | 742 | { |
730 | 743 | m_bRst = false; |
731 | - ui->ctrLbRemainTime->setText(QString("%1 %2").arg(Desc).arg(tr("에러 발생으로 종료합니다."))); | |
744 | + //ui->ctrLbRemainTime->setText(QString("%1 %2").arg(Desc).arg(tr("에러 발생으로 종료합니다."))); | |
732 | 745 | //QTimer::singleShot(1000,this, SLOT(close())); |
733 | 746 | } |
734 | 747 | ... | ... |