refactor: Modify the display and interaction related to worklist.

This commit is contained in:
sunwen
2024-09-06 17:29:25 +08:00
parent c6c3d81ecf
commit b60c4a8be9
60 changed files with 3336 additions and 1512 deletions

View File

@@ -7,6 +7,7 @@
#include <QStack>
class PatientInformationForm;
class PatientInformation;
class QToolButton;
class CoordinateXYWidget;
class CoordinateZWidget;
@@ -18,16 +19,12 @@ public:
~ScanFormWidget() override = default;
void setPreviewing(bool val);
protected:
void keyPressEvent(QKeyEvent *event) override;
private:
PatientInformationForm* mPatInf= nullptr;
bool mUnInited = true;
int mCurrentFrame = 0;
QToolButton* mAccountButton;
QToolButton* mShutdownButton;
QToolButton* mWorklistButton;
QToolButton* mStartScanButton;
QToolButton* mDrainageButton;
CoordinateXYWidget* mXYLabel;
@@ -36,19 +33,16 @@ private:
QTimer* mDrainageTimer;
void initCommandWidget(QHBoxLayout *layout);
void initScanControlBar(QHBoxLayout *layout);
void initScanContent();
void renderLoading();
void renderPreviewData(const QObject* sender, const QObject *data);
void reloadLanguage();
void setScanProtocal(int aProtocal);
void setScanProtocal(PatientInformation* aPatient, int aProtocal);
QString getAutoLocateMessage();
private slots:
void protocolChanged(int type);
void updateDataByAnonymousMode();
void prepareStartFullScan();
//void updateScanProcessLabel(const QString& aText);
void initEvents();
};