ExpertManageView.h 1.4 KB

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