#ifndef CONTROLBRIGHTNESSWIDGET_H #define CONTROLBRIGHTNESSWIDGET_H #include #include #include #include #include "QStackedWidget" #include namespace Ui { class ControlBrightnessWidget; } class ControlBrightnessWidget : public QWidget { Q_OBJECT public: explicit ControlBrightnessWidget(QWidget *parent = nullptr,QList *m_pLedlist=nullptr); ~ControlBrightnessWidget(); private: void init(); protected slots: void OnControlTypeSwitchIndexChanged(int index); void refreshLable(); void OnGetBrightnessModeType(bool b); void OnGetBrightnessAutoType(bool b); private: Ui::ControlBrightnessWidget *ui; ControlBrightnessAutoWidget *m_pAuto=nullptr; ControlBrightnessManualWidget *m_pManual=nullptr; ControlBrightnessSchedule *m_pSchedule=nullptr; QStackedWidget *m_pStackedW; QButtonGroup *m_buttonGroup; QList *m_pLedlist=nullptr; bool m_bSeleted=false; bool m_bAutoBrightnessFlag=true; }; #endif // CONTROLBRIGHTNESSWIDGET_H