EvalWidget.h 948 B

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