FlowTemplateDataModel.cpp 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #include "FlowTemplateDataModel.h"
  2. #include "FlowGraphNodeWidget.h"
  3. FlowTemplateDataModel::FlowTemplateDataModel() : NodeDelegateModel() { }
  4. QWidget *FlowTemplateDataModel::embeddedWidget()
  5. {
  6. return new FlowGraphComboNodeWidget();
  7. }
  8. FlowIndexDataModel::FlowIndexDataModel() : NodeDelegateModel() { }
  9. QWidget *FlowIndexDataModel::embeddedWidget()
  10. {
  11. FlowGraphPlainNodeWidget *w = new FlowGraphPlainNodeWidget();
  12. w->setText("构建指标体系");
  13. return w;
  14. }
  15. QWidget *FlowSampleDataModel::embeddedWidget()
  16. {
  17. FlowGraphComboNodeWidget *w = new FlowGraphComboNodeWidget();
  18. w->setItems({ "专家打分", "导入数据" });
  19. return w;
  20. }
  21. QWidget *FlowPCADataModel::embeddedWidget()
  22. {
  23. return new FlowGraphCheckNodeWidget();
  24. }
  25. QWidget *FlowWeightDataModel::embeddedWidget()
  26. {
  27. FlowGraphComboNodeWidget *w = new FlowGraphComboNodeWidget();
  28. w->setItems({ "熵值法", "层次分析法" });
  29. return w;
  30. }
  31. QWidget *FlowResultDataModel::embeddedWidget()
  32. {
  33. FlowGraphPlainNodeWidget *w = new FlowGraphPlainNodeWidget();
  34. w->setText("结果显示");
  35. return w;
  36. }
  37. QWidget *FlowReportDataModel::embeddedWidget()
  38. {
  39. return new FlowGraphCheckNodeWidget();
  40. }
  41. QWidget *FlowEffiLevDataModel::embeddedWidget()
  42. {
  43. FlowGraphSpinNodeWidget *w = new FlowGraphSpinNodeWidget();
  44. return w;
  45. }
  46. QWidget *FlowSchemeDataModel::embeddedWidget()
  47. {
  48. FlowGraphComboNodeWidget *w = new FlowGraphComboNodeWidget();
  49. w->setItems({ "层次加权法", "集对分析法" });
  50. return w;
  51. }
  52. QWidget *FlowEffiDataModel::embeddedWidget()
  53. {
  54. FlowGraphComboNodeWidget *w = new FlowGraphComboNodeWidget();
  55. w->setItems({ "物元分析法", "灰色聚类评估法" });
  56. return w;
  57. }