HGGitLab

Commit 6f280095 authored by yangjiaxuan's avatar yangjiaxuan

调整扫描开始和结束部分的宏定义

parent 9dbdf178
......@@ -146,6 +146,7 @@ void dialog_log::on_flag_changed(void)
void dialog_log::closeEvent(QCloseEvent *event)
{
flag_ = 0;
slot_stop();
}
void dialog_log::slot_stop(void)
{
......
......@@ -791,15 +791,25 @@ void MainWindow::on_new_image(void *img)
void MainWindow::on_scan_working()
{
m_wndStatusBar->setDeviceStatusInfo(tr("scan starting..."));
#if defined(HG_CMP_MSC) && defined(APP_USE_TWAIN)
//
#else
m_dialog_log->add_log(tr("scan starting..."), false);
m_dialog_log->add_flag(INFO_DLG_FLAG_PROGRESS);
m_dialog_log->show();
#endif
m_wndStatusBar->setDeviceStatusInfo(tr("scan starting..."));
set_actions_enabled(false);
}
void MainWindow::on_scan_finish()
{
#if defined(HG_CMP_MSC) && defined(APP_USE_TWAIN)
//
#else
m_dialog_log->add_log(tr("scan finished"), false);
m_dialog_log->remove_flag(INFO_DLG_FLAG_PROGRESS);
#endif
if (nullptr != m_scanImgFmtWriter)
{
HGImgFmt_CloseImageWriter(m_scanImgFmtWriter);
......@@ -808,8 +818,6 @@ void MainWindow::on_scan_finish()
m_scanFileName.clear();
}
m_wndStatusBar->setDeviceStatusInfo(tr("scan finished"));
m_dialog_log->add_log(tr("scan finished"), false);
m_dialog_log->remove_flag(INFO_DLG_FLAG_PROGRESS);
set_actions_enabled(true);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment