123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- #ifndef CONFIGSCHEMEDATAWIDGET_H
- #define CONFIGSCHEMEDATAWIDGET_H
- #include <QWidget>
- #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<SchemaEval *> 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<SchemaEval *> 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
|