app增加得力OEM

This commit is contained in:
yangjiaxuan 2023-07-17 13:40:22 +08:00
parent 6ae492077d
commit fcfedf5d03
28 changed files with 142 additions and 27 deletions

View File

@ -18,5 +18,6 @@
<file>image_rsc/logo/uniscan.ico</file> <file>image_rsc/logo/uniscan.ico</file>
<file>image_rsc/logo/waiting.gif</file> <file>image_rsc/logo/waiting.gif</file>
<file>image_rsc/distortion/testPaper.jpg</file> <file>image_rsc/distortion/testPaper.jpg</file>
<file>image_rsc/logo/deli.ico</file>
</qresource> </qresource>
</RCC> </RCC>

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

View File

@ -106,5 +106,6 @@
<file>image_rsc/logo/uniscan.ico</file> <file>image_rsc/logo/uniscan.ico</file>
<file>image_rsc/actions/imageEdit.png</file> <file>image_rsc/actions/imageEdit.png</file>
<file>image_rsc/actions/scanInto.png</file> <file>image_rsc/actions/scanInto.png</file>
<file>image_rsc/logo/deli.ico</file>
</qresource> </qresource>
</RCC> </RCC>

View File

@ -65,6 +65,8 @@ HGResult VersionDll::Load()
strcat(dllPath, "ZGVersion.dll"); strcat(dllPath, "ZGVersion.dll");
#elif defined(OEM_NEUTRAL) #elif defined(OEM_NEUTRAL)
strcat(dllPath, "HGNeuVersion.dll"); strcat(dllPath, "HGNeuVersion.dll");
#elif defined(OEM_DELI)
strcat(dllPath, "DeliVersion.dll");
#else #else
strcat(dllPath, "HGVersion.dll"); strcat(dllPath, "HGVersion.dll");
#endif #endif
@ -81,6 +83,8 @@ HGResult VersionDll::Load()
strcpy(dllPath, "libZgVersion.so"); strcpy(dllPath, "libZgVersion.so");
#elif defined(OEM_NEUTRAL) #elif defined(OEM_NEUTRAL)
strcat(dllPath, "libHGNeuVersion.so"); strcat(dllPath, "libHGNeuVersion.so");
#elif defined(OEM_DELI)
strcat(dllPath, "libDeliVersion.so");
#else #else
strcpy(dllPath, "libHGVersion.so"); strcpy(dllPath, "libHGVersion.so");
#endif #endif

View File

@ -237,6 +237,8 @@ void Dialog_AquireInto::setCfgBaseOnSection(QString section)
ui->lineEdit_fileName->setText(getCfgValue(section2.c_str(), "namePrefix", QString("ZGScan"))); ui->lineEdit_fileName->setText(getCfgValue(section2.c_str(), "namePrefix", QString("ZGScan")));
#elif defined(OEM_NEUTRAL) #elif defined(OEM_NEUTRAL)
ui->lineEdit_fileName->setText(getCfgValue(section2.c_str(), "namePrefix", QString("Scan"))); ui->lineEdit_fileName->setText(getCfgValue(section2.c_str(), "namePrefix", QString("Scan")));
#elif defined(OEM_DELI)
ui->lineEdit_fileName->setText(getCfgValue(section2.c_str(), "namePrefix", QString("DLScan")));
#else #else
ui->lineEdit_fileName->setText(getCfgValue(section2.c_str(), "namePrefix", QString("HGScan"))); ui->lineEdit_fileName->setText(getCfgValue(section2.c_str(), "namePrefix", QString("HGScan")));
#endif #endif

View File

@ -37,6 +37,8 @@ void Dialog_Feedback::on_pbtn_submit_clicked()
oemName = HGVERSION_OEMNAME_UNIS; oemName = HGVERSION_OEMNAME_UNIS;
#elif defined(OEM_NEUTRAL) #elif defined(OEM_NEUTRAL)
oemName = HGVERSION_OEMNAME_HUAGAO_NEU; oemName = HGVERSION_OEMNAME_HUAGAO_NEU;
#elif defined(OEM_DELI)
oemName = HGVERSION_OEMNAME_DELI;
#else #else
oemName = HGVERSION_OEMNAME_HUAGO; oemName = HGVERSION_OEMNAME_HUAGO;
#endif #endif

View File

@ -31,6 +31,8 @@ Dialog_upgrade::Dialog_upgrade(class VersionDll *versionDll, HGVersionInfo *vers
oemName = HGVERSION_OEMNAME_UNIS; oemName = HGVERSION_OEMNAME_UNIS;
#elif defined(OEM_NEUTRAL) #elif defined(OEM_NEUTRAL)
oemName = HGVERSION_OEMNAME_HUAGAO_NEU; oemName = HGVERSION_OEMNAME_HUAGAO_NEU;
#elif defined(OEM_DELI)
oemName = HGVERSION_OEMNAME_DELI;
#else #else
oemName = HGVERSION_OEMNAME_HUAGO; oemName = HGVERSION_OEMNAME_HUAGO;
#endif #endif

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

View File

@ -124,6 +124,10 @@ MainWindow::MainWindow(const QString& appLang, QWidget *parent)
this->setWindowIcon(QIcon(":images/image_rsc/logo/RightWay_logo.ico")); this->setWindowIcon(QIcon(":images/image_rsc/logo/RightWay_logo.ico"));
this->setWindowTitle(tr("Scan")); this->setWindowTitle(tr("Scan"));
m_oemName = HGVERSION_OEMNAME_HUAGO_NEU; m_oemName = HGVERSION_OEMNAME_HUAGO_NEU;
#elif defined(OEM_DELI)
this->setWindowIcon(QIcon(":images/image_rsc/logo/deli.ico"));
this->setWindowTitle(tr("DeliScan"));
m_oemName = HGVERSION_OEMNAME_DELI;
#else #else
this->setWindowIcon(QIcon(":images/image_rsc/logo/logo.ico")); this->setWindowIcon(QIcon(":images/image_rsc/logo/logo.ico"));
this->setWindowTitle(tr("HuaGoScan")); this->setWindowTitle(tr("HuaGoScan"));
@ -143,7 +147,7 @@ MainWindow::MainWindow(const QString& appLang, QWidget *parent)
ui->actionact_update->setVisible(false); ui->actionact_update->setVisible(false);
ui->act_feedback->setVisible(false); ui->act_feedback->setVisible(false);
#if !defined(OEM_HANWANG) && !defined(OEM_LISICHENG) && !defined(OEM_CANGTIAN) && !defined(OEM_ZHONGJING) && !defined(OEM_ZIGUANG) && !defined(OEM_NEUTRAL) #if !defined(OEM_HANWANG) && !defined(OEM_LISICHENG) && !defined(OEM_CANGTIAN) && !defined(OEM_ZHONGJING) && !defined(OEM_ZIGUANG) && !defined(OEM_NEUTRAL) && !defined(OEM_DELI)
if (m_versionDll->IsValid()) if (m_versionDll->IsValid())
{ {
ui->actionact_update->setVisible(true); ui->actionact_update->setVisible(true);
@ -374,6 +378,8 @@ MainWindow::MainWindow(const QString& appLang, QWidget *parent)
m_password = "uniscan"; m_password = "uniscan";
#elif defined(OEM_NEUTRAL) #elif defined(OEM_NEUTRAL)
m_password = "scan"; m_password = "scan";
#elif defined(OEM_DELI)
m_password = "deliscan";
#else #else
m_password = "huagoscan"; m_password = "huagoscan";
#endif #endif
@ -3263,6 +3269,8 @@ void MainWindow::on_act_help_triggered()
filename = QApplication::applicationDirPath() + "/UniScan_App_Help_manual.pdf"; filename = QApplication::applicationDirPath() + "/UniScan_App_Help_manual.pdf";
#elif defined(OEM_NEUTRAL) #elif defined(OEM_NEUTRAL)
filename = QApplication::applicationDirPath() + "/HGScan_App_Help_manual.pdf"; filename = QApplication::applicationDirPath() + "/HGScan_App_Help_manual.pdf";
#elif defined(OEM_DELI)
filename = QApplication::applicationDirPath() + "/DeliScan_App_Help_manual.pdf";
#else #else
filename = QApplication::applicationDirPath() + "/HuaGoScan_App_Help_manual.pdf"; filename = QApplication::applicationDirPath() + "/HuaGoScan_App_Help_manual.pdf";
#endif #endif
@ -3294,6 +3302,8 @@ void MainWindow::on_act_help_triggered()
filename = QApplication::applicationDirPath() + "/../../entries/help/UniScan_App_Help_manual.pdf"; filename = QApplication::applicationDirPath() + "/../../entries/help/UniScan_App_Help_manual.pdf";
#elif defined(OEM_NEUTRAL) #elif defined(OEM_NEUTRAL)
filename = QApplication::applicationDirPath() + "/../../entries/help/HGScan_App_Help_manual.pdf"; filename = QApplication::applicationDirPath() + "/../../entries/help/HGScan_App_Help_manual.pdf";
#elif defined(OEM_DELI)
filename = QApplication::applicationDirPath() + "/../../entries/help/DeliScan_App_Help_manual.pdf";
#else #else
filename = QApplication::applicationDirPath() + "/../../entries/help/HuaGoScan_App_Help_manual.pdf"; filename = QApplication::applicationDirPath() + "/../../entries/help/HuaGoScan_App_Help_manual.pdf";
#endif #endif
@ -3314,6 +3324,8 @@ void MainWindow::on_act_help_triggered()
filename = QApplication::applicationDirPath() + "/../doc/UniScan_App_Help_manual.pdf"; filename = QApplication::applicationDirPath() + "/../doc/UniScan_App_Help_manual.pdf";
#elif defined(OEM_NEUTRAL) #elif defined(OEM_NEUTRAL)
filename = QApplication::applicationDirPath() + "/../doc/HGScan_App_Help_manual.pdf"; filename = QApplication::applicationDirPath() + "/../doc/HGScan_App_Help_manual.pdf";
#elif defined(OEM_DELI)
filename = QApplication::applicationDirPath() + "/../doc/DeliScan_App_Help_manual.pdf";
#else #else
filename = QApplication::applicationDirPath() + "/../doc/HuaGoScan_App_Help_manual.pdf"; filename = QApplication::applicationDirPath() + "/../doc/HuaGoScan_App_Help_manual.pdf";
#endif #endif
@ -4000,6 +4012,13 @@ void MainWindow::upgradeApp(QString pkgPath)
// QFile::copy(curPath + "ZGBase.dll", tmpPath + "ZGBase.dll"); // QFile::copy(curPath + "ZGBase.dll", tmpPath + "ZGBase.dll");
// QFile::remove(tmpPath + "ZGVersion.dll"); // QFile::remove(tmpPath + "ZGVersion.dll");
// QFile::copy(curPath + "ZGVersion.dll", tmpPath + "ZGVersion.dll"); // QFile::copy(curPath + "ZGVersion.dll", tmpPath + "ZGVersion.dll");
// #elif defined(OEM_DELI)
// QFile::remove(tmpPath + "DLUpgradeApp.exe");
// QFile::copy(curPath + "DLUpgradeApp.exe", tmpPath + "DLUpgradeApp.exe");
// QFile::remove(tmpPath + "DLBase.dll");
// QFile::copy(curPath + "DLBase.dll", tmpPath + "DLBase.dll");
// QFile::remove(tmpPath + "DLVersion.dll");
// QFile::copy(curPath + "DLVersion.dll", tmpPath + "DLVersion.dll");
// #else // #else
QFile::remove(tmpPath + "HGUpgradeApp.exe"); QFile::remove(tmpPath + "HGUpgradeApp.exe");
QFile::copy(curPath + "HGUpgradeApp.exe", tmpPath + "HGUpgradeApp.exe"); QFile::copy(curPath + "HGUpgradeApp.exe", tmpPath + "HGUpgradeApp.exe");
@ -4066,6 +4085,13 @@ void MainWindow::upgradeApp(QString pkgPath)
// QFile::copy(curPath + "libZgBase.so", tmpPath + "libZgBase.so"); // QFile::copy(curPath + "libZgBase.so", tmpPath + "libZgBase.so");
// QFile::remove(tmpPath + "libZgVersion.so"); // QFile::remove(tmpPath + "libZgVersion.so");
// QFile::copy(curPath + "libZgVersion.so", tmpPath + "libZgVersion.so"); // QFile::copy(curPath + "libZgVersion.so", tmpPath + "libZgVersion.so");
// #elif defined(OEM_DELI)
// QFile::remove(tmpPath + "DlUpgradeApp");
// QFile::copy(curPath + "DlUpgradeApp", tmpPath + "DlUpgradeApp");
// QFile::remove(tmpPath + "libDlBase.so");
// QFile::copy(curPath + "libDlBase.so", tmpPath + "libDlBase.so");
// QFile::remove(tmpPath + "libDlVersion.so");
// QFile::copy(curPath + "libDlVersion.so", tmpPath + "libDlVersion.so");
// #else // #else
QFile::remove(tmpPath + "HGUpgradeApp"); QFile::remove(tmpPath + "HGUpgradeApp");
QFile::copy(curPath + "HGUpgradeApp", tmpPath + "HGUpgradeApp"); QFile::copy(curPath + "HGUpgradeApp", tmpPath + "HGUpgradeApp");
@ -4097,6 +4123,8 @@ void MainWindow::upgradeApp(QString pkgPath)
// isSuccessdStart = proc.startDetached(tmpPath + "ZJUpgradeApp.exe", argList); // isSuccessdStart = proc.startDetached(tmpPath + "ZJUpgradeApp.exe", argList);
// #elif defined(OEM_ZIGUANG) // #elif defined(OEM_ZIGUANG)
// isSuccessdStart = proc.startDetached(tmpPath + "ZGUpgradeApp.exe", argList); // isSuccessdStart = proc.startDetached(tmpPath + "ZGUpgradeApp.exe", argList);
// #elif defined(OEM_DELI)
// isSuccessdStart = proc.startDetached(tmpPath + "DLUpgradeApp.exe", argList);
// #else // #else
isSuccessdStart = proc.startDetached(tmpPath + "HGUpgradeApp.exe", argList); isSuccessdStart = proc.startDetached(tmpPath + "HGUpgradeApp.exe", argList);
// #endif // #endif

View File

@ -106,5 +106,6 @@
<file>image_rsc/logo/uniscan.ico</file> <file>image_rsc/logo/uniscan.ico</file>
<file>image_rsc/actions/imageEdit.png</file> <file>image_rsc/actions/imageEdit.png</file>
<file>image_rsc/actions/scanInto.png</file> <file>image_rsc/actions/scanInto.png</file>
<file>image_rsc/logo/deli.ico</file>
</qresource> </qresource>
</RCC> </RCC>

View File

@ -234,6 +234,8 @@ void Dialog_AquireInto::setCfgBaseOnSection(QString section)
ui->lineEdit_fileName->setText(getCfgValue(section2.c_str(), "namePrefix", QString("ZGScan"))); ui->lineEdit_fileName->setText(getCfgValue(section2.c_str(), "namePrefix", QString("ZGScan")));
#elif defined(OEM_NEUTRAL) #elif defined(OEM_NEUTRAL)
ui->lineEdit_fileName->setText(getCfgValue(section2.c_str(), "namePrefix", QString("Scan"))); ui->lineEdit_fileName->setText(getCfgValue(section2.c_str(), "namePrefix", QString("Scan")));
#elif defined(OEM_DELI)
ui->lineEdit_fileName->setText(getCfgValue(section2.c_str(), "namePrefix", QString("DLScan")));
#else #else
ui->lineEdit_fileName->setText(getCfgValue(section2.c_str(), "namePrefix", QString("HGScan"))); ui->lineEdit_fileName->setText(getCfgValue(section2.c_str(), "namePrefix", QString("HGScan")));
#endif #endif

View File

@ -37,6 +37,8 @@ void Dialog_Feedback::on_pbtn_submit_clicked()
oemName = HGVERSION_OEMNAME_UNIS; oemName = HGVERSION_OEMNAME_UNIS;
#elif defined(OEM_NEUTRAL) #elif defined(OEM_NEUTRAL)
oemName = HGVERSION_OEMNAME_NEUTRAL; oemName = HGVERSION_OEMNAME_NEUTRAL;
#elif defined(OEM_DELI)
oemName = HGVERSION_OEMNAME_DELI;
#else #else
oemName = HGVERSION_OEMNAME_HUAGO; oemName = HGVERSION_OEMNAME_HUAGO;
#endif #endif

View File

@ -31,6 +31,8 @@ Dialog_upgrade::Dialog_upgrade(class VersionDll *versionDll, HGVersionInfo *vers
oemName = HGVERSION_OEMNAME_UNIS; oemName = HGVERSION_OEMNAME_UNIS;
#elif defined(OEM_NEUTRAL) #elif defined(OEM_NEUTRAL)
oemName = HGVERSION_OEMNAME_NEUTRAL; oemName = HGVERSION_OEMNAME_NEUTRAL;
#elif defined(OEM_DELI)
oemName = HGVERSION_OEMNAME_DELI;
#else #else
oemName = HGVERSION_OEMNAME_HUAGO; oemName = HGVERSION_OEMNAME_HUAGO;
#endif #endif

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

View File

@ -118,9 +118,13 @@ MainWindow::MainWindow(const QString& appLang, QWidget *parent)
this->setWindowTitle(tr("UniScan")); this->setWindowTitle(tr("UniScan"));
m_oemName = HGVERSION_OEMNAME_UNIS; m_oemName = HGVERSION_OEMNAME_UNIS;
#elif defined(OEM_NEUTRAL) #elif defined(OEM_NEUTRAL)
this->setWindowIcon(QIcon(":images/image_rsc/logo/RightWay_logo.ico")); this->setWindowIcon(QIcon(":images/image_rsc/logo/NoBrand_logo.ico"));
this->setWindowTitle(tr("Scan")); this->setWindowTitle(tr("Scan"));
m_oemName = HGVERSION_OEMNAME_NEUTRAL; m_oemName = HGVERSION_OEMNAME_NEUTRAL;
#elif defined(OEM_DELI)
this->setWindowIcon(QIcon(":images/image_rsc/logo/deli.ico"));
this->setWindowTitle(tr("DeliScan"));
m_oemName = HGVERSION_OEMNAME_DELI;
#else #else
this->setWindowIcon(QIcon(":images/image_rsc/logo/logo.ico")); this->setWindowIcon(QIcon(":images/image_rsc/logo/logo.ico"));
this->setWindowTitle(tr("HuaGoScan")); this->setWindowTitle(tr("HuaGoScan"));
@ -142,7 +146,7 @@ MainWindow::MainWindow(const QString& appLang, QWidget *parent)
ui->actionact_update->setVisible(false); ui->actionact_update->setVisible(false);
ui->act_feedback->setVisible(false); ui->act_feedback->setVisible(false);
#if !defined(OEM_HANWANG) && !defined(OEM_LISICHENG) && !defined(OEM_CANGTIAN) && !defined(OEM_ZHONGJING) && !defined(OEM_ZIGUANG) && !defined(OEM_NEUTRAL) #if !defined(OEM_HANWANG) && !defined(OEM_LISICHENG) && !defined(OEM_CANGTIAN) && !defined(OEM_ZHONGJING) && !defined(OEM_ZIGUANG) && !defined(OEM_NEUTRAL) && !defined(OEM_DELI)
if (m_versionDll->IsValid()) if (m_versionDll->IsValid())
{ {
ui->actionact_update->setVisible(true); ui->actionact_update->setVisible(true);
@ -348,6 +352,8 @@ MainWindow::MainWindow(const QString& appLang, QWidget *parent)
m_password = "uniscan"; m_password = "uniscan";
#elif defined(OEM_NEUTRAL) #elif defined(OEM_NEUTRAL)
m_password = "scan"; m_password = "scan";
#elif defined(OEM_DELI)
m_password = "deliscan";
#else #else
m_password = "huagoscan"; m_password = "huagoscan";
#endif #endif
@ -2805,6 +2811,8 @@ void MainWindow::on_act_help_triggered()
filename = QApplication::applicationDirPath() + "/UniScan_App_Help_manual.pdf"; filename = QApplication::applicationDirPath() + "/UniScan_App_Help_manual.pdf";
#elif defined(OEM_NEUTRAL) #elif defined(OEM_NEUTRAL)
filename = QApplication::applicationDirPath() + "/NeuScan_App_Help_manual.pdf"; filename = QApplication::applicationDirPath() + "/NeuScan_App_Help_manual.pdf";
#elif defined(OEM_DELI)
filename = QApplication::applicationDirPath() + "/DeliScan_App_Help_manual.pdf";
#else #else
filename = QApplication::applicationDirPath() + "/HuaGoScan_App_Help_manual.pdf"; filename = QApplication::applicationDirPath() + "/HuaGoScan_App_Help_manual.pdf";
#endif #endif
@ -2836,6 +2844,8 @@ void MainWindow::on_act_help_triggered()
filename = QApplication::applicationDirPath() + "/../../entries/help/UniScan_App_Help_manual.pdf"; filename = QApplication::applicationDirPath() + "/../../entries/help/UniScan_App_Help_manual.pdf";
#elif defined(OEM_NEUTRAL) #elif defined(OEM_NEUTRAL)
filename = QApplication::applicationDirPath() + "/../../entries/help/NeuScan_App_Help_manual.pdf"; filename = QApplication::applicationDirPath() + "/../../entries/help/NeuScan_App_Help_manual.pdf";
#elif defined(OEM_DELI)
filename = QApplication::applicationDirPath() + "/../../entries/help/DeliScan_App_Help_manual.pdf";
#else #else
filename = QApplication::applicationDirPath() + "/../../entries/help/HuaGoScan_App_Help_manual.pdf"; filename = QApplication::applicationDirPath() + "/../../entries/help/HuaGoScan_App_Help_manual.pdf";
#endif #endif
@ -2856,6 +2866,8 @@ void MainWindow::on_act_help_triggered()
filename = QApplication::applicationDirPath() + "/../doc/UniScan_App_Help_manual.pdf"; filename = QApplication::applicationDirPath() + "/../doc/UniScan_App_Help_manual.pdf";
#elif defined(OEM_NEUTRAL) #elif defined(OEM_NEUTRAL)
filename = QApplication::applicationDirPath() + "/../doc/NeuScan_App_Help_manual.pdf"; filename = QApplication::applicationDirPath() + "/../doc/NeuScan_App_Help_manual.pdf";
#elif defined(OEM_DELI)
filename = QApplication::applicationDirPath() + "/../doc/DeliScan_App_Help_manual.pdf";
#else #else
filename = QApplication::applicationDirPath() + "/../doc/HuaGoScan_App_Help_manual.pdf"; filename = QApplication::applicationDirPath() + "/../doc/HuaGoScan_App_Help_manual.pdf";
#endif #endif
@ -3269,6 +3281,13 @@ void MainWindow::upgradeApp(QString pkgPath)
// QFile::copy(curPath + "ZGBase.dll", tmpPath + "ZGBase.dll"); // QFile::copy(curPath + "ZGBase.dll", tmpPath + "ZGBase.dll");
// QFile::remove(tmpPath + "ZGVersion.dll"); // QFile::remove(tmpPath + "ZGVersion.dll");
// QFile::copy(curPath + "ZGVersion.dll", tmpPath + "ZGVersion.dll"); // QFile::copy(curPath + "ZGVersion.dll", tmpPath + "ZGVersion.dll");
// #elif defined(OEM_DELI)
// QFile::remove(tmpPath + "DLUpgradeApp.exe");
// QFile::copy(curPath + "DLUpgradeApp.exe", tmpPath + "DLUpgradeApp.exe");
// QFile::remove(tmpPath + "DLBase.dll");
// QFile::copy(curPath + "DLBase.dll", tmpPath + "DLBase.dll");
// QFile::remove(tmpPath + "DLVersion.dll");
// QFile::copy(curPath + "DLVersion.dll", tmpPath + "DLVersion.dll");
// #else // #else
QFile::remove(tmpPath + "HGUpgradeApp.exe"); QFile::remove(tmpPath + "HGUpgradeApp.exe");
QFile::copy(curPath + "HGUpgradeApp.exe", tmpPath + "HGUpgradeApp.exe"); QFile::copy(curPath + "HGUpgradeApp.exe", tmpPath + "HGUpgradeApp.exe");
@ -3380,6 +3399,13 @@ void MainWindow::upgradeApp(QString pkgPath)
// QFile::copy(curPath + "libZgBase.so", tmpPath + "libZgBase.so"); // QFile::copy(curPath + "libZgBase.so", tmpPath + "libZgBase.so");
// QFile::remove(tmpPath + "libZgVersion.so"); // QFile::remove(tmpPath + "libZgVersion.so");
// QFile::copy(curPath + "libZgVersion.so", tmpPath + "libZgVersion.so"); // QFile::copy(curPath + "libZgVersion.so", tmpPath + "libZgVersion.so");
// #elif defined(OEM_DELI)
// QFile::remove(tmpPath + "DlUpgradeApp");
// QFile::copy(curPath + "DlUpgradeApp", tmpPath + "DlUpgradeApp");
// QFile::remove(tmpPath + "libDlBase.so");
// QFile::copy(curPath + "libDlBase.so", tmpPath + "libDlBase.so");
// QFile::remove(tmpPath + "libDlVersion.so");
// QFile::copy(curPath + "libDlVersion.so", tmpPath + "libDlVersion.so");
// #else // #else
QFile::remove(tmpPath + "HGUpgradeApp"); QFile::remove(tmpPath + "HGUpgradeApp");
QFile::copy(curPath + "HGUpgradeApp", tmpPath + "HGUpgradeApp"); QFile::copy(curPath + "HGUpgradeApp", tmpPath + "HGUpgradeApp");
@ -3411,6 +3437,8 @@ void MainWindow::upgradeApp(QString pkgPath)
// isSuccessdStart = proc.startDetached(tmpPath + "ZJUpgradeApp.exe", argList); // isSuccessdStart = proc.startDetached(tmpPath + "ZJUpgradeApp.exe", argList);
// #elif defined(OEM_ZIGUANG) // #elif defined(OEM_ZIGUANG)
// isSuccessdStart = proc.startDetached(tmpPath + "ZGUpgradeApp.exe", argList); // isSuccessdStart = proc.startDetached(tmpPath + "ZGUpgradeApp.exe", argList);
// #elif defined(OEM_DELI)
// isSuccessdStart = proc.startDetached(tmpPath + "DLUpgradeApp.exe", argList);
// #else // #else
proc.setWorkingDirectory(tmpPath); proc.setWorkingDirectory(tmpPath);
isSuccessdStart = proc.startDetached(tmpPath + "HGUpgradeApp.exe", argList); isSuccessdStart = proc.startDetached(tmpPath + "HGUpgradeApp.exe", argList);
@ -3426,6 +3454,8 @@ void MainWindow::upgradeApp(QString pkgPath)
// isSuccessdStart = proc.startDetached(tmpPath + "ZjUpgradeApp", argList); // isSuccessdStart = proc.startDetached(tmpPath + "ZjUpgradeApp", argList);
// #elif defined(OEM_ZIGUANG) // #elif defined(OEM_ZIGUANG)
// isSuccessdStart = proc.startDetached(tmpPath + "ZgUpgradeApp", argList); // isSuccessdStart = proc.startDetached(tmpPath + "ZgUpgradeApp", argList);
// #elif defined(OEM_DELI)
// isSuccessdStart = proc.startDetached(tmpPath + "DlUpgradeApp", argList);
// #else // #else
isSuccessdStart = proc.startDetached(tmpPath + "HGUpgradeApp", argList); isSuccessdStart = proc.startDetached(tmpPath + "HGUpgradeApp", argList);
// #endif // #endif
@ -3633,6 +3663,8 @@ void MainWindow::ocrMsgPumpFunc(HGMsgPump msgPump, const HGMsg *msg, HGPointer p
proc.startDetached(curPath + "ZgOCR.exe", argList); proc.startDetached(curPath + "ZgOCR.exe", argList);
#elif defined(OEM_NEUTRAL) #elif defined(OEM_NEUTRAL)
proc.startDetached(curPath + "NeuOCR.exe", argList); proc.startDetached(curPath + "NeuOCR.exe", argList);
#elif defined(OEM_DELI)
proc.startDetached(curPath + "DeliOCR.exe", argList);
#else #else
proc.startDetached(curPath + "HGOCR.exe", argList); proc.startDetached(curPath + "HGOCR.exe", argList);
#endif #endif
@ -3649,6 +3681,8 @@ void MainWindow::ocrMsgPumpFunc(HGMsgPump msgPump, const HGMsg *msg, HGPointer p
proc.startDetached(curPath + "ZgOCR", argList); proc.startDetached(curPath + "ZgOCR", argList);
#elif defined(OEM_NEUTRAL) #elif defined(OEM_NEUTRAL)
proc.startDetached(curPath + "NeuOCR", argList); proc.startDetached(curPath + "NeuOCR", argList);
#elif defined(OEM_DELI)
proc.startDetached(curPath + "DeliOCR", argList);
#else #else
proc.startDetached(curPath + "HGOCR", argList); proc.startDetached(curPath + "HGOCR", argList);
#endif #endif

View File

@ -16,5 +16,6 @@
<file>image_rsc/logo/NoBrand_logo.ico</file> <file>image_rsc/logo/NoBrand_logo.ico</file>
<file>image_rsc/logo/RightWay_logo.ico</file> <file>image_rsc/logo/RightWay_logo.ico</file>
<file>image_rsc/logo/waiting.gif</file> <file>image_rsc/logo/waiting.gif</file>
<file>image_rsc/logo/deli.ico</file>
</qresource> </qresource>
</RCC> </RCC>

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

View File

@ -37,7 +37,10 @@ if (contains(DEFINES, OEM_HANWANG)) {
RC_ICONS = ../../../app/fwupgrade/image_rsc/logo/uniscan.ico RC_ICONS = ../../../app/fwupgrade/image_rsc/logo/uniscan.ico
} else { } else {
if (contains(DEFINES, OEM_NEUTRAL)) { if (contains(DEFINES, OEM_NEUTRAL)) {
RC_ICONS = ../../../app/fwupgrade/image_rsc/logo/RightWay_logo.ico RC_ICONS = ../../../app/fwupgrade/image_rsc/logo/NoBrand_logo.ico
} else {
if (contains(DEFINES, OEM_DELI)) {
RC_ICONS = ../../../app/fwupgrade/image_rsc/logo/deli.ico
} else { } else {
RC_ICONS = ../../../app/fwupgrade/image_rsc/logo/logo.ico RC_ICONS = ../../../app/fwupgrade/image_rsc/logo/logo.ico
} }
@ -46,6 +49,7 @@ if (contains(DEFINES, OEM_HANWANG)) {
} }
} }
} }
}
CONFIG(debug, debug|release) { CONFIG(debug, debug|release) {
MY_CONFIGURE = Debug MY_CONFIGURE = Debug

View File

@ -36,6 +36,12 @@ if (contains(DEFINES, OEM_HANWANG)) {
OEM_PREFIX2 = Neu OEM_PREFIX2 = Neu
OEM_PREFIX3 = neu OEM_PREFIX3 = neu
OEM_NAME = neutral OEM_NAME = neutral
} else {
if (contains(DEFINES, OEM_DELI)) {
OEM_PREFIX = DL
OEM_PREFIX2 = Dl
OEM_PREFIX3 = dl
OEM_NAME = deli
} else { } else {
OEM_PREFIX = HG OEM_PREFIX = HG
OEM_PREFIX2 = HG OEM_PREFIX2 = HG
@ -47,3 +53,4 @@ if (contains(DEFINES, OEM_HANWANG)) {
} }
} }
} }
}

View File

@ -42,8 +42,12 @@ if (contains(DEFINES, OEM_HANWANG)) {
TARGET = UniScan TARGET = UniScan
} else { } else {
if (contains(DEFINES, OEM_NEUTRAL)) { if (contains(DEFINES, OEM_NEUTRAL)) {
RC_ICONS = ../../../app/scanner/image_rsc/logo/RightWay_logo.ico RC_ICONS = ../../../app/scanner/image_rsc/logo/NoBrand_logo.ico
TARGET = HGScan TARGET = NeuScan
} else {
if (contains(DEFINES, OEM_DELI)) {
RC_ICONS = ../../../app/scanner/image_rsc/logo/deli.ico
TARGET = DELI SCAN
} else { } else {
RC_ICONS = ../../../app/scanner/image_rsc/logo/logo.ico RC_ICONS = ../../../app/scanner/image_rsc/logo/logo.ico
TARGET = HuaGoScan TARGET = HuaGoScan
@ -53,6 +57,7 @@ if (contains(DEFINES, OEM_HANWANG)) {
} }
} }
} }
}
CONFIG(debug, debug|release) { CONFIG(debug, debug|release) {
MY_CONFIGURE = Debug MY_CONFIGURE = Debug

View File

@ -42,8 +42,12 @@ if (contains(DEFINES, OEM_HANWANG)) {
TARGET = UniScan2 TARGET = UniScan2
} else { } else {
if (contains(DEFINES, OEM_NEUTRAL)) { if (contains(DEFINES, OEM_NEUTRAL)) {
RC_ICONS = ../../../app/scanner2/image_rsc/logo/RightWay_logo.ico RC_ICONS = ../../../app/scanner2/image_rsc/logo/NoBrand_logo.ico
TARGET = NeuScan2 TARGET = NeuScan2
} else {
if (contains(DEFINES, OEM_DELI)) {
RC_ICONS = ../../../app/scanner2/image_rsc/logo/deli.ico
TARGET = DELI SCAN2
} else { } else {
RC_ICONS = ../../../app/scanner2/image_rsc/logo/logo.ico RC_ICONS = ../../../app/scanner2/image_rsc/logo/logo.ico
TARGET = HuaGoScan2 TARGET = HuaGoScan2
@ -53,6 +57,7 @@ if (contains(DEFINES, OEM_HANWANG)) {
} }
} }
} }
}
CONFIG(debug, debug|release) { CONFIG(debug, debug|release) {
MY_CONFIGURE = Debug MY_CONFIGURE = Debug

View File

@ -37,7 +37,10 @@ if (contains(DEFINES, OEM_HANWANG)) {
RC_ICONS = ../../../app/upgrade/image_rsc/logo/uniscan.ico RC_ICONS = ../../../app/upgrade/image_rsc/logo/uniscan.ico
} else { } else {
if (contains(DEFINES, OEM_NEUTRAL)) { if (contains(DEFINES, OEM_NEUTRAL)) {
RC_ICONS = ../../../app/upgrade/image_rsc/logo/RightWay_logo.ico RC_ICONS = ../../../app/upgrade/image_rsc/logo/NoBrand_logo.ico
} else {
if (contains(DEFINES, OEM_DELI)) {
RC_ICONS = ../../../app/upgrade/image_rsc/logo/deli.ico
} else { } else {
RC_ICONS = ../../../app/upgrade/image_rsc/logo/logo.ico RC_ICONS = ../../../app/upgrade/image_rsc/logo/logo.ico
} }
@ -46,6 +49,7 @@ if (contains(DEFINES, OEM_HANWANG)) {
} }
} }
} }
}
CONFIG(debug, debug|release) { CONFIG(debug, debug|release) {
MY_CONFIGURE = Debug MY_CONFIGURE = Debug

View File

@ -332,7 +332,7 @@ LRESULT CALLBACK HGTwainDSMImpl::NewWndProc(HWND hWnd, UINT msg, WPARAM wParam,
bool HGTwainDSMImpl::filterTwainSource(const char* sourceName, int majorNum) bool HGTwainDSMImpl::filterTwainSource(const char* sourceName, int majorNum)
{ {
#if !defined(OEM_HANWANG) && !defined(OEM_LISICHENG) && !defined(OEM_CANGTIAN) && !defined(OEM_ZHONGJING) && !defined(OEM_ZIGUANG) && !defined(OEM_NEUTRAL) #if !defined(OEM_HANWANG) && !defined(OEM_LISICHENG) && !defined(OEM_CANGTIAN) && !defined(OEM_ZHONGJING) && !defined(OEM_ZIGUANG) && !defined(OEM_NEUTRAL) && !defined(OEM_DELI)
std::string oemIden = "HUAGOSCAN"; std::string oemIden = "HUAGOSCAN";
#elif defined(OEM_HANWANG) #elif defined(OEM_HANWANG)
std::string oemIden = "Hanvon"; std::string oemIden = "Hanvon";
@ -344,6 +344,8 @@ bool HGTwainDSMImpl::filterTwainSource(const char* sourceName, int majorNum)
std::string oemIden = "Microtek"; std::string oemIden = "Microtek";
#elif defined(OEM_ZIGUANG) #elif defined(OEM_ZIGUANG)
std::string oemIden = "Uniscan"; std::string oemIden = "Uniscan";
#elif defined(OEM_DELI)
std::string oemIden = "DELI SCAN";
#endif #endif
if (sourceName != strstr(sourceName, oemIden.c_str()) || 4 != majorNum) if (sourceName != strstr(sourceName, oemIden.c_str()) || 4 != majorNum)

View File

@ -14,5 +14,6 @@
<file>image_rsc/logo/NoBrand_logo.ico</file> <file>image_rsc/logo/NoBrand_logo.ico</file>
<file>image_rsc/logo/RightWay_logo.ico</file> <file>image_rsc/logo/RightWay_logo.ico</file>
<file>image_rsc/logo/uniscan.ico</file> <file>image_rsc/logo/uniscan.ico</file>
<file>image_rsc/logo/deli.ico</file>
</qresource> </qresource>
</RCC> </RCC>

View File

@ -188,6 +188,8 @@ HGResult GetConfigPath(HGChar* configPath, HGUInt maxLen)
appName = "MicrotekScan"; appName = "MicrotekScan";
#elif defined(OEM_ZIGUANG) #elif defined(OEM_ZIGUANG)
appName = "UniScan"; appName = "UniScan";
#elif defined(OEM_DELI)
appName = "DeliScan";
#endif #endif
#if defined(HG_CMP_MSC) #if defined(HG_CMP_MSC)

View File

@ -2282,6 +2282,8 @@ void hg_settingdialog::setIcon()
this->setWindowIcon(QIcon(":logo/image_rsc/logo/Microtek_logo.ico")); this->setWindowIcon(QIcon(":logo/image_rsc/logo/Microtek_logo.ico"));
#elif defined(OEM_ZIGUANG) #elif defined(OEM_ZIGUANG)
this->setWindowIcon(QIcon(":logo/image_rsc/logo/uniscan.ico")); this->setWindowIcon(QIcon(":logo/image_rsc/logo/uniscan.ico"));
#elif defined(OEM_DELI)
this->setWindowIcon(QIcon(":logo/image_rsc/logo/deli.ico"));
#endif #endif
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

View File

@ -15,6 +15,7 @@ HG_DECLARE_HANDLE(HGVersionMgr);
#define HGVERSION_OEMNAME_CUMTENN "Cumtenn" #define HGVERSION_OEMNAME_CUMTENN "Cumtenn"
#define HGVERSION_OEMNAME_MICROTEK "Microtek" #define HGVERSION_OEMNAME_MICROTEK "Microtek"
#define HGVERSION_OEMNAME_UNIS "Unis" #define HGVERSION_OEMNAME_UNIS "Unis"
#define HGVERSION_OEMNAME_DELI "Deli"
#pragma pack(push) #pragma pack(push)
#pragma pack(4) #pragma pack(4)