SchemePlanWidget.h 840 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef SCHEMEPLANWIDGET_H
  2. #define SCHEMEPLANWIDGET_H
  3. #include "EvalWidget.h"
  4. #include "SchemePlanManager.h"
  5. class PushButton;
  6. /**
  7. * @brief The SchemePlanWidget class
  8. * 方案规划页面
  9. */
  10. class SchemePlanWidget : public EvalWidget
  11. {
  12. Q_OBJECT
  13. public:
  14. SchemePlanWidget(ProjectInfo *proj, QWidget *parent = nullptr);
  15. void setType(int type) override;
  16. void setupUI();
  17. /// 方案流程模板
  18. /// 当项目中没有评估方案时, 可加载此处的模板
  19. static QList<SchemePlanManager::SchemeProcessInfo> templateSchemes(int projId, int indexType);
  20. private:
  21. void setupTabWidget();
  22. private slots:
  23. void slotExportClicked();
  24. void slotSchemeProcessEdited(const SchemePlanManager::SchemeProcessInfo &process);
  25. private:
  26. PushButton *m_export = nullptr;
  27. };
  28. #endif // SCHEMEPLANWIDGET_H