EvalWidget.h 1023 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #ifndef EVALWIDGET_H
  2. #define EVALWIDGET_H
  3. #include <QWidget>
  4. #include <common/ProjectManager.h>
  5. class ProjectInfo;
  6. class PushButton;
  7. class QVBoxLayout;
  8. class QHBoxLayout;
  9. class QLabel;
  10. class QTabWidget;
  11. class EvalWidget : public QWidget
  12. {
  13. Q_OBJECT
  14. public:
  15. explicit EvalWidget(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. signals:
  35. };
  36. #endif // EVALWIDGET_H