1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #ifndef SCHEMEPLANWIDGET_H
- #define SCHEMEPLANWIDGET_H
- #include "EvalWidget.h"
- #include "SchemePlanManager.h"
- class PushButton;
- class QTextEdit;
- /**
- * @brief The SchemePlanWidget class
- * 方案规划页面
- */
- class SchemePlanWidget : public EvalWidget
- {
- Q_OBJECT
- public:
- SchemePlanWidget(ProjectInfo *proj, QWidget *parent = nullptr);
- void setType(int type) override;
- void setupUI();
- /// 方案流程模板
- /// 当项目中没有评估方案时, 可加载此处的模板
- static QList<SchemePlanManager::SchemeProcessInfo> templateSchemes(int projId, int indexType);
- private:
- void setupTabWidget();
- bool hasData(QString indexName) const;
- void updateDescription();
- private slots:
- void slotExportClicked();
- void slotSchemeProcessEdited(const SchemePlanManager::SchemeProcessInfo &process);
- void slotTabCurrentChanged(int c);
- private:
- PushButton *m_export = nullptr;
- QTextEdit *m_description = nullptr;
- };
- #endif // SCHEMEPLANWIDGET_H
|