1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- #ifndef GROUPPANELWIDGET_H
- #define GROUPPANELWIDGET_H
- #include <QWidget>
- #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<QList<MindNodeManager::NodeMessage>> *classifiedNodes = nullptr;
- QList<QList<MindNodeManager::NodeMessage>> *indexsRefClassifiedNodes = nullptr; //是否参考指标体系
- QList<QList<DemandWeight *>> demandLists;
- QList<QList<TechnicalImport *>> technicalImportLists;
- int currentPage = 0;
- int analysisViewType = 1;
- QString arithmeticMethod;
- QList<QTabWidget *> tabWidgets;
- 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);
- void initPlainWidget(int engineerId);
- };
- #endif // GROUPPANELWIDGET_H
|