#ifndef DEVICECTRLPANEL_H #define DEVICECTRLPANEL_H #include "globaldefine.h" #include "wDevicesManager/ledcard.h" #include #include #include #include #include class DevicePanel; class DeviceCtrlPanel : public QWidget { Q_OBJECT public: explicit DeviceCtrlPanel(DevicePanel *parent = nullptr); QTextEdit *fdInfo; protected: void changeEvent(QEvent *) override; void transUi(); signals: void sigSwitchIndexChanged(int index); public slots: void OnOutputInfo(QString strInfo); private: DevicePanel *mDevWgt; QButtonGroup *mBtnGrp; QScrollArea *scrollArea; QPushButton *btnClear; QWidget *wgts[Setting_End]{}; int curIndex{-1}; QList *m_pLedlist{0}; LedCard *m_pLedCard{0}; }; #endif // DEVICECTRLPANEL_H