ProjectView.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #ifndef PROJECTVIEW_H
  2. #define PROJECTVIEW_H
  3. #include <QWidget>
  4. class ProjectListWidget;
  5. class ConfigExpertWidget;
  6. class RenameWidget;
  7. class LineEdit;
  8. class ToolButton;
  9. class QVBoxLayout;
  10. class QHBoxLayout;
  11. class QLabel;
  12. /// 工程视图
  13. /// 可以查看和编辑指标体系、配置专家
  14. class ProjectView : public QWidget
  15. {
  16. Q_OBJECT
  17. public:
  18. explicit ProjectView(QWidget *parent = nullptr);
  19. void showEvent(QShowEvent *event) override;
  20. void hideEvent(QHideEvent *event) override;
  21. signals:
  22. private:
  23. void initialize();
  24. void initLayout();
  25. void connectSigalsAndSlots();
  26. void showRenameWidget();
  27. private:
  28. bool m_initilized = false;
  29. QHBoxLayout *m_hBoxLayout = nullptr;
  30. QWidget *m_listWidget = nullptr;
  31. QVBoxLayout *m_listLayout = nullptr;
  32. QHBoxLayout *m_buttonLayout = nullptr;
  33. LineEdit *m_searchLineEdit = nullptr;
  34. ToolButton *m_renameButton = nullptr;
  35. ToolButton *m_newProjButton = nullptr;
  36. ToolButton *m_deleteButton = nullptr;
  37. ProjectListWidget *m_projListWidget = nullptr;
  38. QWidget *m_projDetailWidget = nullptr;
  39. QVBoxLayout *m_projLayout = nullptr;
  40. QLabel *m_projNameLabel = nullptr;
  41. QWidget *m_separator = nullptr;
  42. ConfigExpertWidget *m_configExpWidget = nullptr;
  43. };
  44. #endif // PROJECTVIEW_H