#ifndef GUI_SELECTFORMWIDGET_H #define GUI_SELECTFORMWIDGET_H #include "forms/TabFormWidget.h" #include "dialogs/EditPatientDialog.h" class PatientDetailForm; class SlideTableView; class QToolButton; class SelectFormWidget : public TabFormWidget { Q_OBJECT public: explicit SelectFormWidget(QWidget *parent = nullptr); ~SelectFormWidget() override = default; public slots: void updateDataByAnonymousMode(); private: QString selectedPatientUID; void setPatientDetail(const SlideTableView *table, const QSqlTableModel *model, PatientDetailForm *edit_patient) const; QToolButton *mBtnEdit; QToolButton *mBtnDelete; QToolButton *mBtnAdd; QToolButton *mBtnSelect; SlideTableView *mPatTable; QSqlTableModel *mModel; PatientDetailForm *patientDetailForm; void prepareButtons(bool disableALL); void initPatEditButtons(QHBoxLayout *layout); void editPatient(); void delPatient(); void selectPatient(); void setSelectedPatient(PatientInformation* aPatient); void initDataModel(); void initDetailPanel(QHBoxLayout *contentLayout); void initTableView(QLayout *contentLayout); void reloadLanguage(); }; #endif //GUI_SELECTFORMWIDGET_H