feat: Add requestCEchoTest method to DialogManager class
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include "dialogs/IpSettingsDialog.h"
|
||||
#include "dialogs/MppsSettingsDialog.h"
|
||||
#include "dialogs/StartScanProcessDialog.h"
|
||||
#include "dialogs/CEchoTestDialog.h"
|
||||
|
||||
#include "network/DicomCfgDialog.h"
|
||||
#include "network/GetAdminPsw.h"
|
||||
@@ -53,6 +54,7 @@ DialogManager::DialogManager()
|
||||
, mSyncDialog(nullptr)
|
||||
, mTopWidget(nullptr)
|
||||
, mGetWorkListDialog(nullptr)
|
||||
, mCEchoTestDialog(nullptr)
|
||||
{
|
||||
|
||||
}
|
||||
@@ -438,6 +440,20 @@ int DialogManager::requestPatientConfirm(PatientInformation* patientInf, int typ
|
||||
return ret;
|
||||
}
|
||||
|
||||
int DialogManager::requestCEchoTest(const QList<CEchoSetting>& aInputValue)
|
||||
{
|
||||
CEchoTestDialog dialog(mTopWidget);
|
||||
dialog.setCEchoSettings(aInputValue);
|
||||
mCEchoTestDialog = &dialog;
|
||||
setTopWidget(&dialog);
|
||||
|
||||
dialog.setWindowModality(Qt::WindowModal);
|
||||
int ret = dialog.exec();
|
||||
releaseTopWidget(&dialog);
|
||||
mCEchoTestDialog = nullptr;
|
||||
return ret;
|
||||
}
|
||||
|
||||
int DialogManager::requestGetWorkList()
|
||||
{
|
||||
GetWorkListDialog dialog(WorkListManager::getInstance()->getTableModel(), WorkListManager::getInstance()->getTableView(), mTopWidget);
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include <QPointer>
|
||||
#include <QVariant>
|
||||
#include <mutex>
|
||||
#include "dicom/CEchoSetting.h"
|
||||
|
||||
class GUIMessageDialog;
|
||||
class QSqlTableModel;
|
||||
@@ -15,6 +16,7 @@ class LoginDialog;
|
||||
class ScreenSaverWindow;
|
||||
class GetWorkListDialog;
|
||||
class PatientInformation;
|
||||
class CEchoTestDialog;
|
||||
|
||||
enum MessageLevel:unsigned int;
|
||||
|
||||
@@ -67,6 +69,8 @@ public:
|
||||
int requestGetWorkList();
|
||||
int requestGetWorkList(const QString& aInputValue);
|
||||
int requestPatientConfirm(PatientInformation* patientInf, int type);
|
||||
int requestCEchoTest(const QList<CEchoSetting>& aInputValue);
|
||||
|
||||
DialogResult requestEditIpAndNetMask();
|
||||
DialogResult requestEditIpAndNetMask(const QStringList& aEditData);
|
||||
DialogResult requestEditRouteInfo();
|
||||
@@ -101,6 +105,7 @@ private:
|
||||
QWidget* mTopWidget;
|
||||
std::mutex mMutex;
|
||||
GetWorkListDialog* mGetWorkListDialog;
|
||||
CEchoTestDialog* mCEchoTestDialog;
|
||||
int mDialogCount = 0;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user