调整设置界面询问新增配置对话框

This commit is contained in:
yangjiaxuan 2022-11-26 14:26:57 +08:00
parent dfcc2484d1
commit b823e7effb
6 changed files with 407 additions and 235 deletions

Binary file not shown.

View File

@ -518,17 +518,17 @@ Page range will be &apos;Chosen Pages&apos;.</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 &apos;Chosen Pages&apos;.</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 &apos;Chosen Pages&apos;.</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>&lt;p&gt;%1: &lt;a href=&apos;%2&apos;&gt;%3&lt;/a&gt;</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3101"/>
<location filename="mainwindow.cpp" line="3100"/>
<source>&lt;p&gt;%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">&lt;br&gt;: &lt;a href=&apos;https://j.map.baidu.com/7e/1TO&apos;&gt;百度地图访问&lt;/a&gt;</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>&lt;p&gt;%1&lt;/p&gt;&lt;p&gt;Version: %2&lt;br&gt;CopyRight: &amp;#169; %3&lt;/p&gt;&lt;p&gt;%4%5%6%7%8%9&lt;/p&gt;</source>
<translation>&lt;p&gt;%1&lt;/p&gt;&lt;p&gt;: %2&lt;br&gt;: &amp;#169; %3&lt;/p&gt;&lt;p&gt;%4%5%6%7%8%9&lt;/p&gt;</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>&lt;p&gt;Version: %1&lt;/p&gt;</source>
<oldsource>&lt;p&gt;: %1&lt;/p&gt;</oldsource>
<translation>&lt;p&gt; %1&lt;/p&gt;</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="3095"/>
<location filename="mainwindow.cpp" line="3094"/>
<source>&lt;p&gt;CopyRight: &amp;#169; %1&lt;/p&gt;</source>
<oldsource>&lt;p&gt;: &amp;#169; %1&lt;/p&gt;</oldsource>
<translation>&lt;p&gt; &amp;#169; %1&lt;/p&gt;</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 &quot;</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>&quot; changed on the basis,Please select overwrite this configuration or add a new one?
Yes: cover &quot;</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>&quot;
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>&lt;h6&gt;&lt;b&gt;</source>
<translation>&lt;h6&gt;&lt;b&gt;</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>:&lt;/b&gt;&lt;/h6&gt;</source>
<translation>:&lt;/b&gt;&lt;/h6&gt;</translation>
</message>
<message>
<location filename="hg_settingdialog.cpp" line="1705"/>
<location filename="hg_settingdialog.cpp" line="1796"/>
<source>&lt;p&gt; </source>
<translation>&lt;p&gt; </translation>
</message>
<message>
<location filename="hg_settingdialog.cpp" line="1705"/>
<location filename="hg_settingdialog.cpp" line="1796"/>
<source>&lt;/p&gt;</source>
<translation>&lt;/p&gt;</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 &quot;</source>
<translation></translation>
</message>
<message>
<location filename="hg_settingdialog.cpp" line="1788"/>
<location filename="hg_settingdialog.cpp" line="1877"/>
<source>&quot; ?</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>

View File

@ -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)

View File

@ -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,12 +1500,109 @@ void hg_settingdialog::closeEvent(QCloseEvent* e)
e->accept();
}
void hg_settingdialog::save_scheme(void)
{
std::string name(cur_scheme_->get_scheme_name());
bool add = name.empty();
if(add)
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;
@ -1525,7 +1622,8 @@ void hg_settingdialog::save_scheme(void)
if (opt->type == SANE_TYPE_STRING)
name += val;
else {
else
{
name += opt->title;
if (opt->type == SANE_TYPE_BOOL)
{
@ -1551,24 +1649,24 @@ void hg_settingdialog::save_scheme(void)
}
} 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());
bool add = name.empty();
if(add)
{
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();

View File

@ -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_;

View File

@ -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 &quot;</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>&quot; changed on the basis,Please select overwrite this configuration or add a new one?
Yes: cover &quot;</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>&quot;
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>