#ifndef ANALYSISPANELWIDGET_H #define ANALYSISPANELWIDGET_H #include "MatrixPanelWidget.h" #include namespace Ui { class AnalysisPanelWidget; } class AnalysisPanelWidget : public QWidget { Q_OBJECT public: explicit AnalysisPanelWidget(QWidget *parent = nullptr); ~AnalysisPanelWidget(); /** * @brief 绘制脑图 * @param 横坐标参考脑图节点 * @param 纵坐标参考脑图节点 */ void init(const QStringList indexsRef, const QStringList indexs, int engineerId, int expertId); //综合专家页面初始化 void initComposite(const QStringList indexsRef, const QStringList indexs, int engineerId, QList expertIds); void setViewTypeAndTableMsg(int type, QString tableMsg); void setArithmeticMethod(QString resultMethod, QString matricesMethod); signals: void dataReady(bool status); void returnModel(QStandardItemModel *model); private slots: void on_prePageBtn_clicked(); void on_nextPageBtn_clicked(); void oneTableDataReady(bool status); void getTableModel(QStandardItemModel *item); private: Ui::AnalysisPanelWidget *ui; QGridLayout *firstLayout = nullptr; QWidget *firstPlainWidget = nullptr; QGridLayout *secondLayout = nullptr; QWidget *secondPlainWidget = nullptr; MindNodeManager *currentMindNodes = nullptr; QList> *classifiedNodes = nullptr; QList> *indexsRefClassifiedNodes = nullptr; //是否参考指标体系 int currentPage = 0; int analysisViewType = 1; QString m_table_msg; QList tabWidgets; QString m_resultMethod; QString m_matricesMethod; void sortMindNodes(const MindNodeManager &manager, QList> *classify); void getMindNodes(MindNodeManager *manager, QStringList listNodes); QStringList getFirstIndexNodes(const MindNodeManager &manager); QStringList getLastIndexNodes(const MindNodeManager &manager); int getPages(); void setPage(int page); void initPlainWidget(int engineerId, int expertId, QString tableMsg); void initCompositePlainWidget(int engineerId, QList expertIds, QString tableMsg); void paintPlainWidget(); void computerCompositeValue(QList &compositeNodeValueInfoList, QList expertIds, int engineerId, QString tabMsg); void yuefen(long int &numerator, long int &denominator); }; #endif // ANALYSISPANELWIDGET_H