HomeView.h 1020 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #ifndef HOMEVIEW_H
  2. #define HOMEVIEW_H
  3. #include <QWidget>
  4. class CreateProjWidget;
  5. class ProjectStateWidget;
  6. class PushButton;
  7. class SearchLineEdit;
  8. class QVBoxLayout;
  9. class QHBoxLayout;
  10. class QLabel;
  11. ///
  12. /// \brief The HomeView class
  13. /// 首页
  14. class HomeView : public QWidget
  15. {
  16. Q_OBJECT
  17. public:
  18. explicit HomeView(QWidget *parent = nullptr);
  19. void showEvent(QShowEvent *event) override;
  20. void hideEvent(QHideEvent *event) override;
  21. private:
  22. void initialize();
  23. void initLayout();
  24. void connectSignalsAndSlots();
  25. private slots:
  26. void slotCreateProjClicked();
  27. private:
  28. bool m_initilized = false;
  29. QVBoxLayout *m_vBoxLayout = nullptr;
  30. QLabel *m_titleLabel = nullptr;
  31. QHBoxLayout *m_hBoxLayout = nullptr;
  32. SearchLineEdit *m_searchLineEdit = nullptr;
  33. PushButton *m_createProjPushButton = nullptr;
  34. ProjectStateWidget *m_projStateWidget = nullptr;
  35. CreateProjWidget *m_createProjWidget = nullptr;
  36. };
  37. #endif // HOMEVIEW_H