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

48 lines
1.2 KiB
C
Raw Normal View History

2021-10-09 16:38:34 +08:00
#ifndef GUI_SCANFORMWIDGET_H
#define GUI_SCANFORMWIDGET_H
#include "src/forms/TabFormWidget.h"
#include <functional>
#include <QtWidgets/QLabel>
class PatientInformationForm;
class QToolButton;
2021-10-09 16:38:34 +08:00
class ScanFormWidget :public TabFormWidget {
Q_OBJECT
public:
explicit ScanFormWidget(QWidget *parent = nullptr);
~ScanFormWidget() override = default;
void setPreviewing(bool val);
2024-04-01 16:02:40 +08:00
protected:
void keyPressEvent(QKeyEvent *event) override;
private:
PatientInformationForm* mPatInf= nullptr;
bool mUnInited = true;
int mCurrentFrame = 0;
2024-04-29 17:58:17 +08:00
QToolButton* mAccountButton;
QToolButton* mShutdownButton;
QToolButton* mWorklistButton;
QToolButton* mStartScanButton;
QToolButton* mDrainageButton;
QLabel* mXYLabel;
QLabel* mZLabel;
QLabel* mScanProcessLabel;
QTimer* mDrainageTimer;
2024-04-29 17:58:17 +08:00
void initCommandWidget(QHBoxLayout *layout);
void initScanControlBar(QHBoxLayout *layout);
void initScanContent();
void renderLoading();
2023-08-21 14:22:41 +08:00
void renderPreviewData(const QObject* sender, const QObject *data);
2022-06-29 09:56:13 +08:00
void reloadLanguage();
private slots:
void protocolChanged(int type);
2024-04-29 17:58:17 +08:00
void updateDataByAnonymousMode();
2022-06-29 09:56:13 +08:00
void initEvents();
2021-10-09 16:38:34 +08:00
};
#endif //GUI_SCANFORMWIDGET_H