#ifndef CONFIGMEASUREDATAWIDGET_H #define CONFIGMEASUREDATAWIDGET_H #include #include "SchemePlanManager.h" #include class NodeMatrixInfo; class QPushButton; class QVBoxLayout; class QHBoxLayout; class QLabel; class QListWidget; class ConfigMeasureDataWidget : public QWidget { Q_OBJECT public: explicit ConfigMeasureDataWidget(QWidget *parent = nullptr); void setProcess(SchemePlanManager::SchemeProcessInfo process); void reloadData(); void selectFirst(); void selectLast(); QList selectedData(); void updateNodeValue(NodeMatrixInfo *node); signals: void sigAddData(); void sigCurrentRowChanged(); private: void initWidget(); void initLayout(); void connectSignalsAndSlots(); void refreshList(); private slots: void slotAddDataClicked(); void slotRemoveDataClicked(int index); void slotCurrentRowChanged(); private: SchemePlanManager::SchemeProcessInfo m_process; QVBoxLayout *m_layout = nullptr; QHBoxLayout *m_headerLayout = nullptr; QLabel *m_titleLabel = nullptr; QLabel *m_listTitleLabel = nullptr; QLabel *m_tipsLabel = nullptr; QPushButton *m_addButton = nullptr; QListWidget *m_listWidget = nullptr; QList m_uuidList; // 一组实测数据的公共唯一id QMap> m_nodeData; // 按组归类的实测数据 }; #endif // CONFIGMEASUREDATAWIDGET_H