SchemePlanWidget.h 1014 B

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