1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- #ifndef CONFIGMEASUREDATAWIDGET_H
- #define CONFIGMEASUREDATAWIDGET_H
- #include <QWidget>
- #include "SchemePlanManager.h"
- #include <QMap>
- 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<NodeMatrixInfo *> 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<QString> m_uuidList; // 一组实测数据的公共唯一id
- QMap<QString, QList<NodeMatrixInfo *>> m_nodeData; // 按组归类的实测数据
- };
- #endif // CONFIGMEASUREDATAWIDGET_H
|