123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- #ifndef ANALYSISPANELWIDGET_H
- #define ANALYSISPANELWIDGET_H
- #include "MatrixPanelWidget.h"
- #include <QWidget>
- 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<int> 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<QList<MindNodeManager::NodeMessage>> *classifiedNodes = nullptr;
- QList<QList<MindNodeManager::NodeMessage>> *indexsRefClassifiedNodes = nullptr; //是否参考指标体系
- int currentPage = 0;
- int analysisViewType = 1;
- QString m_table_msg;
- QList<QTabWidget *> tabWidgets;
- QString m_resultMethod;
- QString m_matricesMethod;
- void sortMindNodes(const MindNodeManager &manager, QList<QList<MindNodeManager::NodeMessage>> *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<int> expertIds, QString tableMsg);
- void paintPlainWidget();
- void computerCompositeValue(QList<NodeMatrixInfo *> &compositeNodeValueInfoList, QList<int> expertIds,
- int engineerId, QString tabMsg);
- void yuefen(long int &numerator, long int &denominator);
- };
- #endif // ANALYSISPANELWIDGET_H
|