#ifndef GROUPPANELWIDGET_H #define GROUPPANELWIDGET_H #include #include "MatrixPanelWidget.h" namespace Ui { class GroupPanelWidget; } class GroupPanelWidget : public QWidget { Q_OBJECT public: enum IndexType { IndexTech = 1, //技术措施指标体系 TechMessaure, //技术措施 SchemaEval //方案评估指标体系 }; explicit GroupPanelWidget(QWidget *parent = nullptr); ~GroupPanelWidget(); /** * @brief 绘制脑图 * @param 横坐标参考脑图节点 * @param 纵坐标参考脑图节点 */ void init(const QStringList &indexsRef, const QStringList &indexs, int engineerId); void setViewType(int type); void setArithmeticMethod(QString method); signals: void returnModel(QStandardItemModel *model); private slots: void getTableModel(QStandardItemModel *item); private: Ui::GroupPanelWidget *ui; QGridLayout *firstLayout = nullptr; QWidget *firstPlainWidget = nullptr; QGridLayout *secondLayout = nullptr; QWidget *secondPlainWidget = nullptr; MindNodeManager *currentMindNodes = nullptr; QList> *classifiedNodes = nullptr; QList> *indexsRefClassifiedNodes = nullptr; //是否参考指标体系 QList> demandLists; QList> technicalImportLists; int currentPage = 0; int analysisViewType = 1; QString arithmeticMethod; QList tabWidgets; void sortMindNodes(const MindNodeManager &manager, QList> *classify); void getMindNodes(MindNodeManager *manager, QStringList listNodes); QStringList getFirstIndexNodes(const MindNodeManager &manager); QStringList getLastIndexNodes(const MindNodeManager &manager); void initPlainWidget(int engineerId); }; #endif // GROUPPANELWIDGET_H