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

50 lines
1.2 KiB
C
Raw Normal View History

2021-10-09 16:38:34 +08:00
//
// Created by Krad on 2021/10/8.
//
#ifndef GUI_SCANFORMWIDGET_H
#define GUI_SCANFORMWIDGET_H
2022-02-14 11:40:40 +08:00
#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);
private:
PatientInformationForm* mPatInf= nullptr;
bool mUnInited = true;
int mCurrentFrame = 0;
QLabel* mLblProtocol;
QToolButton* mBtnLeft;
QToolButton* mBtnRight;
QToolButton* mBtnRefresh;
QToolButton* mBtnPreview;
QToolButton* mBtnStop;
QToolButton* mBtnScan;
QLabel* mViewer;
QLabel* mLblPreview;
QLabel* mLblE;
QLabel* mLblParams;
QLabel* mLblE2;
void initProtocolUI(QHBoxLayout *layout);
void initScanControlBar(QHBoxLayout *layout);
void initScanContent();
void renderLoading();
void renderPreviewData(const QObject *data);
2022-06-29 09:56:13 +08:00
void reloadLanguage();
private slots:
void protocolChanged(int type);
2022-06-29 09:56:13 +08:00
void initEvents();
2021-10-09 16:38:34 +08:00
};
#endif //GUI_SCANFORMWIDGET_H