#include "SchemeDesignWidget.h" #include "SchemeFlowWidget.h" #include #include #include #include SchemeDesignWidget::SchemeDesignWidget(ProjectInfo *proj, QWidget *parent) : EvalWidget(proj, parent) { setTitle("评估方案规划"); } void SchemeDesignWidget::setType(int type) { EvalWidget::setType(type); qDebug() << __FUNCTION__ << __LINE__ << endl; setupTabWidget(); qDebug() << __FUNCTION__ << __LINE__ << endl; } void SchemeDesignWidget::setupTabWidget() { m_tab->clear(); for (int i : indexList()) { qDebug() << __FUNCTION__ << __LINE__ << endl; SchemeFlowWidget *m = new SchemeFlowWidget(proj(), i, this); qDebug() << __FUNCTION__ << __LINE__ << endl; ProjectManager::IndexType t = (ProjectManager::IndexType)i; qDebug() << __FUNCTION__ << __LINE__ << endl; QString s = ProjectManager::nameOfIndexType(t); qDebug() << __FUNCTION__ << __LINE__ << endl; m_tab->addTab(m, s); qDebug() << __FUNCTION__ << __LINE__ << endl; } }