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