feat: Modify the prompt after scanning one side.

This commit is contained in:
sunwen
2024-09-19 16:59:52 +08:00
parent 94b199533d
commit 76c4fdf66a
3 changed files with 42 additions and 28 deletions

View File

@@ -439,7 +439,8 @@ void DeviceManager::prepareFinishScan(bool isNormalFinish, const QString& aReaso
if(isCompleteNotify)
{
QString msg = tr("Scan completed!");
QString msg = ScanProcessSequence::getInstance()->getScanPositionSize() == 2 ? tr("Scan completed! Please prepare for the next scan. \nAfter lying down, click the confirm button"
"to start scanning on the next side.") : tr("Scan completed!") ;
TRIGGER_EVENT(InvokeOperationEnd, nullptr, (QObject *)&msg);
}
else

View File

@@ -415,6 +415,11 @@ progress:99%</source>
<source>Device reset failed, please contact maintenance person</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Scan completed! Please prepare for the next scan.
After lying down, click the confirm buttonto start scanning on the next side.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>DialogManager</name>

View File

@@ -469,9 +469,9 @@
<name>DeviceManager</name>
<message>
<location filename="../device/DeviceManager.cpp" line="168"/>
<location filename="../device/DeviceManager.cpp" line="835"/>
<location filename="../device/DeviceManager.cpp" line="843"/>
<location filename="../device/DeviceManager.cpp" line="1462"/>
<location filename="../device/DeviceManager.cpp" line="836"/>
<location filename="../device/DeviceManager.cpp" line="844"/>
<location filename="../device/DeviceManager.cpp" line="1463"/>
<source>DMS connection error</source>
<translation type="unfinished">DMS失去连接</translation>
</message>
@@ -497,8 +497,8 @@ progress:99%</source>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="257"/>
<location filename="../device/DeviceManager.cpp" line="896"/>
<location filename="../device/DeviceManager.cpp" line="904"/>
<location filename="../device/DeviceManager.cpp" line="897"/>
<location filename="../device/DeviceManager.cpp" line="905"/>
<source>Initialize Failed.</source>
<translation type="unfinished"></translation>
</message>
@@ -519,90 +519,98 @@ progress:99%</source>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="442"/>
<source>Scan completed! Please prepare for the next scan.
After lying down, click the confirm buttonto start scanning on the next side.</source>
<translation type="unfinished">
!</translation>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="443"/>
<source>Scan completed!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="786"/>
<location filename="../device/DeviceManager.cpp" line="787"/>
<source>Error: </source>
<translation type="unfinished">: </translation>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="870"/>
<location filename="../device/DeviceManager.cpp" line="871"/>
<source>Start scan failed. Reason:time out.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="881"/>
<location filename="../device/DeviceManager.cpp" line="882"/>
<source>Start scan failed. Reason:%1</source>
<translation type="unfinished">%1</translation>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="906"/>
<location filename="../device/DeviceManager.cpp" line="907"/>
<source>Start CE Scan Failed.</source>
<translation type="unfinished">CE扫查启动失败</translation>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="938"/>
<location filename="../device/DeviceManager.cpp" line="939"/>
<source>Data is currently being transmitted, please shut down later.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="945"/>
<location filename="../device/DeviceManager.cpp" line="946"/>
<source>Shut down failed, please push emergency button to shutdown.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="1036"/>
<location filename="../device/DeviceManager.cpp" line="1046"/>
<location filename="../device/DeviceManager.cpp" line="1122"/>
<location filename="../device/DeviceManager.cpp" line="1037"/>
<location filename="../device/DeviceManager.cpp" line="1047"/>
<location filename="../device/DeviceManager.cpp" line="1123"/>
<source>Scan data transfer failed.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="1100"/>
<location filename="../device/DeviceManager.cpp" line="1101"/>
<source>Scan data transfer Succeeded!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="1144"/>
<location filename="../device/DeviceManager.cpp" line="1145"/>
<source>Create empty scan data failed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="1167"/>
<location filename="../device/DeviceManager.cpp" line="1168"/>
<source>Create scan data failed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="1234"/>
<location filename="../device/DeviceManager.cpp" line="1235"/>
<source>Recon disconnected.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="1311"/>
<location filename="../device/DeviceManager.cpp" line="1326"/>
<location filename="../device/DeviceManager.cpp" line="1312"/>
<location filename="../device/DeviceManager.cpp" line="1327"/>
<source>Open pump failed.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="1343"/>
<location filename="../device/DeviceManager.cpp" line="1344"/>
<source>Recon error, can&apos;t start scan process</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="1384"/>
<location filename="../device/DeviceManager.cpp" line="1436"/>
<location filename="../device/DeviceManager.cpp" line="1385"/>
<location filename="../device/DeviceManager.cpp" line="1437"/>
<source>Start auto locate failed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="1456"/>
<location filename="../device/DeviceManager.cpp" line="1457"/>
<source>The data quality is low, please restart the data scan.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../device/DeviceManager.cpp" line="1484"/>
<location filename="../device/DeviceManager.cpp" line="1485"/>
<source>Device reset failed, please contact maintenance person</source>
<translation type="unfinished"></translation>
</message>
@@ -1559,12 +1567,12 @@ progress:99%</source>
<translation></translation>
</message>
<message>
<location filename="../windows/MainWindow.cpp" line="170"/>
<location filename="../windows/MainWindow.cpp" line="171"/>
<source>Please execute the empty scan, assist with system calibration, when empty scan is completed, the system should operate normally.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../windows/MainWindow.cpp" line="170"/>
<location filename="../windows/MainWindow.cpp" line="171"/>
<location filename="../windows/MainWindow.cpp" line="180"/>
<location filename="../windows/MainWindow.cpp" line="387"/>
<source>Warning</source>