ExpertManageView.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #ifndef EXPERTMANAGEVIEW_H
  2. #define EXPERTMANAGEVIEW_H
  3. #include <QWidget>
  4. class ExpertInfoWidget;
  5. class ExpertListWidget;
  6. class PushButton;
  7. class SearchLineEdit;
  8. class QVBoxLayout;
  9. class QHBoxLayout;
  10. class QLabel;
  11. ///
  12. /// \brief The ExpertManageView class
  13. /// 用户管理页面
  14. class ExpertManageView : public QWidget
  15. {
  16. Q_OBJECT
  17. public:
  18. explicit ExpertManageView(QWidget *parent = nullptr);
  19. signals:
  20. private:
  21. void initialize();
  22. void initLayout();
  23. void connectSignalsAndSlots();
  24. void setListButtonHidden(bool hidden);
  25. void showExpertInfo();
  26. private slots:
  27. void slotAddExpertClicked();
  28. void slotDetailClicked();
  29. void slotDeleteClicked();
  30. void slotListSelectionChanged();
  31. void slotListItemDoubleClicked();
  32. private:
  33. QVBoxLayout *m_vBoxLayout = nullptr;
  34. QLabel *m_titleLabel = nullptr;
  35. QHBoxLayout *m_hBoxLayout = nullptr;
  36. SearchLineEdit *m_searchLineEdit = nullptr;
  37. PushButton *m_addExpertPushButton = nullptr;
  38. PushButton *m_detailPushButton = nullptr;
  39. PushButton *m_deletePushButton = nullptr;
  40. ExpertInfoWidget *m_expertInfoWidget = nullptr;
  41. ExpertListWidget *m_expertListWidget = nullptr;
  42. };
  43. #endif // EXPERTMANAGEVIEW_H