#ifndef SINGLERELAY_H #define SINGLERELAY_H #include #include #include #include #include "data_config.h" #include "config_mgr.h" #include "singlerelay_data.h" #include //数据模型类 #include namespace Ui { class SingleRelay; } class SingleRelay : public QDialog { Q_OBJECT public: explicit SingleRelay(int slot,int cardtype,QWidget *parent = nullptr); ~SingleRelay(); int slot_no; CardType car_type; private slots: void keyPressEvent(QKeyEvent *event); void on_pushButton_cancel_clicked(); void OnButtonGroup(QAbstractButton *); void on_pushButton_confirm_clicked(); void onComboBoxIndexChanged(int index); private: Ui::SingleRelay *ui; QButtonGroup * btnGroup_slot = nullptr; QListWidget *list_widget_available = nullptr; QTreeView *treeView_relay; QStandardItemModel *model_Relay; std::shared_ptr single_relay_nok_data = nullptr; int current_index; QMap channelNameMap; void Init(); }; #endif // SINGLERELAY_H