按键扫描工具勾选除摩尔纹和选择自动文本方向识别增加提示;

This commit is contained in:
yangjiaxuan 2024-09-02 16:40:16 +08:00
parent 62ef2dd07f
commit eba82113f1
3 changed files with 81 additions and 59 deletions

Binary file not shown.

View File

@ -162,33 +162,41 @@
<context> <context>
<name>Form_DeviceConfig</name> <name>Form_DeviceConfig</name>
<message> <message>
<location filename="form_deviceconfig.cpp" line="259"/> <location filename="form_deviceconfig.cpp" line="269"/>
<source>Default</source> <source>Default</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="form_deviceconfig.cpp" line="432"/> <location filename="form_deviceconfig.cpp" line="442"/>
<source>Custom gamma</source> <source>Custom gamma</source>
<translation>线</translation> <translation>线</translation>
</message> </message>
<message> <message>
<location filename="form_deviceconfig.cpp" line="817"/> <location filename="form_deviceconfig.cpp" line="827"/>
<location filename="form_deviceconfig.cpp" line="893"/>
<location filename="form_deviceconfig.cpp" line="1390"/>
<source>Prompt</source> <source>Prompt</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="form_deviceconfig.cpp" line="873"/> <location filename="form_deviceconfig.cpp" line="883"/>
<location filename="form_deviceconfig.cpp" line="903"/> <location filename="form_deviceconfig.cpp" line="920"/>
<location filename="form_deviceconfig.cpp" line="933"/> <location filename="form_deviceconfig.cpp" line="950"/>
<location filename="form_deviceconfig.cpp" line="971"/> <location filename="form_deviceconfig.cpp" line="988"/>
<location filename="form_deviceconfig.cpp" line="1009"/> <location filename="form_deviceconfig.cpp" line="1026"/>
<location filename="form_deviceconfig.cpp" line="1053"/> <location filename="form_deviceconfig.cpp" line="1070"/>
<location filename="form_deviceconfig.cpp" line="1083"/> <location filename="form_deviceconfig.cpp" line="1100"/>
<location filename="form_deviceconfig.cpp" line="1121"/> <location filename="form_deviceconfig.cpp" line="1138"/>
<location filename="form_deviceconfig.cpp" line="1365"/> <location filename="form_deviceconfig.cpp" line="1382"/>
<source>The funtion is unsupported</source> <source>The funtion is unsupported</source>
<translation></translation> <translation></translation>
</message> </message>
<message>
<location filename="form_deviceconfig.cpp" line="893"/>
<location filename="form_deviceconfig.cpp" line="1390"/>
<source>This function may cause a decrease in the speed of drawing.</source>
<translation>.</translation>
</message>
</context> </context>
<context> <context>
<name>Form_SaveParam</name> <name>Form_SaveParam</name>
@ -381,23 +389,24 @@
<translation type="vanished"></translation> <translation type="vanished"></translation>
</message> </message>
<message> <message>
<location filename="form_saveparam.cpp" line="35"/> <location filename="form_saveparam.cpp" line="34"/>
<location filename="form_saveparam.cpp" line="270"/> <location filename="form_saveparam.cpp" line="257"/>
<location filename="form_saveparam.cpp" line="297"/> <location filename="form_saveparam.cpp" line="284"/>
<location filename="form_saveparam.cpp" line="304"/> <location filename="form_saveparam.cpp" line="291"/>
<source>e.g. &apos;%1%2&apos;</source> <source>e.g. &apos;%1%2&apos;</source>
<translation>.%1%2</translation> <translation>.%1%2</translation>
</message> </message>
<message> <message>
<location filename="form_saveparam.cpp" line="216"/>
<source>Browse directory</source> <source>Browse directory</source>
<translation type="vanished"></translation> <translation></translation>
</message> </message>
</context> </context>
<context> <context>
<name>MainWindow</name> <name>MainWindow</name>
<message> <message>
<location filename="mainwindow.ui" line="14"/> <location filename="mainwindow.ui" line="14"/>
<location filename="mainwindow.cpp" line="46"/> <location filename="mainwindow.cpp" line="48"/>
<source>Scan Tool</source> <source>Scan Tool</source>
<translation></translation> <translation></translation>
</message> </message>
@ -427,106 +436,107 @@
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="51"/> <location filename="mainwindow.cpp" line="53"/>
<source>Show</source> <source>Show</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="53"/> <location filename="mainwindow.cpp" line="55"/>
<source>Exit</source> <source>Exit</source>
<translation>退</translation> <translation>退</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="70"/> <location filename="mainwindow.cpp" line="72"/>
<source>Device Type</source> <source>Device Type</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="71"/> <location filename="mainwindow.cpp" line="73"/>
<source>Button Id</source> <source>Button Id</source>
<translation>ID</translation> <translation>ID</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="72"/> <location filename="mainwindow.cpp" line="74"/>
<source>Device Config</source> <source>Device Config</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="73"/> <location filename="mainwindow.cpp" line="75"/>
<source>Save Param</source> <source>Save Param</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="90"/> <location filename="mainwindow.cpp" line="92"/>
<location filename="mainwindow.cpp" line="1053"/> <location filename="mainwindow.cpp" line="1055"/>
<location filename="mainwindow.cpp" line="1491"/> <location filename="mainwindow.cpp" line="1505"/>
<source>Manual</source> <source>Manual</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="90"/> <location filename="mainwindow.cpp" line="92"/>
<location filename="mainwindow.cpp" line="1053"/> <location filename="mainwindow.cpp" line="1055"/>
<location filename="mainwindow.cpp" line="1491"/> <location filename="mainwindow.cpp" line="1505"/>
<source>Button 1</source> <source>Button 1</source>
<translation> 1</translation> <translation> 1</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="90"/> <location filename="mainwindow.cpp" line="92"/>
<location filename="mainwindow.cpp" line="1053"/> <location filename="mainwindow.cpp" line="1055"/>
<location filename="mainwindow.cpp" line="1491"/> <location filename="mainwindow.cpp" line="1505"/>
<source>Button 2</source> <source>Button 2</source>
<translation> 2</translation> <translation> 2</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="90"/> <location filename="mainwindow.cpp" line="92"/>
<location filename="mainwindow.cpp" line="1053"/> <location filename="mainwindow.cpp" line="1055"/>
<location filename="mainwindow.cpp" line="1491"/> <location filename="mainwindow.cpp" line="1505"/>
<source>Button 3</source> <source>Button 3</source>
<translation> 3</translation> <translation> 3</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="90"/> <location filename="mainwindow.cpp" line="92"/>
<location filename="mainwindow.cpp" line="1053"/> <location filename="mainwindow.cpp" line="1055"/>
<location filename="mainwindow.cpp" line="1491"/> <location filename="mainwindow.cpp" line="1505"/>
<source>Button 4</source> <source>Button 4</source>
<translation> 4</translation> <translation> 4</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="90"/> <location filename="mainwindow.cpp" line="92"/>
<location filename="mainwindow.cpp" line="1053"/> <location filename="mainwindow.cpp" line="1055"/>
<location filename="mainwindow.cpp" line="1491"/> <location filename="mainwindow.cpp" line="1505"/>
<source>Button 5</source> <source>Button 5</source>
<translation> 5</translation> <translation> 5</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="612"/> <location filename="mainwindow.cpp" line="614"/>
<location filename="mainwindow.cpp" line="1023"/> <location filename="mainwindow.cpp" line="1025"/>
<location filename="mainwindow.cpp" line="1456"/> <location filename="mainwindow.cpp" line="1465"/>
<location filename="mainwindow.cpp" line="1462"/> <location filename="mainwindow.cpp" line="1471"/>
<location filename="mainwindow.cpp" line="1476"/> <location filename="mainwindow.cpp" line="1484"/>
<location filename="mainwindow.cpp" line="1508"/> <location filename="mainwindow.cpp" line="1490"/>
<location filename="mainwindow.cpp" line="1522"/>
<source>Tips</source> <source>Tips</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="612"/> <location filename="mainwindow.cpp" line="614"/>
<location filename="mainwindow.cpp" line="1023"/> <location filename="mainwindow.cpp" line="1025"/>
<location filename="mainwindow.cpp" line="1462"/> <location filename="mainwindow.cpp" line="1471"/>
<source>Device is offline</source> <source>Device is offline</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="927"/> <location filename="mainwindow.cpp" line="929"/>
<source>binary</source> <source>binary</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="929"/> <location filename="mainwindow.cpp" line="931"/>
<source>gray</source> <source>gray</source>
<translation>256</translation> <translation>256</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="931"/> <location filename="mainwindow.cpp" line="933"/>
<source>rgb</source> <source>rgb</source>
<translation>24</translation> <translation>24</translation>
</message> </message>
@ -535,13 +545,13 @@
<translation type="vanished"> %1</translation> <translation type="vanished"> %1</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="1456"/> <location filename="mainwindow.cpp" line="1465"/>
<location filename="mainwindow.cpp" line="1508"/> <location filename="mainwindow.cpp" line="1522"/>
<source>No item selected</source> <source>No item selected</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="1476"/> <location filename="mainwindow.cpp" line="1490"/>
<source>Device type mismatch</source> <source>Device type mismatch</source>
<translation></translation> <translation></translation>
</message> </message>
@ -550,12 +560,12 @@
<translation type="vanished"></translation> <translation type="vanished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="1512"/> <location filename="mainwindow.cpp" line="1526"/>
<source>Question</source> <source>Question</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="1513"/> <location filename="mainwindow.cpp" line="1527"/>
<source>Are you sure you want to remove the item?</source> <source>Are you sure you want to remove the item?</source>
<translation></translation> <translation></translation>
</message> </message>

View File

@ -886,6 +886,13 @@ void Form_DeviceConfig::on_string_list_comboBoxClicked()
return; return;
} }
bool ok = false;
if ((deviceConfigEx->name == SANE_STD_OPT_NAME_TEXT_DIRECTION) &&
0 == strcmp(to_default_language(comboBox->currentText().toStdString().c_str(), &ok), OPTION_VALUE_WGFX_ZDWBFXSB))
{
QMessageBox::information(this, tr("Prompt"), tr("This function may cause a decrease in the speed of drawing."));
}
deviceConfigEx->stringValue = currentText; deviceConfigEx->stringValue = currentText;
if ((method & SANE_INFO_RELOAD_OPTIONS) == SANE_INFO_RELOAD_OPTIONS) if ((method & SANE_INFO_RELOAD_OPTIONS) == SANE_INFO_RELOAD_OPTIONS)
{ {
@ -1378,6 +1385,11 @@ void Form_DeviceConfig::on_checkedClicked()
return; return;
} }
if (currentState && (deviceConfigEx->name == SANE_STD_OPT_NAME_RID_MORR))
{
QMessageBox::information(this, tr("Prompt"), tr("This function may cause a decrease in the speed of drawing."));
}
deviceConfigEx->boolValue = currentState; deviceConfigEx->boolValue = currentState;
if ((method & SANE_INFO_RELOAD_OPTIONS) == SANE_INFO_RELOAD_OPTIONS) if ((method & SANE_INFO_RELOAD_OPTIONS) == SANE_INFO_RELOAD_OPTIONS)
{ {