#ifndef GREYCLUSTERINGCONFIGWIDGET_H #define GREYCLUSTERINGCONFIGWIDGET_H #include "GreyClusteringSampleTable.h" #include #include class CMind; namespace Ui { class GreyClusteringConfigWidget; } class GreyClusteringConfigWidget : public QWidget { Q_OBJECT public: explicit GreyClusteringConfigWidget(CMind *mind, int grayNumber, QWidget *parent = nullptr); ~GreyClusteringConfigWidget(); private: void initFormLayout(); void initClusteringItems(); void refreshTableView(); private slots: void onConfirmClick(); void onConfigSaveBtnClick(); private: Ui::GreyClusteringConfigWidget *ui; const int nodeDepth = 2; // 节点深度 CMind *m_mind; int m_grayNumber; QStringList m_grayNames; QStandardItemModel *m_model; int m_rowCount; QVector m_greyClusterings; }; #endif // GREYCLUSTERINGCONFIGWIDGET_H