GroupPanelWidget.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #ifndef GROUPPANELWIDGET_H
  2. #define GROUPPANELWIDGET_H
  3. #include <QWidget>
  4. #include "MatrixPanelWidget.h"
  5. namespace Ui {
  6. class GroupPanelWidget;
  7. }
  8. class GroupPanelWidget : public QWidget
  9. {
  10. Q_OBJECT
  11. public:
  12. enum IndexType
  13. {
  14. IndexTech = 1, //技术措施指标体系
  15. TechMessaure, //技术措施
  16. SchemaEval //方案评估指标体系
  17. };
  18. explicit GroupPanelWidget(QWidget *parent = nullptr);
  19. ~GroupPanelWidget();
  20. /**
  21. * @brief 绘制脑图
  22. * @param 横坐标参考脑图节点
  23. * @param 纵坐标参考脑图节点
  24. */
  25. void init(const QStringList &indexsRef, const QStringList &indexs, int engineerId);
  26. void setViewType(int type);
  27. void setArithmeticMethod(QString method);
  28. signals:
  29. void returnModel(QStandardItemModel *model);
  30. private slots:
  31. void getTableModel(QStandardItemModel *item);
  32. private:
  33. Ui::GroupPanelWidget *ui;
  34. QGridLayout *firstLayout = nullptr;
  35. QWidget *firstPlainWidget = nullptr;
  36. QGridLayout *secondLayout = nullptr;
  37. QWidget *secondPlainWidget = nullptr;
  38. MindNodeManager *currentMindNodes = nullptr;
  39. QList<QList<MindNodeManager::NodeMessage>> *classifiedNodes = nullptr;
  40. QList<QList<MindNodeManager::NodeMessage>> *indexsRefClassifiedNodes = nullptr; //是否参考指标体系
  41. QList<QList<DemandWeight *>> demandLists;
  42. QList<QList<TechnicalImport *>> technicalImportLists;
  43. int currentPage = 0;
  44. int analysisViewType = 1;
  45. QString arithmeticMethod;
  46. QList<QTabWidget *> tabWidgets;
  47. void sortMindNodes(const MindNodeManager &manager, QList<QList<MindNodeManager::NodeMessage>> *classify);
  48. void getMindNodes(MindNodeManager *manager, QStringList listNodes);
  49. QStringList getFirstIndexNodes(const MindNodeManager &manager);
  50. QStringList getLastIndexNodes(const MindNodeManager &manager);
  51. void initPlainWidget(int engineerId);
  52. };
  53. #endif // GROUPPANELWIDGET_H