调整设置界面询问新增配置对话框
This commit is contained in:
parent
dfcc2484d1
commit
b823e7effb
Binary file not shown.
|
@ -518,17 +518,17 @@ Page range will be 'Chosen Pages'.</source>
|
|||
<translation>停止导出</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="dialog_exportimagefile.cpp" line="282"/>
|
||||
<location filename="dialog_exportimagefile.cpp" line="283"/>
|
||||
<source>export failed: </source>
|
||||
<translation>导出失败: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="dialog_exportimagefile.cpp" line="283"/>
|
||||
<location filename="dialog_exportimagefile.cpp" line="284"/>
|
||||
<source>tip</source>
|
||||
<translation>提示</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="dialog_exportimagefile.cpp" line="282"/>
|
||||
<location filename="dialog_exportimagefile.cpp" line="283"/>
|
||||
<source>export succeed</source>
|
||||
<translation>导出完成</translation>
|
||||
</message>
|
||||
|
@ -541,7 +541,7 @@ Page range will be 'Chosen Pages'.</source>
|
|||
<translation type="vanished">OCR功能处理失败</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="dialog_exportimagefile.cpp" line="284"/>
|
||||
<location filename="dialog_exportimagefile.cpp" line="285"/>
|
||||
<source>ok</source>
|
||||
<translation>确定</translation>
|
||||
</message>
|
||||
|
@ -1080,22 +1080,22 @@ Page range will be 'Chosen Pages'.</source>
|
|||
<message>
|
||||
<location filename="dialog_input.ui" line="14"/>
|
||||
<source>Dialog</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="dialog_input.ui" line="29"/>
|
||||
<source>输入:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="dialog_input.ui" line="55"/>
|
||||
<source>Ok</source>
|
||||
<translation type="unfinished">确定</translation>
|
||||
<translation>确定</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="dialog_input.ui" line="68"/>
|
||||
<source>Cancel</source>
|
||||
<translation type="unfinished">取消</translation>
|
||||
<translation>取消</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
|
@ -1357,22 +1357,22 @@ This operation will NOT rotate the files that may contain multiple pages, such a
|
|||
<translation>停止批量旋转</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="dialog_multirotateimagefile.cpp" line="138"/>
|
||||
<location filename="dialog_multirotateimagefile.cpp" line="139"/>
|
||||
<source>operation success</source>
|
||||
<translation>操作成功</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="dialog_multirotateimagefile.cpp" line="138"/>
|
||||
<location filename="dialog_multirotateimagefile.cpp" line="139"/>
|
||||
<source>multirotate operation failed: </source>
|
||||
<translation>多流旋转操作失败: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="dialog_multirotateimagefile.cpp" line="139"/>
|
||||
<location filename="dialog_multirotateimagefile.cpp" line="140"/>
|
||||
<source>tip</source>
|
||||
<translation>提示</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="dialog_multirotateimagefile.cpp" line="140"/>
|
||||
<location filename="dialog_multirotateimagefile.cpp" line="141"/>
|
||||
<source>ok</source>
|
||||
<translation>确定</translation>
|
||||
</message>
|
||||
|
@ -1621,7 +1621,7 @@ Please make sure the two passwords are the same.</source>
|
|||
<translation type="vanished">取消</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="dialog_upgrade.cpp" line="17"/>
|
||||
<location filename="dialog_upgrade.cpp" line="16"/>
|
||||
<source>upgrade online</source>
|
||||
<translation>检查更新</translation>
|
||||
</message>
|
||||
|
@ -1654,17 +1654,17 @@ bug description:
|
|||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="dialog_upgrade.cpp" line="63"/>
|
||||
<location filename="dialog_upgrade.cpp" line="28"/>
|
||||
<source>The current version is the latest! The current version number is : </source>
|
||||
<translation>当前为最新版本!版本号为:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="dialog_upgrade.cpp" line="69"/>
|
||||
<location filename="dialog_upgrade.cpp" line="34"/>
|
||||
<source>Discover the new version : </source>
|
||||
<translation>发现新版本:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="dialog_upgrade.cpp" line="71"/>
|
||||
<location filename="dialog_upgrade.cpp" line="36"/>
|
||||
<source> ,the current version is : </source>
|
||||
<translation> ,当前版本为:</translation>
|
||||
</message>
|
||||
|
@ -2168,8 +2168,8 @@ bug description:
|
|||
<location filename="mainwindow.cpp" line="629"/>
|
||||
<location filename="mainwindow.cpp" line="1645"/>
|
||||
<location filename="mainwindow.cpp" line="1669"/>
|
||||
<location filename="mainwindow.cpp" line="2472"/>
|
||||
<location filename="mainwindow.cpp" line="2904"/>
|
||||
<location filename="mainwindow.cpp" line="2471"/>
|
||||
<location filename="mainwindow.cpp" line="2903"/>
|
||||
<source>Question</source>
|
||||
<translation>警告</translation>
|
||||
</message>
|
||||
|
@ -2278,191 +2278,191 @@ Do you want to clear?</source>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2120"/>
|
||||
<location filename="mainwindow.cpp" line="2186"/>
|
||||
<location filename="mainwindow.cpp" line="2268"/>
|
||||
<location filename="mainwindow.cpp" line="2185"/>
|
||||
<location filename="mainwindow.cpp" line="2267"/>
|
||||
<source>save succeed</source>
|
||||
<translation>保存成功</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2132"/>
|
||||
<location filename="mainwindow.cpp" line="2280"/>
|
||||
<location filename="mainwindow.cpp" line="2279"/>
|
||||
<source>find savePath in thumbnail</source>
|
||||
<translation>图片名在列表中已存在</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2304"/>
|
||||
<location filename="mainwindow.cpp" line="2303"/>
|
||||
<source>Please select at least one picture before export</source>
|
||||
<translation>请至少选中一张图片再进行导出</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2371"/>
|
||||
<location filename="mainwindow.cpp" line="2370"/>
|
||||
<source>File name</source>
|
||||
<translation>文件名</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2371"/>
|
||||
<location filename="mainwindow.cpp" line="2370"/>
|
||||
<source>File path</source>
|
||||
<translation>文件路径</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2371"/>
|
||||
<location filename="mainwindow.cpp" line="2370"/>
|
||||
<source>File size</source>
|
||||
<translation>文件大小</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2371"/>
|
||||
<location filename="mainwindow.cpp" line="2370"/>
|
||||
<source>Creation date/time</source>
|
||||
<translation>创建时间</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2371"/>
|
||||
<location filename="mainwindow.cpp" line="2370"/>
|
||||
<source>Modified date/time</source>
|
||||
<translation>修改时间</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2371"/>
|
||||
<location filename="mainwindow.cpp" line="2370"/>
|
||||
<source>Accessed date/time</source>
|
||||
<translation>访问时间</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2414"/>
|
||||
<location filename="mainwindow.cpp" line="2413"/>
|
||||
<source>Format</source>
|
||||
<translation>格式</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2414"/>
|
||||
<location filename="mainwindow.cpp" line="2413"/>
|
||||
<source>Width</source>
|
||||
<translation>宽度</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2414"/>
|
||||
<location filename="mainwindow.cpp" line="2413"/>
|
||||
<source>Height</source>
|
||||
<translation>高度</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2414"/>
|
||||
<location filename="mainwindow.cpp" line="2413"/>
|
||||
<source>depth</source>
|
||||
<translation>深度</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2414"/>
|
||||
<location filename="mainwindow.cpp" line="2413"/>
|
||||
<source>Color model</source>
|
||||
<translation>色彩模式</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2414"/>
|
||||
<location filename="mainwindow.cpp" line="2413"/>
|
||||
<source>DPI</source>
|
||||
<translation>每英寸像素点</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2414"/>
|
||||
<location filename="mainwindow.cpp" line="2413"/>
|
||||
<source>Print size</source>
|
||||
<translation>打印尺寸</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2414"/>
|
||||
<location filename="mainwindow.cpp" line="2413"/>
|
||||
<source>Frame</source>
|
||||
<translation>帧</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2428"/>
|
||||
<location filename="mainwindow.cpp" line="2427"/>
|
||||
<source>None</source>
|
||||
<translation>无</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2428"/>
|
||||
<location filename="mainwindow.cpp" line="2427"/>
|
||||
<source>Mono</source>
|
||||
<translation>黑白</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2428"/>
|
||||
<location filename="mainwindow.cpp" line="2427"/>
|
||||
<source>Gray</source>
|
||||
<translation>灰度</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2428"/>
|
||||
<location filename="mainwindow.cpp" line="2427"/>
|
||||
<source>Color</source>
|
||||
<translation>彩色</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2449"/>
|
||||
<location filename="mainwindow.cpp" line="2448"/>
|
||||
<source>Warning</source>
|
||||
<translation>警告</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2449"/>
|
||||
<location filename="mainwindow.cpp" line="2448"/>
|
||||
<source>Device is Running!
|
||||
Please finish scanning first.</source>
|
||||
<translation>设备正在运行!
|
||||
请先结束扫描。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3912"/>
|
||||
<location filename="mainwindow.cpp" line="3911"/>
|
||||
<source>Image processing failed</source>
|
||||
<translation>图像处理失败</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3916"/>
|
||||
<location filename="mainwindow.cpp" line="3915"/>
|
||||
<source>Ocr init failed</source>
|
||||
<translation>OCR初始化错误</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3920"/>
|
||||
<location filename="mainwindow.cpp" line="3919"/>
|
||||
<source>Ocr failed</source>
|
||||
<translation>OCR错误</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3924"/>
|
||||
<location filename="mainwindow.cpp" line="3923"/>
|
||||
<source>File does not exist</source>
|
||||
<translation>文件不存在</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3928"/>
|
||||
<location filename="mainwindow.cpp" line="3927"/>
|
||||
<source>Failed to load dynamic library</source>
|
||||
<translation>加载动态库失败</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3932"/>
|
||||
<location filename="mainwindow.cpp" line="3931"/>
|
||||
<source>File data error</source>
|
||||
<translation>文件数据错误</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3936"/>
|
||||
<location filename="mainwindow.cpp" line="3935"/>
|
||||
<source>Failed</source>
|
||||
<translation>其他错误</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1299"/>
|
||||
<location filename="mainwindow.cpp" line="1300"/>
|
||||
<location filename="mainwindow.cpp" line="3188"/>
|
||||
<location filename="mainwindow.cpp" line="3189"/>
|
||||
<location filename="mainwindow.cpp" line="3190"/>
|
||||
<location filename="mainwindow.cpp" line="3261"/>
|
||||
<location filename="mainwindow.cpp" line="3262"/>
|
||||
<location filename="mainwindow.cpp" line="3263"/>
|
||||
<location filename="mainwindow.cpp" line="3350"/>
|
||||
<location filename="mainwindow.cpp" line="3351"/>
|
||||
<location filename="mainwindow.cpp" line="3352"/>
|
||||
<location filename="mainwindow.cpp" line="3438"/>
|
||||
<location filename="mainwindow.cpp" line="3439"/>
|
||||
<location filename="mainwindow.cpp" line="3440"/>
|
||||
<source>already waked up device</source>
|
||||
<translation>已唤醒设备</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3571"/>
|
||||
<location filename="mainwindow.cpp" line="3570"/>
|
||||
<source>be ready</source>
|
||||
<translation>就绪</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3771"/>
|
||||
<location filename="mainwindow.cpp" line="3772"/>
|
||||
<location filename="mainwindow.cpp" line="3773"/>
|
||||
<location filename="mainwindow.cpp" line="3774"/>
|
||||
<location filename="mainwindow.cpp" line="3782"/>
|
||||
<location filename="mainwindow.cpp" line="3783"/>
|
||||
<location filename="mainwindow.cpp" line="3784"/>
|
||||
<location filename="mainwindow.cpp" line="3785"/>
|
||||
<source>folder limit</source>
|
||||
<translation>无法访问“我的文档”,
|
||||
请前往“扫描至”更换可访问的扫描目录再进行扫描。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3908"/>
|
||||
<location filename="mainwindow.cpp" line="3907"/>
|
||||
<source>Insufficient access rights</source>
|
||||
<translation>文件访问权限不足</translation>
|
||||
</message>
|
||||
|
@ -2475,47 +2475,47 @@ Please finish scanning first.</source>
|
|||
<translation type="obsolete">图像处理失败</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="4012"/>
|
||||
<location filename="mainwindow.cpp" line="4011"/>
|
||||
<source>Are you sure to close </source>
|
||||
<translation>您确定要关闭</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="4012"/>
|
||||
<location filename="mainwindow.cpp" line="4011"/>
|
||||
<source> ?</source>
|
||||
<translation>吗?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="4021"/>
|
||||
<location filename="mainwindow.cpp" line="4022"/>
|
||||
<location filename="mainwindow.cpp" line="4023"/>
|
||||
<source>close </source>
|
||||
<translation>关闭</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="4118"/>
|
||||
<location filename="mainwindow.cpp" line="4117"/>
|
||||
<source>tip</source>
|
||||
<translation>提示</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="4118"/>
|
||||
<location filename="mainwindow.cpp" line="4117"/>
|
||||
<source>Other versions not available</source>
|
||||
<translation>未获取到其他版本</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="4141"/>
|
||||
<location filename="mainwindow.cpp" line="4159"/>
|
||||
<location filename="mainwindow.cpp" line="4140"/>
|
||||
<location filename="mainwindow.cpp" line="4158"/>
|
||||
<source>The device does not support this operation</source>
|
||||
<translation>设备不支持该操作</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="4143"/>
|
||||
<location filename="mainwindow.cpp" line="4161"/>
|
||||
<location filename="mainwindow.cpp" line="4142"/>
|
||||
<location filename="mainwindow.cpp" line="4160"/>
|
||||
<source>IO error</source>
|
||||
<translation>IO错误</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3740"/>
|
||||
<location filename="mainwindow.cpp" line="3772"/>
|
||||
<location filename="mainwindow.cpp" line="3783"/>
|
||||
<location filename="mainwindow.cpp" line="3739"/>
|
||||
<location filename="mainwindow.cpp" line="3771"/>
|
||||
<location filename="mainwindow.cpp" line="3782"/>
|
||||
<source>error</source>
|
||||
<translation>错误</translation>
|
||||
</message>
|
||||
|
@ -2530,17 +2530,17 @@ Continue to close?</source>
|
|||
是否继续关闭?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2905"/>
|
||||
<location filename="mainwindow.cpp" line="2904"/>
|
||||
<source>Sure to sign out administrator account?</source>
|
||||
<translation>是否确定登出管理员账户?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3038"/>
|
||||
<location filename="mainwindow.cpp" line="3037"/>
|
||||
<source>confirm the operation</source>
|
||||
<translation>确认操作</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3039"/>
|
||||
<location filename="mainwindow.cpp" line="3038"/>
|
||||
<source>Are you sure to clear the rollor acount?</source>
|
||||
<translation>你确定要清除滚轴计数吗</translation>
|
||||
</message>
|
||||
|
@ -2549,34 +2549,34 @@ Continue to close?</source>
|
|||
<translation type="vanished">请重新进入关于界面以获取最新值</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3099"/>
|
||||
<location filename="mainwindow.cpp" line="3098"/>
|
||||
<source><p>%1: <a href='%2'>%3</a></source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3101"/>
|
||||
<location filename="mainwindow.cpp" line="3100"/>
|
||||
<source><p>%1: %2</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3103"/>
|
||||
<location filename="mainwindow.cpp" line="3102"/>
|
||||
<source>roller number</source>
|
||||
<translation>滚轴张数</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3535"/>
|
||||
<location filename="mainwindow.cpp" line="3534"/>
|
||||
<source>open scanner </source>
|
||||
<translation>打开扫描仪</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3536"/>
|
||||
<location filename="mainwindow.cpp" line="3978"/>
|
||||
<location filename="mainwindow.cpp" line="3535"/>
|
||||
<location filename="mainwindow.cpp" line="3977"/>
|
||||
<source>app name</source>
|
||||
<translation>华高扫描软件</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3566"/>
|
||||
<location filename="mainwindow.cpp" line="3996"/>
|
||||
<location filename="mainwindow.cpp" line="3565"/>
|
||||
<location filename="mainwindow.cpp" line="3995"/>
|
||||
<source>success</source>
|
||||
<translation>成功</translation>
|
||||
</message>
|
||||
|
@ -2593,22 +2593,22 @@ Continue to close?</source>
|
|||
<translation type="vanished">失败</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3575"/>
|
||||
<location filename="mainwindow.cpp" line="4001"/>
|
||||
<location filename="mainwindow.cpp" line="3574"/>
|
||||
<location filename="mainwindow.cpp" line="4000"/>
|
||||
<source>failed</source>
|
||||
<translation>失败</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="913"/>
|
||||
<location filename="mainwindow.cpp" line="977"/>
|
||||
<location filename="mainwindow.cpp" line="3604"/>
|
||||
<location filename="mainwindow.cpp" line="3603"/>
|
||||
<source>warning</source>
|
||||
<translation>警告</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="909"/>
|
||||
<location filename="mainwindow.cpp" line="973"/>
|
||||
<location filename="mainwindow.cpp" line="3600"/>
|
||||
<location filename="mainwindow.cpp" line="3599"/>
|
||||
<source>the disk space in the current path is unsufficient, please select a new path or clear the disk space in time.</source>
|
||||
<translation>当前路径磁盘空间不足,
|
||||
请重新选择路径或及时清理磁盘空间。</translation>
|
||||
|
@ -2618,7 +2618,7 @@ Continue to close?</source>
|
|||
<translation type="vanished">配置丢失</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3993"/>
|
||||
<location filename="mainwindow.cpp" line="3992"/>
|
||||
<source>apply setting</source>
|
||||
<translation>应用配置</translation>
|
||||
</message>
|
||||
|
@ -2626,18 +2626,18 @@ Continue to close?</source>
|
|||
<location filename="mainwindow.cpp" line="1280"/>
|
||||
<location filename="mainwindow.cpp" line="1281"/>
|
||||
<location filename="mainwindow.cpp" line="1282"/>
|
||||
<location filename="mainwindow.cpp" line="3169"/>
|
||||
<location filename="mainwindow.cpp" line="3170"/>
|
||||
<location filename="mainwindow.cpp" line="3171"/>
|
||||
<location filename="mainwindow.cpp" line="3172"/>
|
||||
<location filename="mainwindow.cpp" line="3242"/>
|
||||
<location filename="mainwindow.cpp" line="3243"/>
|
||||
<location filename="mainwindow.cpp" line="3244"/>
|
||||
<location filename="mainwindow.cpp" line="3245"/>
|
||||
<location filename="mainwindow.cpp" line="3331"/>
|
||||
<location filename="mainwindow.cpp" line="3332"/>
|
||||
<location filename="mainwindow.cpp" line="3333"/>
|
||||
<location filename="mainwindow.cpp" line="3334"/>
|
||||
<location filename="mainwindow.cpp" line="3419"/>
|
||||
<location filename="mainwindow.cpp" line="3420"/>
|
||||
<location filename="mainwindow.cpp" line="3421"/>
|
||||
<location filename="mainwindow.cpp" line="3422"/>
|
||||
<source>start failed</source>
|
||||
<translation>启动失败</translation>
|
||||
</message>
|
||||
|
@ -2716,13 +2716,13 @@ Continue to close?</source>
|
|||
<location filename="mainwindow.cpp" line="632"/>
|
||||
<location filename="mainwindow.cpp" line="1648"/>
|
||||
<location filename="mainwindow.cpp" line="1707"/>
|
||||
<location filename="mainwindow.cpp" line="2475"/>
|
||||
<location filename="mainwindow.cpp" line="2489"/>
|
||||
<location filename="mainwindow.cpp" line="2906"/>
|
||||
<location filename="mainwindow.cpp" line="2961"/>
|
||||
<location filename="mainwindow.cpp" line="3041"/>
|
||||
<location filename="mainwindow.cpp" line="3743"/>
|
||||
<location filename="mainwindow.cpp" line="4014"/>
|
||||
<location filename="mainwindow.cpp" line="2474"/>
|
||||
<location filename="mainwindow.cpp" line="2488"/>
|
||||
<location filename="mainwindow.cpp" line="2905"/>
|
||||
<location filename="mainwindow.cpp" line="2960"/>
|
||||
<location filename="mainwindow.cpp" line="3040"/>
|
||||
<location filename="mainwindow.cpp" line="3742"/>
|
||||
<location filename="mainwindow.cpp" line="4013"/>
|
||||
<source>yes</source>
|
||||
<translation>确定</translation>
|
||||
</message>
|
||||
|
@ -2735,12 +2735,12 @@ Continue to close?</source>
|
|||
<location filename="mainwindow.cpp" line="579"/>
|
||||
<location filename="mainwindow.cpp" line="633"/>
|
||||
<location filename="mainwindow.cpp" line="1649"/>
|
||||
<location filename="mainwindow.cpp" line="2476"/>
|
||||
<location filename="mainwindow.cpp" line="2490"/>
|
||||
<location filename="mainwindow.cpp" line="2907"/>
|
||||
<location filename="mainwindow.cpp" line="2962"/>
|
||||
<location filename="mainwindow.cpp" line="3042"/>
|
||||
<location filename="mainwindow.cpp" line="4015"/>
|
||||
<location filename="mainwindow.cpp" line="2475"/>
|
||||
<location filename="mainwindow.cpp" line="2489"/>
|
||||
<location filename="mainwindow.cpp" line="2906"/>
|
||||
<location filename="mainwindow.cpp" line="2961"/>
|
||||
<location filename="mainwindow.cpp" line="3041"/>
|
||||
<location filename="mainwindow.cpp" line="4014"/>
|
||||
<source>no</source>
|
||||
<translation>取消</translation>
|
||||
</message>
|
||||
|
@ -2771,7 +2771,7 @@ Continue to close?</source>
|
|||
<location filename="mainwindow.cpp" line="1129"/>
|
||||
<location filename="mainwindow.cpp" line="1130"/>
|
||||
<source>create savepath failed: </source>
|
||||
<translation type="unfinished">创建文件夹失败: </translation>
|
||||
<translation>创建文件夹失败: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1020"/>
|
||||
|
@ -2793,22 +2793,22 @@ Continue to close?</source>
|
|||
<location filename="mainwindow.cpp" line="2125"/>
|
||||
<location filename="mainwindow.cpp" line="2126"/>
|
||||
<location filename="mainwindow.cpp" line="2127"/>
|
||||
<location filename="mainwindow.cpp" line="2190"/>
|
||||
<location filename="mainwindow.cpp" line="2191"/>
|
||||
<location filename="mainwindow.cpp" line="2192"/>
|
||||
<location filename="mainwindow.cpp" line="2193"/>
|
||||
<location filename="mainwindow.cpp" line="2272"/>
|
||||
<location filename="mainwindow.cpp" line="2273"/>
|
||||
<location filename="mainwindow.cpp" line="2274"/>
|
||||
<location filename="mainwindow.cpp" line="2275"/>
|
||||
<source>save image doc failed: </source>
|
||||
<translation>保存图片文件失败: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3741"/>
|
||||
<location filename="mainwindow.cpp" line="3740"/>
|
||||
<source>start failed!</source>
|
||||
<translation>启动安装程序失败!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2473"/>
|
||||
<location filename="mainwindow.cpp" line="2472"/>
|
||||
<source>There are pictures that have not been saved.
|
||||
Are you sure to close?</source>
|
||||
<translation>有图像未保存,确定关闭?</translation>
|
||||
|
@ -2817,57 +2817,57 @@ Are you sure to close?</source>
|
|||
<location filename="mainwindow.cpp" line="2120"/>
|
||||
<location filename="mainwindow.cpp" line="2125"/>
|
||||
<location filename="mainwindow.cpp" line="2132"/>
|
||||
<location filename="mainwindow.cpp" line="2186"/>
|
||||
<location filename="mainwindow.cpp" line="2191"/>
|
||||
<location filename="mainwindow.cpp" line="2268"/>
|
||||
<location filename="mainwindow.cpp" line="2273"/>
|
||||
<location filename="mainwindow.cpp" line="2280"/>
|
||||
<location filename="mainwindow.cpp" line="2304"/>
|
||||
<location filename="mainwindow.cpp" line="2486"/>
|
||||
<location filename="mainwindow.cpp" line="2185"/>
|
||||
<location filename="mainwindow.cpp" line="2190"/>
|
||||
<location filename="mainwindow.cpp" line="2267"/>
|
||||
<location filename="mainwindow.cpp" line="2272"/>
|
||||
<location filename="mainwindow.cpp" line="2279"/>
|
||||
<location filename="mainwindow.cpp" line="2303"/>
|
||||
<location filename="mainwindow.cpp" line="2485"/>
|
||||
<source>tips</source>
|
||||
<translation>提示</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2487"/>
|
||||
<location filename="mainwindow.cpp" line="2486"/>
|
||||
<source>Are you sure to close?</source>
|
||||
<translation>确定关闭?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2958"/>
|
||||
<location filename="mainwindow.cpp" line="2957"/>
|
||||
<source>confirm operation</source>
|
||||
<translation>确认操作</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2959"/>
|
||||
<location filename="mainwindow.cpp" line="2958"/>
|
||||
<source>are you sure to clear the roller count?</source>
|
||||
<translation>您确定要清除滚轴计数吗</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2972"/>
|
||||
<location filename="mainwindow.cpp" line="2976"/>
|
||||
<location filename="mainwindow.cpp" line="3059"/>
|
||||
<location filename="mainwindow.cpp" line="2971"/>
|
||||
<location filename="mainwindow.cpp" line="2975"/>
|
||||
<location filename="mainwindow.cpp" line="3058"/>
|
||||
<source>hint</source>
|
||||
<translation>提示</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2972"/>
|
||||
<location filename="mainwindow.cpp" line="3052"/>
|
||||
<location filename="mainwindow.cpp" line="2971"/>
|
||||
<location filename="mainwindow.cpp" line="3051"/>
|
||||
<source>Roller scanned count has been set to 0.</source>
|
||||
<translation>辊轴计数已置零</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="2976"/>
|
||||
<location filename="mainwindow.cpp" line="3057"/>
|
||||
<location filename="mainwindow.cpp" line="2975"/>
|
||||
<location filename="mainwindow.cpp" line="3056"/>
|
||||
<source>Roller scanned count reset failed.</source>
|
||||
<translation>重置滚轴计数失败</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3027"/>
|
||||
<location filename="mainwindow.cpp" line="3026"/>
|
||||
<source>Error</source>
|
||||
<translation>错误</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3027"/>
|
||||
<location filename="mainwindow.cpp" line="3026"/>
|
||||
<source>Document missing! It would be deleted or renamed.</source>
|
||||
<translation>文档丢失!文档可能已被删除或被重命名。</translation>
|
||||
</message>
|
||||
|
@ -2900,28 +2900,28 @@ Are you sure to close?</source>
|
|||
<translation type="vanished"><br>导航地址: <a href='https://j.map.baidu.com/7e/1TO'>百度地图访问</a></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3077"/>
|
||||
<location filename="mainwindow.cpp" line="3076"/>
|
||||
<source>About %1</source>
|
||||
<translation>关于 %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3078"/>
|
||||
<location filename="mainwindow.cpp" line="3077"/>
|
||||
<source><p>%1</p><p>Version: %2<br>CopyRight: &#169; %3</p><p>%4%5%6%7%8%9</p></source>
|
||||
<translation><p>%1</p><p>版本: %2<br>版权: &#169; %3</p><p>%4%5%6%7%8%9</p></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3093"/>
|
||||
<location filename="mainwindow.cpp" line="3092"/>
|
||||
<source>about %1</source>
|
||||
<translation>关于 %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3094"/>
|
||||
<location filename="mainwindow.cpp" line="3093"/>
|
||||
<source><p>Version: %1</p></source>
|
||||
<oldsource><p>版本: %1</p></oldsource>
|
||||
<translation><p>版本: %1</p></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="3095"/>
|
||||
<location filename="mainwindow.cpp" line="3094"/>
|
||||
<source><p>CopyRight: &#169; %1</p></source>
|
||||
<oldsource><p>版权: &#169; %1</p></oldsource>
|
||||
<translation><p>版权: &#169; %1</p></translation>
|
||||
|
@ -2947,7 +2947,7 @@ Are you sure to close?</source>
|
|||
<message>
|
||||
<location filename="widget.ui" line="14"/>
|
||||
<source>Widget</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="widget.cpp" line="25"/>
|
||||
|
@ -3026,7 +3026,7 @@ Are you sure to close?</source>
|
|||
<message>
|
||||
<location filename="cutdialog.ui" line="38"/>
|
||||
<source>cutDialog</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
|
@ -3160,6 +3160,7 @@ Are you sure to close?</source>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="hg_settingdialog.cpp" line="263"/>
|
||||
<location filename="hg_settingdialog.cpp" line="1550"/>
|
||||
<source>ok</source>
|
||||
<translation>确定</translation>
|
||||
</message>
|
||||
|
@ -3184,86 +3185,130 @@ Are you sure to close?</source>
|
|||
<translation>自定义色调曲线</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="hg_settingdialog.cpp" line="1560"/>
|
||||
<location filename="hg_settingdialog.cpp" line="1506"/>
|
||||
<source>Please select to overwrite the original configuration:</source>
|
||||
<translation>请选择覆盖原来的配置:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="hg_settingdialog.cpp" line="1508"/>
|
||||
<source>,or add a new configuration</source>
|
||||
<translation>,或者新增配置</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="hg_settingdialog.cpp" line="1511"/>
|
||||
<source>save the configuration</source>
|
||||
<translation>保存配置</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="hg_settingdialog.cpp" line="1561"/>
|
||||
<source>The Settings you just set are in the original configuration "</source>
|
||||
<oldsource>The Settings you just set are in the original configuration “</oldsource>
|
||||
<translation>您刚才的设置是在原有配置 “</translation>
|
||||
<translation type="vanished">您刚才的设置是在原有配置 “</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="hg_settingdialog.cpp" line="1564"/>
|
||||
<source>" changed on the basis,Please select overwrite this configuration or add a new one?
|
||||
Yes: cover "</source>
|
||||
<oldsource>” changed on the basis,Please select overwrite this configuration or add a new one?
|
||||
Yes: cover “</oldsource>
|
||||
<translation>” 基础上更改的,请选择是覆盖这个配置,还是增加新的配置?
|
||||
<translation type="vanished">” 基础上更改的,请选择是覆盖这个配置,还是增加新的配置?
|
||||
是: 覆盖 “</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="hg_settingdialog.cpp" line="1565"/>
|
||||
<source>"
|
||||
No: add new configuration</source>
|
||||
<oldsource>”
|
||||
No: add new configuration</oldsource>
|
||||
<translation>
|
||||
<translation type="vanished">
|
||||
否: 增加新的配置:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="hg_settingdialog.cpp" line="1568"/>
|
||||
<location filename="hg_settingdialog.cpp" line="1789"/>
|
||||
<location filename="hg_settingdialog.cpp" line="1813"/>
|
||||
<location filename="hg_settingdialog.cpp" line="1878"/>
|
||||
<location filename="hg_settingdialog.cpp" line="1902"/>
|
||||
<source>yes</source>
|
||||
<translation>是</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="hg_settingdialog.cpp" line="1569"/>
|
||||
<location filename="hg_settingdialog.cpp" line="1790"/>
|
||||
<location filename="hg_settingdialog.cpp" line="1814"/>
|
||||
<location filename="hg_settingdialog.cpp" line="1879"/>
|
||||
<location filename="hg_settingdialog.cpp" line="1903"/>
|
||||
<source>no</source>
|
||||
<translation>否</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="hg_settingdialog.cpp" line="1704"/>
|
||||
<location filename="hg_settingdialog.cpp" line="1795"/>
|
||||
<source><h6><b></source>
|
||||
<translation><h6><b></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="hg_settingdialog.cpp" line="1704"/>
|
||||
<location filename="hg_settingdialog.cpp" line="1516"/>
|
||||
<source>cover original configuration:</source>
|
||||
<translation>覆盖原来配置:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="hg_settingdialog.cpp" line="1520"/>
|
||||
<source>add new configuration</source>
|
||||
<translation>新增配置</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="hg_settingdialog.cpp" line="1524"/>
|
||||
<source>rename:</source>
|
||||
<translation>更名:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="hg_settingdialog.cpp" line="1556"/>
|
||||
<location filename="hg_settingdialog.cpp" line="1570"/>
|
||||
<location filename="hg_settingdialog.cpp" line="1833"/>
|
||||
<source>tips</source>
|
||||
<translation>提示</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="hg_settingdialog.cpp" line="1556"/>
|
||||
<source>scheme name cannot be empty</source>
|
||||
<translation>配置名不能为空</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="hg_settingdialog.cpp" line="1570"/>
|
||||
<location filename="hg_settingdialog.cpp" line="1833"/>
|
||||
<source>scheme name: </source>
|
||||
<translation>配置名: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="hg_settingdialog.cpp" line="1570"/>
|
||||
<location filename="hg_settingdialog.cpp" line="1833"/>
|
||||
<source> already exists</source>
|
||||
<translation> 已存在</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="hg_settingdialog.cpp" line="1795"/>
|
||||
<source>:</b></h6></source>
|
||||
<translation>:</b></h6></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="hg_settingdialog.cpp" line="1705"/>
|
||||
<location filename="hg_settingdialog.cpp" line="1796"/>
|
||||
<source><p> </source>
|
||||
<translation><p> </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="hg_settingdialog.cpp" line="1705"/>
|
||||
<location filename="hg_settingdialog.cpp" line="1796"/>
|
||||
<source></p></source>
|
||||
<translation></p></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="hg_settingdialog.cpp" line="1731"/>
|
||||
<location filename="hg_settingdialog.cpp" line="1822"/>
|
||||
<source>configuration scheme name change</source>
|
||||
<translation>配置改名</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="hg_settingdialog.cpp" line="1787"/>
|
||||
<location filename="hg_settingdialog.cpp" line="1811"/>
|
||||
<location filename="hg_settingdialog.cpp" line="1876"/>
|
||||
<location filename="hg_settingdialog.cpp" line="1900"/>
|
||||
<source>be sure to delete the configuration</source>
|
||||
<translation>确认删除配置</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="hg_settingdialog.cpp" line="1788"/>
|
||||
<location filename="hg_settingdialog.cpp" line="1877"/>
|
||||
<source>Are you sure you want to delete the configuration "</source>
|
||||
<translation>您确认要删除配置</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="hg_settingdialog.cpp" line="1788"/>
|
||||
<location filename="hg_settingdialog.cpp" line="1877"/>
|
||||
<source>" ?</source>
|
||||
<translation>?</translation>
|
||||
</message>
|
||||
|
@ -3276,7 +3321,7 @@ No: add new configuration</oldsource>
|
|||
<translation type="vanished">’ 吗?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="hg_settingdialog.cpp" line="1812"/>
|
||||
<location filename="hg_settingdialog.cpp" line="1901"/>
|
||||
<source>Are you sure you want to delete the configuration?</source>
|
||||
<translation>您确认要删除所有配置吗?</translation>
|
||||
</message>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#include "dialog_input.h"
|
||||
#include "ui_dialog_input.h"
|
||||
#include <qmessagebox.h>
|
||||
#include <QRegularExpression>
|
||||
|
||||
Dialog_Input::Dialog_Input(QWidget *parent) :
|
||||
QDialog(parent),
|
||||
|
@ -16,7 +17,11 @@ Dialog_Input::~Dialog_Input()
|
|||
|
||||
void Dialog_Input::on_pushButton_clicked()
|
||||
{
|
||||
std::string str(ui->lineEdit->text().toStdString());
|
||||
QString text = ui->lineEdit->text();
|
||||
static QRegularExpression re("\\s");
|
||||
text.remove(re);//Remove space
|
||||
|
||||
std::string str(text.toStdString());
|
||||
int pos = 0;
|
||||
while(pos < str.length() && str[pos++] == ' ');
|
||||
if(--pos > 0)
|
||||
|
|
|
@ -18,7 +18,7 @@ hg_settingdialog::hg_settingdialog(void *handle, QWidget *parent
|
|||
: QDialog(parent)
|
||||
, dev_que_(dev), save_(false)
|
||||
, btn_cut_area_(nullptr), btn_gamma_(nullptr), clicked_gamma_(false)
|
||||
, custom_area_lable_(nullptr), comb_(nullptr)
|
||||
, custom_area_lable_(nullptr), comb_(nullptr),m_cover(true)
|
||||
{
|
||||
std::string n(dev->opened_scanner_name());
|
||||
for(int i = 0; i < dev->scanners(); ++i)
|
||||
|
@ -1500,6 +1500,158 @@ void hg_settingdialog::closeEvent(QCloseEvent* e)
|
|||
|
||||
e->accept();
|
||||
}
|
||||
|
||||
bool hg_settingdialog::createMsgBoxUi(bool add, std::string &name)
|
||||
{
|
||||
QString text(tr("Please select to overwrite the original configuration:"));
|
||||
text += QString::fromStdString(name);
|
||||
text += tr(",or add a new configuration");
|
||||
|
||||
QDialog *dlg = new QDialog(this);
|
||||
dlg->setWindowTitle(tr("save the configuration"));
|
||||
QLabel *label_question = new QLabel;
|
||||
label_question->setText(text);
|
||||
|
||||
QRadioButton *radioButtonCover = new QRadioButton;
|
||||
radioButtonCover->setText(tr("cover original configuration:") + QString::fromStdString(name));
|
||||
radioButtonCover->setChecked(true);
|
||||
add = false;
|
||||
QRadioButton *radioButtonNew = new QRadioButton;
|
||||
radioButtonNew->setText(tr("add new configuration"));
|
||||
|
||||
QHBoxLayout *hLayoutName = new QHBoxLayout;
|
||||
QLabel *label_name = new QLabel;
|
||||
label_name->setText(tr("rename:"));
|
||||
m_lineEdit_name = new QLineEdit;
|
||||
std::string name2;
|
||||
m_lineEdit_name->setText(QString::fromStdString(getCurUiShemeName(name2)));
|
||||
|
||||
QSpacerItem *spacer1 = new QSpacerItem(20, 20, QSizePolicy::Expanding);
|
||||
hLayoutName->addWidget(label_name);
|
||||
hLayoutName->addWidget(m_lineEdit_name);
|
||||
hLayoutName->addSpacerItem(spacer1);
|
||||
label_name->setVisible(false);
|
||||
m_lineEdit_name->setVisible(false);
|
||||
|
||||
connect(radioButtonCover, &QRadioButton::clicked, this, [=, &add, this](){
|
||||
m_cover = true;
|
||||
add = false;
|
||||
label_name->setVisible(false);
|
||||
m_lineEdit_name->setVisible(false);
|
||||
});
|
||||
connect(radioButtonNew, &QRadioButton::clicked, this, [=, &add, this](){
|
||||
m_cover = false;
|
||||
add = true;
|
||||
label_name->setVisible(true);
|
||||
m_lineEdit_name->setVisible(true);
|
||||
|
||||
m_lineEdit_name->setFocus();
|
||||
QTimer::singleShot(0, m_lineEdit_name, &QLineEdit::selectAll);
|
||||
});
|
||||
|
||||
QSpacerItem *spacer2 = new QSpacerItem(20, 20, QSizePolicy::Expanding);
|
||||
QPushButton *pbtnOk = new QPushButton;
|
||||
pbtnOk->setText(tr("ok"));
|
||||
connect(pbtnOk, &QPushButton::clicked, this, [=, &name,this](){
|
||||
QString text = m_lineEdit_name->text();
|
||||
static QRegularExpression re("\\s");
|
||||
text.remove(re);//Remove space
|
||||
|
||||
name = text.toStdString();
|
||||
|
||||
if(name.empty())
|
||||
{
|
||||
QMessageBox::information(this, tr("tips"), tr("scheme name cannot be empty"));
|
||||
m_lineEdit_name->setText(QString::fromStdString(getCurUiShemeName(name)));
|
||||
return;
|
||||
}
|
||||
|
||||
if (!m_cover)
|
||||
{
|
||||
std::vector<std::string> now;
|
||||
cur_cfg_->get_all_schemes(now);
|
||||
for(auto& v: now)
|
||||
{
|
||||
if(v == name)
|
||||
{
|
||||
|
||||
QMessageBox::information(this, tr("tips"), tr("scheme name: ") + QString::fromStdString(name) + tr(" already exists"));
|
||||
m_lineEdit_name->setText(QString::fromStdString(getCurUiShemeName(name)));
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dlg->close();
|
||||
});
|
||||
|
||||
QHBoxLayout *hLayout_pbtnOk = new QHBoxLayout;
|
||||
hLayout_pbtnOk->addSpacerItem(spacer2);
|
||||
hLayout_pbtnOk->addWidget(pbtnOk);
|
||||
|
||||
QVBoxLayout *vLayout = new QVBoxLayout;
|
||||
vLayout->addWidget(label_question);
|
||||
vLayout->addWidget(radioButtonCover);
|
||||
vLayout->addWidget(radioButtonNew);
|
||||
vLayout->addLayout(hLayoutName);
|
||||
vLayout->addLayout(hLayout_pbtnOk);
|
||||
dlg->setLayout(vLayout);
|
||||
|
||||
dlg->exec();
|
||||
|
||||
return add;
|
||||
}
|
||||
|
||||
std::string hg_settingdialog::getCurUiShemeName(std::string name)
|
||||
{
|
||||
std::string k(""), val("");
|
||||
int id = 0;
|
||||
const SANE_Option_Descriptor* opt = nullptr;
|
||||
|
||||
if (cur_scheme_->first_config(k, val))
|
||||
{
|
||||
int count = 0;
|
||||
do
|
||||
{
|
||||
id = cur_scheme_->id_from_name(k.c_str());
|
||||
opt = sane_get_option_descriptor(m_handle, id);
|
||||
if (opt)
|
||||
{
|
||||
if (count++)
|
||||
name += " + ";
|
||||
|
||||
if (opt->type == SANE_TYPE_STRING)
|
||||
name += val;
|
||||
else
|
||||
{
|
||||
name += opt->title;
|
||||
if (opt->type == SANE_TYPE_BOOL)
|
||||
{
|
||||
name += std::string("(");
|
||||
if (*(SANE_Bool*)&val[0] == SANE_TRUE)
|
||||
name += "true)";
|
||||
else
|
||||
name += "false)";
|
||||
}
|
||||
else if (opt->type == SANE_TYPE_INT)
|
||||
{
|
||||
char buf[128] = { 0 };
|
||||
sprintf(buf, "(%d)", *(int*)&val[0]);
|
||||
name += buf;
|
||||
}
|
||||
else if (opt->type == SANE_TYPE_FIXED)
|
||||
{
|
||||
char buf[128] = { 0 };
|
||||
sprintf(buf, "(%.4f)", SANE_UNFIX(*(SANE_Fixed*)&val[0]));
|
||||
name += buf;
|
||||
}
|
||||
}
|
||||
}
|
||||
} while (count < 3 && cur_scheme_->next_config(k, val));
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
||||
void hg_settingdialog::save_scheme(void)
|
||||
{
|
||||
std::string name(cur_scheme_->get_scheme_name());
|
||||
|
@ -1507,68 +1659,14 @@ void hg_settingdialog::save_scheme(void)
|
|||
|
||||
if(add)
|
||||
{
|
||||
std::string k(""), val("");
|
||||
int id = 0;
|
||||
const SANE_Option_Descriptor* opt = nullptr;
|
||||
|
||||
if(cur_scheme_->first_config(k, val))
|
||||
{
|
||||
int count = 0;
|
||||
do
|
||||
{
|
||||
id = cur_scheme_->id_from_name(k.c_str());
|
||||
opt = sane_get_option_descriptor(m_handle, id);
|
||||
if(opt)
|
||||
{
|
||||
if(count++)
|
||||
name += " + ";
|
||||
|
||||
if(opt->type == SANE_TYPE_STRING)
|
||||
name += val;
|
||||
else {
|
||||
name += opt->title;
|
||||
if(opt->type == SANE_TYPE_BOOL)
|
||||
{
|
||||
name += std::string("(");
|
||||
if(*(SANE_Bool*)&val[0] == SANE_TRUE)
|
||||
name += "true)";
|
||||
else
|
||||
name += "false)";
|
||||
}
|
||||
else if(opt->type == SANE_TYPE_INT)
|
||||
{
|
||||
char buf[128] = {0};
|
||||
sprintf(buf, "(%d)", *(int*)&val[0]);
|
||||
name += buf;
|
||||
}
|
||||
else if(opt->type == SANE_TYPE_FIXED)
|
||||
{
|
||||
char buf[128] = {0};
|
||||
sprintf(buf, "(%.4f)", SANE_UNFIX(*(SANE_Fixed*)&val[0]));
|
||||
name += buf;
|
||||
}
|
||||
}
|
||||
}
|
||||
}while(count < 3 && cur_scheme_->next_config(k, val));
|
||||
}
|
||||
name = getCurUiShemeName(name);
|
||||
}
|
||||
else
|
||||
{
|
||||
add = cur_scheme_->has_changed();
|
||||
if(add)
|
||||
{
|
||||
QString title(tr("save the configuration"));
|
||||
QString text(tr("The Settings you just set are in the original configuration \""));
|
||||
|
||||
text += QString::fromStdString(name);
|
||||
text += tr("\" changed on the basis,Please select overwrite this configuration or add a new one?\nYes: cover \"") + QString::fromStdString(name);
|
||||
text += tr("\"\nNo: add new configuration") + QString::fromStdString("");
|
||||
|
||||
QMessageBox msg(QMessageBox::Question, title, text, QMessageBox::Yes | QMessageBox::No, this);
|
||||
msg.setButtonText(QMessageBox::Yes, tr("yes"));
|
||||
msg.setButtonText(QMessageBox::No, tr("no"));
|
||||
msg.exec();
|
||||
add = msg.clickedButton() != msg.button(QMessageBox::Yes);
|
||||
add = createMsgBoxUi(add, name);
|
||||
}
|
||||
}
|
||||
if(add)
|
||||
|
@ -1603,7 +1701,8 @@ void hg_settingdialog::save_scheme(void)
|
|||
sprintf(append, "-%d", ++ind);
|
||||
}
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
cur_scheme_->end_setting(false);
|
||||
}
|
||||
cur_cfg_->select_scheme(cur_scheme_->get_scheme_name().c_str());
|
||||
|
@ -1739,9 +1838,7 @@ void hg_settingdialog::slot_pushButton_scheme_management(void)
|
|||
{
|
||||
if(v == str)
|
||||
{
|
||||
str.insert(0, "\351\205\215\347\275\256\345\220\215\347\247\260 \342\200\230"); // 配置名称‘’
|
||||
str += "\342\200\231 \345\267\262\347\273\217\345\255\230\345\234\250"; // 已经存在
|
||||
QMessageBox(QMessageBox::Information, QString::fromStdString("\351\224\231\350\257\257")/*错误*/, QString::fromStdString(str)).exec();
|
||||
QMessageBox::information(this, tr("tips"), tr("scheme name: ") + QString::fromStdString(str) + tr(" already exists"));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -1827,8 +1924,8 @@ void hg_settingdialog::slot_pushButton_scheme_management(void)
|
|||
void hg_settingdialog::restore_2_default_settings(void)
|
||||
{
|
||||
cur_scheme_->end_setting(true);
|
||||
cur_cfg_->select_scheme(nullptr);
|
||||
dev_que_->apply_scheme(nullptr);
|
||||
cur_cfg_->select_scheme(nullptr);
|
||||
cur_cfg_->save();
|
||||
|
||||
gb::sane_config_schm *s = new gb::sane_config_schm();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef HG_SETTING_DIALOG_H
|
||||
#ifndef HG_SETTING_DIALOG_H
|
||||
#define HG_SETTING_DIALOG_H
|
||||
|
||||
#include <QtWidgets>
|
||||
|
@ -33,6 +33,7 @@ class hg_settingdialog : public QDialog
|
|||
QPushButton *btn_cut_area_;
|
||||
QPushButton *btn_gamma_;
|
||||
QTextEdit *sketch_;
|
||||
QLineEdit *m_lineEdit_name;
|
||||
void create_scheme_management_ui(QVBoxLayout* layout);
|
||||
QString find_current_scheme_menu(int *scheme_id = nullptr);
|
||||
|
||||
|
@ -72,9 +73,10 @@ private:
|
|||
QString md5(QString key);
|
||||
const void* find_option_description(int id); // return const SANE_Option_Descriptor* pointer
|
||||
const void* find_option_description(const std::string& title, int* id); // return const SANE_Option_Descriptor* pointer
|
||||
QVariant find_default_value(int id);
|
||||
|
||||
virtual void closeEvent(QCloseEvent* e);
|
||||
bool createMsgBoxUi(bool add, std::string &name);
|
||||
std::string getCurUiShemeName(std::string name);
|
||||
void save_scheme(void);
|
||||
void cancel_setting(void);
|
||||
void getAppVersion();
|
||||
|
@ -122,6 +124,7 @@ private:
|
|||
double m_cutBottomValue; // 单位是毫米
|
||||
|
||||
int m_colorModeId;
|
||||
volatile bool m_cover = true;
|
||||
QString m_colorModeValue;
|
||||
SANE_Gamma m_gammaData;
|
||||
QComboBox *comb_;
|
||||
|
|
|
@ -8279,20 +8279,6 @@ Please choose a different file name.</source>
|
|||
<source>save the configuration</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The Settings you just set are in the original configuration "</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>" changed on the basis,Please select overwrite this configuration or add a new one?
|
||||
Yes: cover "</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>"
|
||||
No: add new configuration</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>yes</source>
|
||||
<translation type="unfinished"></translation>
|
||||
|
@ -8369,6 +8355,42 @@ No: add new configuration</source>
|
|||
<source>configuration scheme management</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Please select to overwrite the original configuration:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>,or add a new configuration</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>cover original configuration:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>add new configuration</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>rename:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>tips</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>scheme name cannot be empty</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>scheme name: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source> already exists</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>setPicClrTool</name>
|
||||
|
|
Loading…
Reference in New Issue