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"
|
2021-10-13 17:36:38 +08:00
|
|
|
#include <functional>
|
2021-10-12 17:43:12 +08:00
|
|
|
class PatientInformationForm;
|
2021-10-09 16:38:34 +08:00
|
|
|
class ScanFormWidget :public TabFormWidget {
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
2021-10-13 17:36:38 +08:00
|
|
|
explicit ScanFormWidget(QWidget *parent = nullptr);
|
|
|
|
|
~ScanFormWidget();
|
|
|
|
|
void setPreviewing(bool val);
|
2021-10-12 17:43:12 +08:00
|
|
|
private:
|
|
|
|
|
PatientInformationForm* pat_inf= nullptr;
|
2021-10-13 17:36:38 +08:00
|
|
|
bool unset = true;
|
|
|
|
|
bool previewing= false;
|
|
|
|
|
std::function<void(bool)> previewfunc = nullptr;
|
2022-01-19 16:42:55 +08:00
|
|
|
int currentFrame = 0;
|
2021-10-12 17:43:12 +08:00
|
|
|
private slots:
|
|
|
|
|
void protocolChanged(int type);
|
|
|
|
|
|
2021-10-09 16:38:34 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif //GUI_SCANFORMWIDGET_H
|