diff --git a/app/fwupgrade/logindialog.cpp b/app/fwupgrade/logindialog.cpp
index 9936b484..9651066a 100644
--- a/app/fwupgrade/logindialog.cpp
+++ b/app/fwupgrade/logindialog.cpp
@@ -26,8 +26,7 @@ void LoginDialog::on_btnLogin_clicked()
{
if (ui->editAccount->text() != m_account || ui->editPassword->text() != m_password)
{
- QMessageBox msg(QMessageBox::Information, tr("tips"), tr("wrong account or password"), QMessageBox::Yes, this);
- msg.setButtonText(QMessageBox::Yes, tr("yes"));
+ QMessageBox msg(QMessageBox::Information, tr("tips"), tr("wrong account or password"), QMessageBox::Ok, this);
msg.exec();
return;
}
diff --git a/app/fwupgrade/mainwindow.cpp b/app/fwupgrade/mainwindow.cpp
index 3166d137..0bc6294b 100644
--- a/app/fwupgrade/mainwindow.cpp
+++ b/app/fwupgrade/mainwindow.cpp
@@ -364,8 +364,7 @@ void MainWindow::on_btnGetVersionList_clicked()
if (m_vVersion.empty())
{
- QMessageBox msg(QMessageBox::Information, tr("tips"), tr("no version available"), QMessageBox::Yes, this);
- msg.setButtonText(QMessageBox::Yes, tr("yes"));
+ QMessageBox msg(QMessageBox::Information, tr("tips"), tr("no version available"), QMessageBox::Ok, this);
msg.exec();
}
}
@@ -410,8 +409,7 @@ void MainWindow::on_btnOpenFilePath_clicked()
{
if (m_curFwVersion >= fileVersion)
{
- QMessageBox msg(QMessageBox::Information, tr("tips"), tr("the selected firmware is not newer than the current version"), QMessageBox::Yes, this);
- msg.setButtonText(QMessageBox::Yes, tr("yes"));
+ QMessageBox msg(QMessageBox::Information, tr("tips"), tr("the selected firmware is not newer than the current version"), QMessageBox::Ok, this);
msg.exec();
}
else
@@ -424,8 +422,6 @@ void MainWindow::on_btnOpenFilePath_clicked()
QMessageBox msg(QMessageBox::Question, tr("tips"),
tr("firmware file mismatch, continue?"),
QMessageBox::Yes | QMessageBox::No, this);
- msg.setButtonText(QMessageBox::Yes, tr("yes"));
- msg.setButtonText(QMessageBox::No, tr("no"));
msg.exec();
if (msg.clickedButton() == msg.button(QMessageBox::Yes))
{
@@ -446,8 +442,7 @@ void MainWindow::on_btnDownloadUpgrade_clicked()
if (m_curFwVersion >= versionNum)
{
- QMessageBox msg(QMessageBox::Information, tr("tips"), tr("the selected firmware is not newer than the current version"), QMessageBox::Yes, this);
- msg.setButtonText(QMessageBox::Yes, tr("yes"));
+ QMessageBox msg(QMessageBox::Information, tr("tips"), tr("the selected firmware is not newer than the current version"), QMessageBox::Ok, this);
msg.exec();
return;
}
@@ -497,8 +492,7 @@ void MainWindow::on_btnDownloadUpgrade_clicked()
}
else
{
- QMessageBox msg(QMessageBox::Information, tr("tips"), tr("download firmware fail"), QMessageBox::Yes, this);
- msg.setButtonText(QMessageBox::Yes, tr("yes"));
+ QMessageBox msg(QMessageBox::Information, tr("tips"), tr("download firmware fail"), QMessageBox::Ok, this);
msg.exec();
}
}
@@ -558,8 +552,7 @@ void MainWindow::on_btnClearRollCount_clicked()
else
info = tr("Roller scanned count reset failed.");
- QMessageBox msg(QMessageBox::Information, tr("tips"), info, QMessageBox::Yes, this);
- msg.setButtonText(QMessageBox::Yes, tr("yes"));
+ QMessageBox msg(QMessageBox::Information, tr("tips"), info, QMessageBox::Ok, this);
msg.exec();
}
@@ -575,32 +568,28 @@ void MainWindow::on_btnModifyPassword_clicked()
if (password != ui->editOldPassword->text())
{
- QMessageBox msg(QMessageBox::Information, tr("tips"), tr("old password is wrong"), QMessageBox::Yes, this);
- msg.setButtonText(QMessageBox::Yes, tr("yes"));
+ QMessageBox msg(QMessageBox::Information, tr("tips"), tr("old password is wrong"), QMessageBox::Ok, this);
msg.exec();
return;
}
if (ui->editNewPassword->text().isEmpty())
{
- QMessageBox msg(QMessageBox::Information, tr("tips"), tr("new password can not be empty"), QMessageBox::Yes, this);
- msg.setButtonText(QMessageBox::Yes, tr("yes"));
+ QMessageBox msg(QMessageBox::Information, tr("tips"), tr("new password can not be empty"), QMessageBox::Ok, this);
msg.exec();
return;
}
if (ui->editNewPassword->text() != ui->editNewPassword_2->text())
{
- QMessageBox msg(QMessageBox::Information, tr("tips"), tr("new password is inconsistent"), QMessageBox::Yes, this);
- msg.setButtonText(QMessageBox::Yes, tr("yes"));
+ QMessageBox msg(QMessageBox::Information, tr("tips"), tr("new password is inconsistent"), QMessageBox::Ok, this);
msg.exec();
return;
}
if (HGBASE_ERR_OK != HGBase_SetProfileString(cfgPath, "login", "password", passwordEncrypt(ui->editNewPassword->text()).toStdString().c_str()))
{
- QMessageBox msg(QMessageBox::Information, tr("tips"), tr("modify password fail"), QMessageBox::Yes, this);
- msg.setButtonText(QMessageBox::Yes, tr("yes"));
+ QMessageBox msg(QMessageBox::Information, tr("tips"), tr("modify password fail"), QMessageBox::Ok, this);
msg.exec();
return;
}
@@ -609,7 +598,6 @@ void MainWindow::on_btnModifyPassword_clicked()
ui->editNewPassword->setText("");
ui->editNewPassword_2->setText("");
- QMessageBox msg(QMessageBox::Information, tr("tips"), tr("modify password success"), QMessageBox::Yes, this);
- msg.setButtonText(QMessageBox::Yes, tr("yes"));
+ QMessageBox msg(QMessageBox::Information, tr("tips"), tr("modify password success"), QMessageBox::Ok, this);
msg.exec();
}
diff --git a/app/scanner/HGImgThumb.cpp b/app/scanner/HGImgThumb.cpp
index 3fe5a983..62517f6b 100644
--- a/app/scanner/HGImgThumb.cpp
+++ b/app/scanner/HGImgThumb.cpp
@@ -1236,8 +1236,6 @@ HGResult HGImgThumb::insertItems(const QStringList &fileNames, int pos, bool app
QMessageBox msg(QMessageBox::Question, tr("Question"),
info,
QMessageBox::Yes | QMessageBox::No, this);
- msg.setButtonText(QMessageBox::Yes, tr("yes"));
- msg.setButtonText(QMessageBox::No, tr("no"));
msg.exec();
if (msg.clickedButton() == msg.button(QMessageBox::Yes))
{
@@ -1252,8 +1250,6 @@ HGResult HGImgThumb::insertItems(const QStringList &fileNames, int pos, bool app
QMessageBox msg(QMessageBox::Question, tr("Question"),
info,
QMessageBox::Yes | QMessageBox::No, this);
- msg.setButtonText(QMessageBox::Yes, tr("yes"));
- msg.setButtonText(QMessageBox::No, tr("no"));
msg.exec();
if (msg.clickedButton() == msg.button(QMessageBox::Yes))
{
diff --git a/app/scanner/Scanner_zh_CN.qm b/app/scanner/Scanner_zh_CN.qm
index d7c67a19..c298758b 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 5c474b9a..121e3e3e 100644
--- a/app/scanner/Scanner_zh_CN.ts
+++ b/app/scanner/Scanner_zh_CN.ts
@@ -425,18 +425,16 @@ Continue to clear?
继续清除?
-
- 确定
+ 确定
-
- 取消
+ 取消
-
+
消息
@@ -446,49 +444,51 @@ Continue to clear?
暂无缓存文件
-
+
缓存清除成功。
-
+
警告
-
+
缓存清除失败或者未清除干净。
-
+
文件夹路径
-
-
+
+
提示
-
+
文件目录不能为空
-
+
创建缓存路径失败:
Dialog_Export
-
+
+
确定
-
+
+
取消
@@ -543,9 +543,9 @@ Page range will be "Chosen Pages".
多页保存(TIFF/PDF/OFD/GIF)
-
-
-
+
+
+
输入无效。
@@ -588,9 +588,8 @@ Page range will be 'Chosen Pages'.
OCR功能处理失败
-
- 确定
+ 确定
@@ -1424,9 +1423,8 @@ This operation will NOT rotate the files that may contain multiple pages, such a
提示
-
- 确定
+ 确定
@@ -1556,6 +1554,44 @@ Please make sure the two passwords are the same.
使用当前日期建立子文件夹
+
+ Dialog_SaveMessageBox
+
+
+
+ 询问
+
+
+
+
+
+
+
+
+
+ 是
+
+
+
+
+
+
+
+
+
+ 否
+
+
+
+
+ 保存并不再提醒
+
+
+
+
+ 图像已被修改,是否保存修改?
+
+
Dialog_SaveQuality
@@ -1806,17 +1842,17 @@ bug description:
-
+
提示
-
+
有文件已经加载,是否将其移动到末尾?
-
+
有文件已经加载,是否将其移动到指定位置?
@@ -1825,16 +1861,12 @@ bug description:
有图片已经被打开,是否移动这些图片的位置?
-
-
- 是
+ 是
-
-
- 否
+ 否
@@ -1851,397 +1883,395 @@ bug description:
MainWindow
-
+
华高扫描软件
-
+
文件
-
+
扫描
-
+
视图
-
+
menuAuto_Image_Size
自动图片尺寸
-
+
页面
-
+
多页
-
+
图像
-
+
旋转
-
+
用户
-
+
信息
-
+
设备
-
+
工具栏
-
+
打开...
-
+
插入本地文件...
-
+
保存
-
+
另存为...
-
+
导出...
-
+
关闭选中项
-
+
关闭所有项
-
+
图像信息
-
+
退出
-
+
扫描设置...
-
+
扫描
-
+
扫描单张
-
+
扫描至...
-
+
全屏显示
-
+
适应视图框尺寸
-
+
适应视图框宽度
-
+
真实大小
-
+
放大
-
+
缩小
-
+
工具栏
-
+
状态栏
-
+
缩略图栏
-
+
色彩信息
-
+
上一张
-
+
下一张
-
+
第一张
-
+
最后一张
-
+
跳转至...
-
+
上一页
-
+
下一页
-
+
第一页
-
+
最后一页
-
+
亮度/对比度/伽马...
-
+
左旋转90度
-
+
右旋转90度
-
+
旋转180度
-
+
多页旋转...
-
+
自动裁剪...
-
+
登录...
-
+
密码修改...
-
+
登出
-
+
日志管理...
-
+
缓存设置...
-
+
耗材状态...
-
+
帮助
-
+
关于...
-
+
从扫描插入...
-
+
清除滚轴计数
-
+
图像编辑...
-
+
书籍排序
-
+
自动保存
-
+
检查更新...
-
+
意见反馈...
-
+
导出设备日志
-
+
导出驱动日志
-
+
删除选中项
-
+
华高扫描软件
-
+
多列显示
-
+
移动到...
-
+
插入文件
-
+
没有发现扫描仪
-
-
-
-
-
-
+
+
+
+
+
询问
-
-
+
图像已被修改。
是否保存修改?
-
+
文件已丢失,是否删除?
@@ -2250,7 +2280,7 @@ bug description:
已连接
-
+
已断开连接
@@ -2267,17 +2297,17 @@ bug description:
扫描完成
-
+
清空并启动扫描
-
+
不清空并启动扫描
-
+
图像列表中已存在图像。
@@ -2292,12 +2322,12 @@ Do you want to clear?
磁盘空间不足,请删除不需要的文件,以保证有足够的空间
-
+
打开图片
-
+
插入图片
@@ -2310,238 +2340,238 @@ Do you want to clear?
保存失败
-
+
黑白
-
+
256级灰度
-
+
24位彩色
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
请手动唤醒设备
-
+
显示缩略图栏
-
+
隐藏缩略图栏
-
+
取消
-
-
-
+
+
+
保存成功
-
-
+
+
图片名在列表中已存在
-
+
请至少选中一张图片再进行导出
-
+
文件名
-
+
文件路径
-
+
文件大小
-
+
创建时间
-
+
修改时间
-
+
访问时间
-
+
格式
-
+
宽度
-
+
高度
-
+
深度
-
+
色彩模式
-
+
每英寸像素点
-
+
打印尺寸
-
+
帧
-
+
无
-
+
黑白
-
+
灰度
-
+
彩色
-
+
警告
-
+
设备正在运行!
请先结束扫描。
-
+
图像处理失败
-
+
OCR初始化错误
-
+
OCR错误
-
+
文件不存在
-
+
加载动态库失败
-
+
文件数据错误
-
+
图像格式处理错误
-
+
内存不足
-
+
错误
-
-
+
+
语言切换成功,下次启动软件时生效!
-
+
您确定彻底删除选中项文件?
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
已唤醒设备
@@ -2551,18 +2581,18 @@ Please finish scanning first.
就绪
+
-
+
-
无法访问“我的文档”,
请前往“扫描至”更换可访问的扫描目录再进行扫描。
-
+
文件访问权限不足
@@ -2575,47 +2605,47 @@ Please finish scanning first.
图像处理失败
-
+
您确定要断开设备:
-
+
吗?
-
-
+
+
关闭
-
+
提示
-
+
未获取到其他版本
-
-
+
+
设备不支持该操作
-
-
+
+
IO错误
-
-
+
+
错误
@@ -2630,17 +2660,17 @@ Continue to close?
是否继续关闭?
-
+
是否确定登出管理员账户?
-
+
确认操作
-
+
你确定要清除滚轴计数吗
@@ -2649,19 +2679,19 @@ Continue to close?
请重新进入关于界面以获取最新值
-
-
+
+
-
-
+
+
-
+
滚轴张数
@@ -2672,13 +2702,13 @@ Continue to close?
-
+
华高扫描软件
-
+
成功
@@ -2696,20 +2726,20 @@ Continue to close?
-
+
失败
-
-
+
+
警告
-
-
+
+
当前路径磁盘空间不足,
@@ -2720,111 +2750,111 @@ Continue to close?
配置丢失
-
+
应用配置
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
启动失败
-
+
汉王扫描软件
-
+
立思辰扫描软件
-
+
沧田扫描软件
-
+
- Microtek DocWizard EX 扫描软件
+ Microtek DocWizard EX 扫描软件
-
+
语言
-
+
简体中文
-
+
English
-
+
自动保存
-
+
切换图片时,不提醒,直接保存编辑过的图片
-
+
显示状态栏
-
+
隐藏状态栏
-
+
显示工具栏
-
+
隐藏工具栏
-
+
启用图像信息
-
+
关闭图像信息
-
+
启用自动保存
-
+
取消自动保存
@@ -2834,66 +2864,42 @@ Continue to close?
切换图片时,自动保存编辑过的图像。若想取消,请取消勾选菜单项:图像->自动保存
-
-
-
-
-
-
-
-
-
-
-
-
-
- 确定
+ 确定
-
- 保存,不再提醒
+ 保存,不再提醒
-
-
-
-
-
-
-
-
-
-
- 取消
+ 取消
发现设备
-
+
重新连接
-
+
已经连接,但打开失败
-
+
存图失败:
-
-
+
+
创建文件夹失败:
@@ -2902,25 +2908,25 @@ Continue to close?
%1%2%3.%4
-
+
创建图片文件失败:
-
-
+
-
+
-
+
-
+
+
保存图片文件失败:
@@ -2930,74 +2936,74 @@ Continue to close?
启动安装程序失败!
-
+
有图像未保存,确定关闭?
-
+
发现设备 : %1
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
提示
-
+
确定关闭应用软件?
-
+
确认操作
-
+
您确定要清除滚轴计数吗
-
-
-
+
+
+
提示
-
-
+
+
辊轴计数已置零
-
-
+
+
重置滚轴计数失败
-
+
错误
-
+
文档丢失!文档可能已被删除或被重命名。
@@ -3038,21 +3044,21 @@ Are you sure to close?
<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>
@@ -3270,73 +3276,73 @@ Are you sure to close?
删除配置
-
+
现有配置方案:
-
+
改名
-
+
删除
-
+
应用
-
+
删除所有配置
-
+
配置信息:
-
-
+
+
确定
-
+
取消
-
+
配置方案管理
-
+
区域裁剪
-
+
自定义色调曲线
-
+
请选择覆盖原来的配置:
-
+
,或者新增配置
-
+
保存配置
@@ -3362,94 +3368,90 @@ No: add new configuration
否: 增加新的配置:
-
-
- 是
+ 是
-
-
- 否
+ 否
-
+
<h6><b>
-
+
覆盖原来配置:
-
+
新增配置
-
+
更名:
-
-
-
+
+
+
提示
-
+
配置名不能为空
-
-
+
+
配置名:
-
-
+
+
已存在
-
+
:</b></h6>
-
+
<p>
-
+
</p>
-
+
配置改名
-
-
+
+
确认删除配置
-
+
您确认要删除配置
-
+
?
@@ -3462,7 +3464,7 @@ No: add new configuration
’ 吗?
-
+
您确认要删除所有配置吗?
diff --git a/app/scanner/Scanner_zh_EN.qm b/app/scanner/Scanner_zh_EN.qm
index 45fe692e..9fd1b1ac 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 876f8609..672ea0d4 100644
--- a/app/scanner/Scanner_zh_EN.ts
+++ b/app/scanner/Scanner_zh_EN.ts
@@ -396,7 +396,7 @@
-
+
Information
@@ -418,48 +418,46 @@
Continue clearing?
-
- OK
+ OK
-
- Cancel
+ Cancel
-
+
Cache cleared successfully.
-
+
Warning
-
+
Failed to clear cache or not cleared.
-
+
Folder path
-
-
+
+
Prompt
-
+
File directory cannot be empty
-
+
Failed to create cache path:
@@ -516,9 +514,19 @@ The page range will be “selected pages”
Compression options
-
-
-
+
+
+ OK
+
+
+
+
+ Cancel
+
+
+
+
+
Input invalid.
@@ -553,9 +561,8 @@ The page range will be “selected pages”
Prompt
-
- OK
+ OK
@@ -1337,9 +1344,8 @@ This operation will not rotate files that may include multiple pages.Prompt
-
- OK
+ OK
@@ -1468,6 +1474,44 @@ Please make sure the two passwords are the same.
Create a subfolder using the current date
+
+ Dialog_SaveMessageBox
+
+
+
+ Ask
+
+
+
+
+
+
+
+
+
+ Yes
+
+
+
+
+
+
+
+
+
+ No
+
+
+
+
+ Save and do not prompt again
+
+
+
+
+ Image modified, save changes?
+
+
Dialog_WriteSettings
@@ -1657,29 +1701,25 @@ Please make sure the two passwords are the same.
-
+
Ask
-
-
- Yes
+ Yes
-
-
- No
+ No
-
+
A file is loaded; move it to the end?
-
+
A file is loaded; move it to the specified location?
@@ -1687,459 +1727,459 @@ Please make sure the two passwords are the same.
MainWindow
-
+
HUAGOSCAN scanning software
-
+
File
-
+
Scan
-
+
View
-
+
Automatic image size
-
+
Page
-
+
Multiple pages
-
+
Image
-
+
Rotate
-
+
User
-
+
Information
-
+
Device
-
+
Toolbar
-
+
Open...
-
+
Insert local file...
-
+
Save
-
+
Save as...
-
+
Export...
-
+
Close selected item
-
+
Close all items
-
+
Image information...
-
+
Exit
-
+
Scan settings
-
+
Scan
-
+
Scan single page
-
+
Scan to...
-
+
Fullscreen display
-
+
Fit view box size
-
+
Fit view box width
-
+
Real size
-
+
Zoom in
-
+
Zoom out
-
+
ToolBar
-
+
Status bar
-
+
Thumbnail bar
-
+
Color information
-
+
Previous
-
+
Next
-
+
First
-
+
Last
-
+
Jump to...
-
+
Previous page
-
+
Next page
-
+
First page
-
+
Last page
-
+
Brightness/ contrast/ gamma...
-
+
Rotate 90 degrees left
-
+
Rotate 90 degrees right
-
+
Rotate 180 degrees
-
+
Rotate multiple pages...
-
+
Auto crop...
-
+
Login...
-
+
Change password...
-
+
Logout
-
+
Log management...
-
+
Cache settings...
-
+
Consumable status...
-
+
Help
-
+
About...
-
+
Insert from scan...
-
+
Clear roller count
-
+
Image edit...
-
+
Book sorting
-
+
Auto save
-
+
Check for updates...
-
+
Opinions and feedback...
-
+
Export device log...
-
+
Export drive log...
-
+
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
@@ -2149,59 +2189,33 @@ Please make sure the two passwords are the same.
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
+ Yes
-
- Save, do not prompt again
+ Save, do not prompt again
-
-
-
-
-
-
-
-
-
-
- No
+ No
-
+
File lost; delete?
@@ -2210,380 +2224,380 @@ 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?
@@ -2596,37 +2610,37 @@ Are you sure to close?
<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
@@ -2637,13 +2651,13 @@ Are you sure to close?
-
+
HUAGOSCAN scanning software
-
+
successfully
@@ -2654,14 +2668,14 @@ Are you sure to close?
-
+
failed
-
-
+
+
Error
@@ -2671,117 +2685,117 @@ Are you sure to close?
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?
@@ -2945,170 +2959,166 @@ Please go to “Scan to” and change the accessible scan folder and then perfor
hg_settingdialog
-
+
Existing configuration plan:
-
+
Rename
-
+
Delete
-
+
Apply
-
+
Delete all configurations
-
+
Configuration information:
-
-
+
+
OK
-
+
Cancel
-
+
Configuration plan management
-
+
Regional crop
-
+
Custom tone curve
-
+
Please select overwrite original configuration:
-
+
, or add new configuration
-
+
Save configuration
-
+
Overwrite original configuration:
-
+
Add new configuration
-
+
Rename:
-
-
-
+
+
+
Prompt
-
+
Configuration name cannot be blank
-
-
+
+
Configuration name:
-
-
+
+
already exists
-
+
<h6><b>
-
+
:</b></h6>
-
+
<p>
-
+
</p>
-
+
Rename configuration
-
-
+
+
Delete configuration
-
+
Are you sure you want to delete configuration
-
+
?
-
-
- Yes
+ Yes
-
-
- No
+ No
-
+
Are you sure you want to delete all configurations?
diff --git a/app/scanner/dialog_clrcache.cpp b/app/scanner/dialog_clrcache.cpp
index a66f9f6a..e9b2dc8c 100644
--- a/app/scanner/dialog_clrcache.cpp
+++ b/app/scanner/dialog_clrcache.cpp
@@ -54,8 +54,6 @@ void Dialog_ClrCache::on_btn_clr_clicked()
QMessageBox msg(QMessageBox::Question, tr("Question"),
tr("Main window contains temporary files, clear cache would remove all of them.\n Continue to clear?"),
QMessageBox::Yes | QMessageBox::No, this);
- msg.setButtonText(QMessageBox::Yes, tr("yes"));
- msg.setButtonText(QMessageBox::No, tr("no"));
msg.exec();
if (msg.clickedButton() != msg.button(QMessageBox::Yes))
{
diff --git a/app/scanner/dialog_exportimagefile.cpp b/app/scanner/dialog_exportimagefile.cpp
index 5a73d79f..342aba9f 100644
--- a/app/scanner/dialog_exportimagefile.cpp
+++ b/app/scanner/dialog_exportimagefile.cpp
@@ -282,7 +282,6 @@ void Dialog_ExportImageFile::on_finish(int ret)
{
QString str = (ret == HGBASE_ERR_OK) ? tr("export succeed") : tr("export failed: ") + MainWindow::getLogInfo(ret);
QMessageBox msg(QMessageBox::Information, tr("tip"), str, QMessageBox::Ok, this);
- msg.setButtonText(QMessageBox::Ok, tr("ok"));
close();
msg.exec();
}
diff --git a/app/scanner/dialog_multirotateimagefile.cpp b/app/scanner/dialog_multirotateimagefile.cpp
index c5350a17..a30569dd 100644
--- a/app/scanner/dialog_multirotateimagefile.cpp
+++ b/app/scanner/dialog_multirotateimagefile.cpp
@@ -138,7 +138,6 @@ void Dialog_MultiRotateImageFile::on_finish(int ret)
{
QString str = (ret == HGBASE_ERR_OK) ? tr("operation success") : tr("multirotate operation failed: ") + MainWindow::getLogInfo(ret);
QMessageBox msg(QMessageBox::Information, tr("tip"), str, QMessageBox::Ok, this);
- msg.setButtonText(QMessageBox::Ok, tr("ok"));
close();
msg.exec();
}
diff --git a/app/scanner/dialog_savemessagebox.cpp b/app/scanner/dialog_savemessagebox.cpp
new file mode 100644
index 00000000..08ff20fb
--- /dev/null
+++ b/app/scanner/dialog_savemessagebox.cpp
@@ -0,0 +1,36 @@
+#include "dialog_savemessagebox.h"
+#include "ui_dialog_savemessagebox.h"
+
+Dialog_SaveMessageBox::Dialog_SaveMessageBox(QWidget *parent) :
+ QDialog(parent),
+ ui(new Ui::Dialog_SaveMessageBox)
+{
+ ui->setupUi(this);
+
+ setWindowFlags(Qt::Dialog | Qt::WindowCloseButtonHint);
+ ui->pbtn_yesToAll->setText(tr("save, do not remind again"));
+ ui->label->setText(tr("modified, save it?"));
+}
+
+Dialog_SaveMessageBox::~Dialog_SaveMessageBox()
+{
+ delete ui;
+}
+
+void Dialog_SaveMessageBox::on_pbtn_yes_clicked()
+{
+ m_result = result_Yes;
+ accept();
+}
+
+void Dialog_SaveMessageBox::on_pbtn_yesToAll_clicked()
+{
+ m_result = result_YesToAll;
+ accept();
+}
+
+void Dialog_SaveMessageBox::on_pbtn_No_clicked()
+{
+ m_result = result_No;
+ reject();
+}
diff --git a/app/scanner/dialog_savemessagebox.h b/app/scanner/dialog_savemessagebox.h
new file mode 100644
index 00000000..94e7ce75
--- /dev/null
+++ b/app/scanner/dialog_savemessagebox.h
@@ -0,0 +1,39 @@
+#ifndef DIALOG_SAVEMESSAGEBOX_H
+#define DIALOG_SAVEMESSAGEBOX_H
+
+#include
+
+namespace Ui {
+class Dialog_SaveMessageBox;
+}
+
+class Dialog_SaveMessageBox : public QDialog
+{
+ Q_OBJECT
+
+public:
+ explicit Dialog_SaveMessageBox(QWidget *parent = nullptr);
+ ~Dialog_SaveMessageBox();
+
+enum Result
+{
+ result_Yes = 0,
+ result_YesToAll,
+ result_No
+};
+
+ Result m_result;
+
+
+private slots:
+ void on_pbtn_yes_clicked();
+
+ void on_pbtn_yesToAll_clicked();
+
+ void on_pbtn_No_clicked();
+
+private:
+ Ui::Dialog_SaveMessageBox *ui;
+};
+
+#endif // DIALOG_SAVEMESSAGEBOX_H
diff --git a/app/scanner/dialog_savemessagebox.ui b/app/scanner/dialog_savemessagebox.ui
new file mode 100644
index 00000000..56f5502f
--- /dev/null
+++ b/app/scanner/dialog_savemessagebox.ui
@@ -0,0 +1,109 @@
+
+
+ Dialog_SaveMessageBox
+
+
+
+ 0
+ 0
+ 387
+ 104
+
+
+
+ Dialog
+
+
+ -
+
+
-
+
+
+ Qt::Horizontal
+
+
+
+ 40
+ 20
+
+
+
+
+ -
+
+
+ TextLabel
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+ 40
+ 20
+
+
+
+
+
+
+ -
+
+
-
+
+
+ Qt::Horizontal
+
+
+
+ 40
+ 20
+
+
+
+
+ -
+
+
+ Yes
+
+
+
+ -
+
+
+ Yes to All
+
+
+
+ -
+
+
+ No
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+ 40
+ 20
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/scanner/hg_settingdialog.cpp b/app/scanner/hg_settingdialog.cpp
index 05755e47..94a8e18f 100644
--- a/app/scanner/hg_settingdialog.cpp
+++ b/app/scanner/hg_settingdialog.cpp
@@ -1914,8 +1914,6 @@ void hg_settingdialog::slot_pushButton_scheme_management(void)
QMessageBox msg(QMessageBox::Question, tr("be sure to delete the configuration"),
tr("Are you sure you want to delete the configuration \"") + text + tr("\" ?"), QMessageBox::Yes | QMessageBox::No, this);
- msg.setButtonText(QMessageBox::Yes, tr("yes"));
- msg.setButtonText(QMessageBox::No, tr("no"));
msg.exec();
if (msg.clickedButton() != msg.button(QMessageBox::Yes))
return;
@@ -1938,8 +1936,6 @@ void hg_settingdialog::slot_pushButton_scheme_management(void)
{
QMessageBox msg(QMessageBox::Question, tr("be sure to delete the configuration"),
tr("Are you sure you want to delete the configuration?"), QMessageBox::Yes | QMessageBox::No, this);
- msg.setButtonText(QMessageBox::Yes, tr("yes"));
- msg.setButtonText(QMessageBox::No, tr("no"));
msg.exec();
if (msg.clickedButton() != msg.button(QMessageBox::Yes))
return;
diff --git a/app/scanner/mainwindow.cpp b/app/scanner/mainwindow.cpp
index ed1df0ef..e0941cd9 100644
--- a/app/scanner/mainwindow.cpp
+++ b/app/scanner/mainwindow.cpp
@@ -32,6 +32,7 @@
#include "dialog_upgrade.h"
#include "dialog_feedback.h"
#include "dialog_upgradefirmware.h"
+#include "dialog_savemessagebox.h"
#include "hg_settingdialog.h"
#include "base/HGInfo.h"
#include "huagao/hgscanner_error.h"
@@ -613,30 +614,32 @@ void MainWindow::on_currItemChanged(int index)
bool save = false;
if(auto_save_changes_)
{
- // 閸掑洦宕查崶鍓у閺冭绱濋懛顏勫З娣囨繂鐡ㄧ紓鏍帆鏉╁洨娈戦崶鎯у剼閵嗗倽瀚㈤幆鍐插絿濞戝牞绱濈拠宄板絿濞戝牆瀣€闁褰嶉崡鏇€嶉敍姘禈閸?>閼奉亜濮╂穱婵嗙摠
QString info(tr("Automatically save the edited the edited iamge when switching pictures. To cancel, uncheck the menu item: image-> automatically save"));
m_wndStatusBar->setDeviceStatusInfo(info, false);
save = true;
}
- else {
- QMessageBox msg(QMessageBox::Question, tr("Question"),
- tr("modified, save it?"),
- QMessageBox::Yes | QMessageBox::No | QMessageBox::YesToAll, this);
- msg.setButtonText(QMessageBox::Yes, tr("yes"));
- msg.setButtonText(QMessageBox::YesToAll, tr("save, do not remind again"));
- msg.setButtonText(QMessageBox::No, tr("no"));
- msg.exec();
- if (msg.clickedButton() == msg.button(QMessageBox::No))
+ else
+ {
+ Dialog_SaveMessageBox dlg(this);
+ if (dlg.exec())
{
- m_modify = false;
- }
- else {
- save = true;
- auto_save_changes_ = msg.clickedButton() == msg.button(QMessageBox::YesToAll);
- if(auto_save_changes_)
+ if (dlg.m_result == dlg.result_Yes)
+ {
+ save = true;
+ }
+ else if (dlg.m_result == dlg.result_YesToAll)
+ {
+ save = true;
+ auto_save_changes_ = true;
ui->act_autoSave->setChecked(true);
+ }
+ else if (dlg.m_result == dlg.result_No)
+ {
+ m_modify = false;
+ }
}
}
+
if(save)
{
save_from_changed_ = true;
@@ -677,8 +680,6 @@ void MainWindow::on_currItemChanged(int index)
QMessageBox msg(QMessageBox::Question, tr("Question"),
tr("file lost, remove it?"),
QMessageBox::Yes | QMessageBox::No, this);
- msg.setButtonText(QMessageBox::Yes, tr("yes"));
- msg.setButtonText(QMessageBox::No, tr("no"));
msg.exec();
if (msg.clickedButton() == msg.button(QMessageBox::Yes))
{
@@ -1698,8 +1699,6 @@ void MainWindow::startSaveMessageBox(QWidget* parent)
QMessageBox msg(QMessageBox::Question, tr("Question"),
tr("modified, save it?"),
QMessageBox::Yes | QMessageBox::No, parent);
- msg.setButtonText(QMessageBox::Yes, tr("yes"));
- msg.setButtonText(QMessageBox::No, tr("no"));
msg.exec();
if (msg.clickedButton() != msg.button(QMessageBox::Yes))
{
@@ -2493,8 +2492,6 @@ void MainWindow::closeEvent(QCloseEvent *e)
QMessageBox msg(QMessageBox::Question, tr("Question"),
tr("There are pictures that have not been saved.\nAre you sure to close?"),
QMessageBox::Yes | QMessageBox::No, this);
- msg.setButtonText(QMessageBox::Yes, tr("yes"));
- msg.setButtonText(QMessageBox::No, tr("no"));
msg.exec();
if (msg.clickedButton() != msg.button(QMessageBox::Yes))
{
@@ -2507,8 +2504,6 @@ void MainWindow::closeEvent(QCloseEvent *e)
QMessageBox msg(QMessageBox::Question, tr("tips"),
tr("Are you sure to close?"),
QMessageBox::Yes | QMessageBox::No, this);
- msg.setButtonText(QMessageBox::Yes, tr("yes"));
- msg.setButtonText(QMessageBox::No, tr("no"));
msg.exec();
if (msg.clickedButton() != msg.button(QMessageBox::Yes))
{
@@ -2942,8 +2937,6 @@ void MainWindow::on_act_signOut_triggered()
QMessageBox msg(QMessageBox::Question, tr("Question"),
tr("Sure to sign out administrator account?"), QMessageBox::Yes | QMessageBox::No);
- msg.setButtonText(QMessageBox::Yes, tr("yes"));
- msg.setButtonText(QMessageBox::No, tr("no"));
msg.exec();
if(msg.clickedButton() == msg.button(QMessageBox::Yes))
{
@@ -2997,8 +2990,6 @@ void MainWindow::on_act_clearRoller_triggered()
QMessageBox msg(QMessageBox::Question, tr("confirm operation"),
tr("are you sure to clear the roller count?"),
QMessageBox::Yes | QMessageBox::No, this);
- msg.setButtonText(QMessageBox::Yes, tr("yes"));
- msg.setButtonText(QMessageBox::No, tr("no"));
msg.exec();
if(msg.clickedButton() != msg.button(QMessageBox::Yes))
return;
@@ -3085,8 +3076,6 @@ void MainWindow::my_url_handler(const QUrl& url)
QMessageBox msg(QMessageBox::Question, tr("confirm the operation"),
tr("Are you sure to clear the rollor acount?"),
QMessageBox::Yes | QMessageBox::No, this);
- msg.setButtonText(QMessageBox::Yes, tr("yes"));
- msg.setButtonText(QMessageBox::No, tr("no"));
msg.exec();
if(msg.clickedButton() == msg.button(QMessageBox::Yes))
{
@@ -3136,6 +3125,7 @@ void MainWindow::on_act_about_triggered()
info.push_back(tr("CopyRight: © %1
").arg(QString::fromStdString(about->copyright)));
const char* cmp[] = {
+ BRAND_TITLE_DEVICE_MODEL,
about->version,
BRAND_TITLE_FIRM_VERSION,
BRAND_TITLE_SERIAL_NUM,
@@ -3874,7 +3864,6 @@ void MainWindow::upgradeApp(QString pkgPath)
QMessageBox msg(QMessageBox::Critical, tr("error"),
tr("start failed!"),
QMessageBox::Ok, this);
- msg.setButtonText(QMessageBox::Ok, tr("yes"));
msg.exec();
}
}
@@ -4215,8 +4204,6 @@ void MainWindow::on_scanOptions_changed(const QString &device, const QString &op
QMessageBox msg(QMessageBox::Question, title,
tr("Are you sure to close ") + device + tr(" ?"),
QMessageBox::Yes | QMessageBox::No, this);
- msg.setButtonText(QMessageBox::Yes, tr("yes"));
- msg.setButtonText(QMessageBox::No, tr("no"));
msg.exec();
if(msg.clickedButton() == msg.button(QMessageBox::Yes))
{
@@ -4383,7 +4370,6 @@ void MainWindow::on_act_simpCN_triggered()
QMessageBox msg(QMessageBox::Information, tr("tips"),
tr("The language switch is successful and takes effect the next time the software is started!"),
QMessageBox::Ok, this);
- msg.setButtonText(QMessageBox::Ok, tr("yes"));
msg.exec();
}
@@ -4403,7 +4389,6 @@ void MainWindow::on_act_English_triggered()
QMessageBox msg(QMessageBox::Information, tr("tips"),
tr("The language switch is successful and takes effect the next time the software is started!"),
QMessageBox::Ok, this);
- msg.setButtonText(QMessageBox::Ok, tr("yes"));
msg.exec();
}
@@ -4442,8 +4427,6 @@ void MainWindow::on_act_deleteFile_triggered()
QMessageBox msg(QMessageBox::Question, tr("tips"), tr("Are you sure to delete selected file?"),
QMessageBox::Yes | QMessageBox::No, this);
- msg.setButtonText(QMessageBox::Yes, tr("yes"));
- msg.setButtonText(QMessageBox::No, tr("no"));
msg.exec();
if (msg.clickedButton() == msg.button(QMessageBox::Yes))
{
diff --git a/app/upgrade/main.cpp b/app/upgrade/main.cpp
index ce11f08c..ad53d916 100644
--- a/app/upgrade/main.cpp
+++ b/app/upgrade/main.cpp
@@ -101,7 +101,6 @@ int main(int argc, char *argv[])
QMessageBox msg(QMessageBox::Information, QObject::tr("tip"),
QObject::tr("install succeed!"),
QMessageBox::Ok);
- msg.setButtonText(QMessageBox::Ok, QObject::tr("yes"));
msg.exec();
if (!AppIsRun(appName))
@@ -112,7 +111,6 @@ int main(int argc, char *argv[])
QMessageBox msg(QMessageBox::Critical, QObject::tr("error"),
QObject::tr("install failed!") + "\n" + w.getUpgradeFailInfo(),
QMessageBox::Ok);
- msg.setButtonText(QMessageBox::Ok, QObject::tr("yes"));
msg.exec();
}
}