EXEvalView.h 1006 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #ifndef EXEVALVIEW_H
  2. #define EXEVALVIEW_H
  3. #include <QWidget>
  4. #include "ProjectManager.h"
  5. class ProjectInfo;
  6. class PushButton;
  7. class QVBoxLayout;
  8. class QHBoxLayout;
  9. class QLabel;
  10. class QTabWidget;
  11. class EXEvalView : public QWidget
  12. {
  13. Q_OBJECT
  14. public:
  15. explicit EXEvalView(ProjectInfo *proj, QWidget *parent = nullptr);
  16. ProjectInfo *proj() const;
  17. void setProject(ProjectInfo *proj);
  18. int type() const;
  19. virtual void setType(int type);
  20. // 包含的指标体系类型
  21. QList<ProjectManager::IndexType> indexList() const;
  22. void setTitle(const QString title);
  23. void initWidgets();
  24. void initLayout();
  25. protected:
  26. ProjectInfo *m_proj = nullptr;
  27. int m_type = 0; // 评估类型
  28. QTabWidget *m_tab = nullptr;
  29. QVBoxLayout *m_layout = nullptr;
  30. QHBoxLayout *m_topLayout = nullptr;
  31. QHBoxLayout *m_contentLayout = nullptr;
  32. QLabel *m_title = nullptr;
  33. QWidget *m_seperator = nullptr;
  34. };
  35. #endif // EXEVALVIEW_H