EvalWidget.h 900 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. QList<ProjectManager::IndexType> indexList() const;
  19. void setTitle(const QString title);
  20. void initWidgets();
  21. void initLayout();
  22. protected:
  23. ProjectInfo *m_proj = nullptr;
  24. int m_type = 0; // 评估类型
  25. QTabWidget *m_tab = nullptr;
  26. QVBoxLayout *m_layout = nullptr;
  27. QVBoxLayout *m_contentLayout = nullptr;
  28. QLabel *m_title = nullptr;
  29. QWidget *m_seperator = nullptr;
  30. signals:
  31. };
  32. #endif // EVALWIDGET_H