12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- #include "FlowTemplateDataModel.h"
- #include "FlowGraphNodeWidget.h"
- FlowTemplateDataModel::FlowTemplateDataModel() : NodeDelegateModel() { }
- QWidget *FlowTemplateDataModel::embeddedWidget()
- {
- return new FlowGraphComboNodeWidget();
- }
- FlowIndexDataModel::FlowIndexDataModel() : NodeDelegateModel() { }
- QWidget *FlowIndexDataModel::embeddedWidget()
- {
- FlowGraphPlainNodeWidget *w = new FlowGraphPlainNodeWidget();
- w->setText("构建指标体系");
- return w;
- }
- QWidget *FlowSampleDataModel::embeddedWidget()
- {
- FlowGraphComboNodeWidget *w = new FlowGraphComboNodeWidget();
- w->setItems({ "专家打分", "导入数据" });
- return w;
- }
- QWidget *FlowPCADataModel::embeddedWidget()
- {
- return new FlowGraphCheckNodeWidget();
- }
- QWidget *FlowWeightDataModel::embeddedWidget()
- {
- FlowGraphComboNodeWidget *w = new FlowGraphComboNodeWidget();
- w->setItems({ "熵值法", "层次分析法" });
- return w;
- }
- QWidget *FlowResultDataModel::embeddedWidget()
- {
- FlowGraphPlainNodeWidget *w = new FlowGraphPlainNodeWidget();
- w->setText("结果显示");
- return w;
- }
- QWidget *FlowReportDataModel::embeddedWidget()
- {
- return new FlowGraphCheckNodeWidget();
- }
- QWidget *FlowEffiLevDataModel::embeddedWidget()
- {
- FlowGraphSpinNodeWidget *w = new FlowGraphSpinNodeWidget();
- return w;
- }
- QWidget *FlowSchemeDataModel::embeddedWidget()
- {
- FlowGraphComboNodeWidget *w = new FlowGraphComboNodeWidget();
- w->setItems({ "层次加权法", "集对分析法" });
- return w;
- }
- QWidget *FlowEffiDataModel::embeddedWidget()
- {
- FlowGraphComboNodeWidget *w = new FlowGraphComboNodeWidget();
- w->setItems({ "物元分析法", "灰色聚类评估法" });
- return w;
- }
|