#ifndef CONFIGSCHEMEDATAWIDGET_H #define CONFIGSCHEMEDATAWIDGET_H #include #include "SchemePlanManager.h" class SchemaEval; class QPushButton; class QVBoxLayout; class QHBoxLayout; class QLabel; class QListWidget; class QTextEdit; class ConfigSchemeDataWidget : public QWidget { Q_OBJECT public: explicit ConfigSchemeDataWidget(QWidget *parent = nullptr); void setProcess(SchemePlanManager::SchemeProcessInfo process); void loadData(); QList schemeList() const; void selectFirst(); void selectLast(); signals: void sigAddScheme(); void sigDeleteScheme(); private: void initWidget(); void initLayout(); void connectSignalsAndSlots(); void refreshList(); void clearInfo(); virtual void resizeEvent(QResizeEvent *event) override; virtual void showEvent(QShowEvent *event) override; private slots: void slotAddDataClicked(); void slotSelectedChanged(); void slotRemoveDataClicked(int index); private: SchemePlanManager::SchemeProcessInfo m_process; QList m_schemeList; 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; QTextEdit *m_remark = nullptr; QLabel *m_pic = nullptr; }; #endif // CONFIGSCHEMEDATAWIDGET_H