ExpertManageView.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. signals:
  21. private:
  22. void initialize();
  23. void initLayout();
  24. void connectSignalsAndSlots();
  25. void setListButtonHidden(bool hidden);
  26. void showExpertInfo();
  27. private slots:
  28. void slotAddExpertClicked();
  29. void slotDetailClicked();
  30. void slotDeleteClicked();
  31. void slotListSelectionChanged();
  32. void slotListItemDoubleClicked();
  33. private:
  34. QVBoxLayout *m_vBoxLayout = nullptr;
  35. QLabel *m_titleLabel = nullptr;
  36. QHBoxLayout *m_hBoxLayout = nullptr;
  37. SearchLineEdit *m_searchLineEdit = nullptr;
  38. PushButton *m_addExpertButton = nullptr;
  39. ToolButton *m_detailButton = nullptr;
  40. ToolButton *m_deleteButton = nullptr;
  41. ExpertInfoWidget *m_expertInfoWidget = nullptr;
  42. ExpertListWidget *m_expertListWidget = nullptr;
  43. };
  44. #endif // EXPERTMANAGEVIEW_H