DEV_OUTPATH Test

This commit is contained in:
Krad
2022-05-07 14:39:10 +08:00
parent 4e09f2eef6
commit 593883d980
6 changed files with 18 additions and 3 deletions

View File

@@ -113,6 +113,8 @@ const char* GetDeviceInfo(DeviceInfo infoType) {
return "28";
case VERSION:
return "6.6.06";
case DEV_OUTPATH:
return "path to store bin";
}
return "";
}

View File

@@ -30,7 +30,8 @@ typedef enum {
//kinds of device information
typedef enum {
MEAN_TEMPERATURE,
VERSION
VERSION,
DEV_OUTPATH
} DeviceInfo;
extern int InitLib(void(*)(const char *msg));

View File

@@ -314,3 +314,7 @@ void DeviceManager::close() {
QString DeviceManager::getSoftwareVersion() {
return GetDeviceInfo(VERSION);
}
QString DeviceManager::getScanOutputPath() {
return GetDeviceInfo(DEV_OUTPATH);
}

View File

@@ -21,6 +21,7 @@ public:
errorOccurred = v;
}
QString getSoftwareVersion();
QString getScanOutputPath();
bool getErrorOccurred(){
return errorOccurred;
}

View File

@@ -77,7 +77,8 @@ void AboutWidget::initUi()
pMainLayout->addWidget(pGuiVer);
pEmbededSoftVer = new QLabel(this);
pEmbededSoftVer->setText(tr("Embedded Software %1").arg(getEmbVersion()));
// pEmbededSoftVer->setText(tr("Embedded Software %1").arg(getEmbVersion()));
pEmbededSoftVer->setText(tr("Embedded Software %1, Data store Path:%2").arg(getEmbVersion(), getDataStorePath()));
pEmbededSoftVer->setContentsMargins(subContentMargin, 0, 0, 0);
pMainLayout->addWidget(pEmbededSoftVer);
@@ -157,7 +158,8 @@ void AboutWidget::initUi()
pBtnHelp->setText(tr("?"));
pCompanyCopyRight->setText(tr("Copyright © 2017-2020 Zhejiang Equilibrium Nine Medical Equipment Co., Ltd. All Rights Reversed"));
pGuiVer->setText(QString(tr("GUI Software V%1")).arg(getGUIVersion()));
pEmbededSoftVer->setText(tr("Embedded Software %1").arg(getEmbVersion()));
// pEmbededSoftVer->setText(tr("Embedded Software %1").arg(getEmbVersion()));
pEmbededSoftVer->setText(tr("Embedded Software %1, Data store Path:%2").arg(getEmbVersion(), getDataStorePath()));
pReconSotfVer->setText(tr("Reconstruction Software V1.2"));
pFEBVer->setText(tr("FEB Information"));
});
@@ -191,3 +193,7 @@ QString AboutWidget::getGUIVersion() {
QString AboutWidget::getEmbVersion() {
return DeviceManager::Default()->getSoftwareVersion();
}
QString AboutWidget::getDataStorePath() {
return DeviceManager::Default()->getScanOutputPath();;
}

View File

@@ -22,6 +22,7 @@ public:
QString getGUIVersion();
QString getEmbVersion();
QString getDataStorePath();
private slots:
void openHelpFile();