Rename patientinformationform to PatientInformationForm.

This commit is contained in:
Krad
2022-06-14 17:15:23 +08:00
parent 487adba746
commit 65f8fdff05
6 changed files with 265 additions and 234 deletions

View File

@@ -7,22 +7,40 @@
#include "src/forms/tabformwidget.h"
#include <functional>
#include <QtWidgets/QLabel>
class PatientInformationForm;
class QToolButton;
class ScanFormWidget :public TabFormWidget {
Q_OBJECT
public:
explicit ScanFormWidget(QWidget *parent = nullptr);
~ScanFormWidget();
~ScanFormWidget() override = default;
void setPreviewing(bool val);
private:
PatientInformationForm* pat_inf= nullptr;
bool unset = true;
bool previewing= false;
std::function<void(bool)> previewfunc = nullptr;
int currentFrame = 0;
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 reloadLanguage();
void renderLoading();
void renderPreviewData(const QObject *data);
private slots:
void protocolChanged(int type);
};