diff --git a/app/scanner/Scanner_zh_CN.qm b/app/scanner/Scanner_zh_CN.qm
index d72e51de..36f2e82b 100644
Binary files a/app/scanner/Scanner_zh_CN.qm and b/app/scanner/Scanner_zh_CN.qm differ
diff --git a/app/scanner/Scanner_zh_CN.ts b/app/scanner/Scanner_zh_CN.ts
index 7bba2c77..fae58b8c 100644
--- a/app/scanner/Scanner_zh_CN.ts
+++ b/app/scanner/Scanner_zh_CN.ts
@@ -2189,51 +2189,51 @@ bug description:
删除选中项
-
+
华高扫描软件
-
+
多列显示
-
+
移动到...
-
+
插入文件
-
-
-
+
+
+
没有发现扫描仪
-
-
-
-
-
-
+
+
+
+
+
+
询问
-
-
+
+
图像已被修改。
是否保存修改?
-
+
文件已丢失,是否删除?
@@ -2242,7 +2242,7 @@ bug description:
已连接
-
+
已断开连接
@@ -2259,17 +2259,17 @@ bug description:
扫描完成
-
+
清空并启动扫描
-
+
不清空并启动扫描
-
+
图像列表中已存在图像。
@@ -2284,12 +2284,12 @@ Do you want to clear?
磁盘空间不足,请删除不需要的文件,以保证有足够的空间
-
+
打开图片
-
+
插入图片
@@ -2302,245 +2302,259 @@ Do you want to clear?
保存失败
-
+
黑白
-
+
256级灰度
-
+
24位彩色
-
+
+
+
+
+
+
+
+
+
+
+
+ 请手动唤醒设备
+
+
+
显示缩略图栏
-
+
隐藏缩略图栏
-
+
取消
-
-
-
+
+
+
保存成功
-
-
+
+
图片名在列表中已存在
-
+
请至少选中一张图片再进行导出
-
+
文件名
-
+
文件路径
-
+
文件大小
-
+
创建时间
-
+
修改时间
-
+
访问时间
-
+
格式
-
+
宽度
-
+
高度
-
+
深度
-
+
色彩模式
-
+
每英寸像素点
-
+
打印尺寸
-
+
帧
-
+
无
-
+
黑白
-
+
灰度
-
+
彩色
-
+
警告
-
+
设备正在运行!
请先结束扫描。
-
+
图像处理失败
-
+
OCR初始化错误
-
+
OCR错误
-
+
文件不存在
-
+
加载动态库失败
-
+
文件数据错误
-
+
图像格式处理错误
-
+
内存不足
-
+
错误
-
-
+
+
语言切换成功,下次启动软件时生效!
-
+
您确定彻底删除选中项文件?
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
已唤醒设备
-
+
就绪
-
-
-
-
-
-
+
+
+
+
+
+
无法访问“我的文档”,
请前往“扫描至”更换可访问的扫描目录再进行扫描。
-
+
文件访问权限不足
@@ -2553,47 +2567,47 @@ Please finish scanning first.
图像处理失败
-
+
您确定要断开设备:
-
+
吗?
-
-
+
+
关闭
-
+
提示
-
+
未获取到其他版本
-
-
+
+
设备不支持该操作
-
-
+
+
IO错误
-
-
-
+
+
+
错误
@@ -2608,17 +2622,17 @@ Continue to close?
是否继续关闭?
-
+
是否确定登出管理员账户?
-
+
确认操作
-
+
你确定要清除滚轴计数吗
@@ -2627,34 +2641,36 @@ Continue to close?
请重新进入关于界面以获取最新值
-
+
+
-
+
+
-
+
滚轴张数
-
+
打开扫描仪
-
-
+
+
华高扫描软件
-
-
+
+
成功
@@ -2671,22 +2687,22 @@ Continue to close?
失败
-
-
+
+
失败
-
-
-
+
+
+
警告
-
-
-
+
+
+
当前路径磁盘空间不足,
请重新选择路径或及时清理磁盘空间。
@@ -2696,152 +2712,152 @@ Continue to close?
配置丢失
-
+
应用配置
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
启动失败
-
+
汉王扫描软件
-
+
立思辰扫描软件
-
+
沧田扫描软件
-
+
中晶扫描软件
-
+
语言
-
+
简体中文
-
+
English
-
+
自动保存
-
+
切换图片时,不提醒,直接保存编辑过的图片
-
+
显示状态栏
-
+
隐藏状态栏
-
+
显示工具栏
-
+
隐藏工具栏
-
+
启用图像信息
-
+
关闭图像信息
-
+
启用自动保存
-
+
取消自动保存
-
+
切换图片时,自动保存编辑过的图像。若想取消,请取消勾选菜单项:图像->自动保存
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
确定
-
+
保存,不再提醒
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
取消
@@ -2850,26 +2866,26 @@ Continue to close?
发现设备
-
+
重新连接
-
+
已经连接,但打开失败
-
-
+
+
存图失败:
-
-
-
-
+
+
+
+
创建文件夹失败:
@@ -2878,102 +2894,102 @@ Continue to close?
%1%2%3.%4
-
-
+
+
创建图片文件失败:
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
保存图片文件失败:
-
+
启动安装程序失败!
-
+
有图像未保存,确定关闭?
-
+
发现设备 : %1
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
提示
-
+
确定关闭应用软件?
-
+
确认操作
-
+
您确定要清除滚轴计数吗
-
-
-
+
+
+
提示
-
-
+
+
辊轴计数已置零
-
-
+
+
重置滚轴计数失败
-
+
错误
-
+
文档丢失!文档可能已被删除或被重命名。
@@ -3006,28 +3022,29 @@ Are you sure to close?
<br>导航地址: <a href='https://j.map.baidu.com/7e/1TO'>百度地图访问</a>
-
- 关于 %1
+ 关于 %1
-
- <p>%1</p><p>版本: %2<br>版权: © %3</p><p>%4%5%6%7%8%9</p>
+ <p>%1</p><p>版本: %2<br>版权: © %3</p><p>%4%5%6%7%8%9</p>
+
关于 %1
+
<p>版本: %1</p>
<p>版本: %1</p>
-
+
+
<p>版权: © %1</p>
<p>版权: © %1</p>
diff --git a/app/scanner/Scanner_zh_EN.qm b/app/scanner/Scanner_zh_EN.qm
index 1a6c2ccb..45fe692e 100644
Binary files a/app/scanner/Scanner_zh_EN.qm and b/app/scanner/Scanner_zh_EN.qm differ
diff --git a/app/scanner/Scanner_zh_EN.ts b/app/scanner/Scanner_zh_EN.ts
index 23941949..876f8609 100644
--- a/app/scanner/Scanner_zh_EN.ts
+++ b/app/scanner/Scanner_zh_EN.ts
@@ -2032,176 +2032,176 @@ Please make sure the two passwords are the same.
Delete selected item
-
+
Hanvon scanning software
-
+
LANXUM scanning software
-
+
CUMTENN scanning software
-
+
Microtek DocWizard EX V1.0
-
+
HUAGOSCAN scanning software
-
+
Language
-
+
简体中文
-
+
English
-
+
Multi-column display
-
+
Move to...
-
+
Insert file
-
-
-
+
+
+
No scanner detected
-
+
Auto save
-
+
Do not show prompt and save the edited images directly when switching images.
-
+
Show status bar
-
+
Hide status bar
-
+
Show toolbar
-
+
Hide toolbar
-
+
Enable image information
-
+
Disable image information
-
+
Enable auto save
-
+
Cancel auto save
-
+
Save edited images automatically when switching images. If you want to cancel, please deselect the menu item: Auto save images.
-
-
-
-
-
-
+
+
+
+
+
+
Ask
-
-
+
+
Image modified, save changes?
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
Yes
-
+
Save, do not prompt again
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
No
-
+
File lost; delete?
@@ -2210,561 +2210,578 @@ Please make sure the two passwords are the same.
Device discovered
-
+
Device discovered: %1
-
+
reconnect
-
+
connected, but failed to open
-
+
disconnected
-
-
-
+
+
+
Insufficient disk space for the current path.
Please reselect a path or clear disk space immediately.
-
-
-
+
+
+
Warning
-
-
+
+
Failed to save image:
-
-
-
-
+
+
+
+
Failed to create folder:
-
-
+
+
Failed to create image file:
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
Failed to save image:
-
+
Black and white
-
+
Grayscale
-
+
Color
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Failed to start
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+ Please wake up the device manually
+
+
+
+
+
+
+
+
+
+
+
+
Device is awake
-
+
Show thumbnail bar
-
+
Hide thumbnail bar
-
+
Clear and start scan
-
+
Do not clear and start scan
-
+
Cancel
-
+
Image already exists in the list of images.
Clear?
-
+
Open image
-
+
Insert image
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
prompt
-
-
-
+
+
+
Saved successfully
-
-
+
+
Image name already exists in the list
-
+
Please select at least one image and then export
-
+
File name
-
+
File path
-
+
File size
-
+
Creation time
-
+
Modification time
-
+
Access time
-
+
Format
-
+
Width
-
+
Height
-
+
Depth
-
+
Color mode
-
+
Pixels per inch
-
+
Print size
-
+
Frame
-
+
None
-
+
Black and white
-
+
Gray scale
-
+
Color
-
+
Warning
-
+
Device is currently running!
Please stop scanning first.
-
+
There are unsaved images; are you sure you want to close?
-
+
Are you sure you want to close?
-
+
Are you sure you want to log out of the administrator account?
-
+
Confirm operation
-
+
Are you sure you want to clear the roller count?
-
-
-
+
+
+
Prompt
-
-
+
+
Roller count reset to zero.
-
-
+
+
Failed to reset roller count.
-
+
Error
-
+
File lost! File may be deleted or renamed.
-
+
Confirm operation
-
+
Are you sure you want to clear the roller count?
-
- About %1
+ About %1
-
- <p>%1</p><p>Version: %2<br>Copyright: © %3</p><p>%4%5%6%7%8%9</p>
+ <p>%1</p><p>Version: %2<br>Copyright: © %3</p><p>%4%5%6%7%8%9</p>
+
About %1
+
<p>Version: %1</p>
-
+
+
<p>Copyright: © %1</p>
-
+
+
<p>%1: <a href='%2'>%3</a>
-
+
+
<p>%1: %2
-
+
Number of rollers
-
+
Open scanner
-
-
+
+
HUAGOSCAN scanning software
-
-
+
+
successfully
-
+
Ready
-
-
+
+
failed
-
-
-
+
+
+
Error
-
+
Failed to start!
-
-
-
-
-
-
+
+
+
+
+
+
Cannot access “My Documents”.
Please go to “Scan to” and change the accessible scan folder and then perform the scan.
-
+
Insufficient file access permissions
-
+
Image processing failed
-
+
OCR initialization error
-
+
OCR failed
-
+
File does not exist
-
+
Failed to load dynamic library
-
+
File data error
-
+
Image format processing error
-
+
Insufficient memory
-
+
Failed
-
+
Apply configuration
-
+
Are you sure you want to disconnect device:
-
+
?
-
-
+
+
Close
-
+
Prompt
-
+
No other versions obtained
-
-
+
+
Device does not support this operation
-
-
+
+
IO error
-
-
+
+
The language switch is successful and takes effect the next time the software is started!
-
+
Are you sure to delete the selected file completely?
diff --git a/app/scanner/mainwindow.cpp b/app/scanner/mainwindow.cpp
index bf0cc459..d296b46b 100644
--- a/app/scanner/mainwindow.cpp
+++ b/app/scanner/mainwindow.cpp
@@ -1329,16 +1329,27 @@ void MainWindow::on_continueScan()
ui->act_scannerSettings->setEnabled(false);
m_dialogLog->updateStatus(false, false);
m_dialogLog->show();
- QTime curTimer = QTime::currentTime().addMSecs(10000);
- while (QTime::currentTime() < curTimer)
+
+ if ("439" == getDevPid() || "9220" == getDevPid())
{
- QCoreApplication::processEvents(QEventLoop::AllEvents, 100);
+ m_dialogLog->addLog(tr("Please wake up the device manually"), true);
+ m_wndStatusBar->setDeviceStatusInfo(tr("Please wake up the device manually"), true);
}
+ else
+ {
+ QTime curTimer = QTime::currentTime().addMSecs(10000);
+ while (QTime::currentTime() < curTimer)
+ {
+ QCoreApplication::processEvents(QEventLoop::AllEvents, 100);
+ }
+
+ m_dialogLog->addLog(tr("already waked up device"), false);
+ m_wndStatusBar->setDeviceStatusInfo(tr("already waked up device"), false);
+ }
+
ui->menu_scan->setEnabled(true);
ui->act_acquire->setEnabled(true);
ui->act_scannerSettings->setEnabled(true);
- m_dialogLog->addLog(tr("already waked up device"), false);
- m_wndStatusBar->setDeviceStatusInfo(tr("already waked up device"), false);
m_dialogLog->updateStatus(true, false);
}
}
@@ -3247,16 +3258,27 @@ void MainWindow::on_act_acquire_triggered()
ui->act_scannerSettings->setEnabled(false);
m_dialogLog->updateStatus(false, false);
m_dialogLog->show();
- QTime curTimer = QTime::currentTime().addMSecs(10000);
- while (QTime::currentTime() < curTimer)
+
+ if ("439" == getDevPid() || "9220" == getDevPid())
{
- QCoreApplication::processEvents(QEventLoop::AllEvents, 100);
+ m_dialogLog->addLog(tr("Please wake up the device manually"), true);
+ m_wndStatusBar->setDeviceStatusInfo(tr("Please wake up the device manually"), true);
}
+ else
+ {
+ QTime curTimer = QTime::currentTime().addMSecs(10000);
+ while (QTime::currentTime() < curTimer)
+ {
+ QCoreApplication::processEvents(QEventLoop::AllEvents, 100);
+ }
+
+ m_dialogLog->addLog(tr("already waked up device"), false);
+ m_wndStatusBar->setDeviceStatusInfo(tr("already waked up device"), false);
+ }
+
ui->menu_scan->setEnabled(true);
ui->act_acquire->setEnabled(true);
ui->act_scannerSettings->setEnabled(true);
- m_dialogLog->addLog(tr("already waked up device"), false);
- m_wndStatusBar->setDeviceStatusInfo(tr("already waked up device"), false);
m_dialogLog->updateStatus(true, false);
}
}
@@ -3314,16 +3336,27 @@ void MainWindow::on_act_acquireSingle_triggered()
ui->act_scannerSettings->setEnabled(false);
m_dialogLog->updateStatus(false, false);
m_dialogLog->show();
- QTime curTimer = QTime::currentTime().addMSecs(10000);
- while (QTime::currentTime() < curTimer)
+
+ if ("439" == getDevPid() || "9220" == getDevPid())
{
- QCoreApplication::processEvents(QEventLoop::AllEvents, 100);
+ m_dialogLog->addLog(tr("Please wake up the device manually"), true);
+ m_wndStatusBar->setDeviceStatusInfo(tr("Please wake up the device manually"), true);
}
+ else
+ {
+ QTime curTimer = QTime::currentTime().addMSecs(10000);
+ while (QTime::currentTime() < curTimer)
+ {
+ QCoreApplication::processEvents(QEventLoop::AllEvents, 100);
+ }
+
+ m_dialogLog->addLog(tr("already waked up device"), false);
+ m_wndStatusBar->setDeviceStatusInfo(tr("already waked up device"), false);
+ }
+
ui->menu_scan->setEnabled(true);
ui->act_acquire->setEnabled(true);
ui->act_scannerSettings->setEnabled(true);
- m_dialogLog->addLog(tr("already waked up device"), false);
- m_wndStatusBar->setDeviceStatusInfo(tr("already waked up device"), false);
m_dialogLog->updateStatus(true, false);
}
}
@@ -3397,16 +3430,27 @@ void MainWindow::on_act_acquireInto_triggered()
ui->act_scannerSettings->setEnabled(false);
m_dialogLog->updateStatus(false, false);
m_dialogLog->show();
- QTime curTimer = QTime::currentTime().addMSecs(10000);
- while (QTime::currentTime() < curTimer)
+
+ if ("439" == getDevPid() || "9220" == getDevPid())
{
- QCoreApplication::processEvents(QEventLoop::AllEvents, 100);
+ m_dialogLog->addLog(tr("Please wake up the device manually"), true);
+ m_wndStatusBar->setDeviceStatusInfo(tr("Please wake up the device manually"), true);
}
+ else
+ {
+ QTime curTimer = QTime::currentTime().addMSecs(10000);
+ while (QTime::currentTime() < curTimer)
+ {
+ QCoreApplication::processEvents(QEventLoop::AllEvents, 100);
+ }
+
+ m_dialogLog->addLog(tr("already waked up device"), false);
+ m_wndStatusBar->setDeviceStatusInfo(tr("already waked up device"), false);
+ }
+
ui->menu_scan->setEnabled(true);
ui->act_acquire->setEnabled(true);
ui->act_scannerSettings->setEnabled(true);
- m_dialogLog->addLog(tr("already waked up device"), false);
- m_wndStatusBar->setDeviceStatusInfo(tr("already waked up device"), false);
m_dialogLog->updateStatus(true, false);
}
}
@@ -3479,16 +3523,27 @@ void MainWindow::on_act_insertFromScanner_triggered()
ui->act_scannerSettings->setEnabled(false);
m_dialogLog->updateStatus(false, false);
m_dialogLog->show();
- QTime curTimer = QTime::currentTime().addMSecs(10000);
- while (QTime::currentTime() < curTimer)
+
+ if ("439" == getDevPid() || "9220" == getDevPid())
{
- QCoreApplication::processEvents(QEventLoop::AllEvents, 100);
+ m_dialogLog->addLog(tr("Please wake up the device manually"), true);
+ m_wndStatusBar->setDeviceStatusInfo(tr("Please wake up the device manually"), true);
}
+ else
+ {
+ QTime curTimer = QTime::currentTime().addMSecs(10000);
+ while (QTime::currentTime() < curTimer)
+ {
+ QCoreApplication::processEvents(QEventLoop::AllEvents, 100);
+ }
+
+ m_dialogLog->addLog(tr("already waked up device"), false);
+ m_wndStatusBar->setDeviceStatusInfo(tr("already waked up device"), false);
+ }
+
ui->menu_scan->setEnabled(true);
ui->act_acquire->setEnabled(true);
ui->act_scannerSettings->setEnabled(true);
- m_dialogLog->addLog(tr("already waked up device"), false);
- m_wndStatusBar->setDeviceStatusInfo(tr("already waked up device"), false);
m_dialogLog->updateStatus(true, false);
}
}
@@ -4106,6 +4161,22 @@ void MainWindow::deleteUpgradePkg(const QString &cfgFilePath)
}
}
+QString MainWindow::getDevPid()
+{
+ VIDPID vidpid;
+ int vidpid_val;
+ unsigned int len = sizeof(int);
+ sane_io_control(dev_que_.handle(), IO_CTRL_CODE_GET_VIDPID, &vidpid_val, &len);
+ vidpid.Value = vidpid_val;
+ int vid = vidpid.VID;
+ int pid = vidpid.PID;
+ char buf[10];
+ char buf2[10];
+ sprintf(buf, "%x", vid);
+ sprintf(buf2, "%x", pid);
+ return QString::fromStdString(buf2);
+}
+
void MainWindow::on_scanOptions_changed(const QString &device, const QString &option, bool checked_now)
{
QString title(tr("app name"));
diff --git a/app/scanner/mainwindow.h b/app/scanner/mainwindow.h
index 10dab552..9bf95592 100644
--- a/app/scanner/mainwindow.h
+++ b/app/scanner/mainwindow.h
@@ -273,6 +273,7 @@ private:
void upgradeFwAndLockDevice();
void deleteOverdueLogFile(const QString& logFilePath);
void deleteUpgradePkg(const QString& cfgFilePath);
+ QString getDevPid();
private:
Ui::MainWindow *ui;
@@ -307,6 +308,16 @@ private:
}SAVEOPT;
SAVEOPT auto_save_info_;
+ union VIDPID
+ {
+ struct
+ {
+ unsigned short VID;
+ unsigned short PID;
+ };
+ unsigned int Value;
+ };
+
HGUInt m_dpi;
QString m_currFilePath;
int m_currIndex;
diff --git a/app/scanner/qt_zh_CN.ts b/app/scanner/qt_zh_CN.ts
index 775dfef5..3fb72f6c 100644
--- a/app/scanner/qt_zh_CN.ts
+++ b/app/scanner/qt_zh_CN.ts
@@ -1835,11 +1835,7 @@ Please finish scanning first.
- 关于 %1
-
-
-
-
+ 关于 %1
@@ -2178,6 +2174,10 @@ Are you sure to close?
+
+
+
+
Phonon::