Files
GUI/src/forms/scan/ScanFormWidget.h

52 lines
1.3 KiB
C++

#ifndef GUI_SCANFORMWIDGET_H
#define GUI_SCANFORMWIDGET_H
#include "src/forms/TabFormWidget.h"
#include <functional>
#include <QtWidgets/QLabel>
#include <QStack>
class PatientInformationForm;
class PatientInformation;
class QToolButton;
class CoordinateXYWidget;
class CoordinateZWidget;
class ScanFormWidget :public TabFormWidget {
Q_OBJECT
public:
explicit ScanFormWidget(QWidget *parent = nullptr);
~ScanFormWidget() override = default;
void setPreviewing(bool val);
private:
PatientInformationForm* mPatInf= nullptr;
bool mUnInited = true;
int mCurrentFrame = 0;
QToolButton* mAccountButton;
QToolButton* mShutdownButton;
QToolButton* mStartScanButton;
QToolButton* mDrainageButton;
CoordinateXYWidget* mXYLabel;
CoordinateZWidget* mZLabel;
QLabel* mScanProcessLabel;
QTimer* mDrainageTimer;
void initCommandWidget(QHBoxLayout *layout);
void initScanContent();
void renderLoading();
void renderPreviewData(const QObject* sender, const QObject *data);
void reloadLanguage();
void setScanProtocal(PatientInformation* aPatient, int aProtocal);
QString getAutoLocateMessage();
private slots:
void protocolChanged(int type);
void prepareStartFullScan();
void initEvents();
};
#endif //GUI_SCANFORMWIDGET_H