1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #ifndef GREYCLUSTERINGCONFIGWIDGET_H
- #define GREYCLUSTERINGCONFIGWIDGET_H
- #include "GreyClusteringSampleTable.h"
- #include <QStandardItemModel>
- #include <QWidget>
- 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<GreyClusteringItem> m_greyClusterings;
- };
- #endif // GREYCLUSTERINGCONFIGWIDGET_H
|