// // Created by Krad on 2021/10/8. // #ifndef GUI_SCANFORMWIDGET_H #define GUI_SCANFORMWIDGET_H #include "src/forms/TabFormWidget.h" #include #include class PatientInformationForm; class QToolButton; 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* mBtnEScan; QToolButton* mBtnPreview; QToolButton* mBtnStop; QToolButton* mBtnScan; QToolButton* mBtnDrainage; 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* sender, const QObject *data); void reloadLanguage(); private slots: void protocolChanged(int type); void initEvents(); }; #endif //GUI_SCANFORMWIDGET_H