EvalWidget.h 929 B

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