37 lines
841 B
C++
37 lines
841 B
C++
#ifndef CONTROLPOWERWIDGET_H
|
|
#define CONTROLPOWERWIDGET_H
|
|
|
|
#include <QWidget>
|
|
#include <wDevicesManager/controlpowermanual.h>
|
|
#include <wDevicesManager/controlpowerschedule.h>
|
|
#include "QStackedWidget"
|
|
#include <QButtonGroup>
|
|
namespace Ui {
|
|
class ControlPowerWidget;
|
|
}
|
|
|
|
class ControlPowerWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ControlPowerWidget(QWidget *parent = nullptr,QList<LedCard *> *m_pLedlist=nullptr);
|
|
~ControlPowerWidget();
|
|
protected slots:
|
|
void refreshLable();
|
|
void OnGetPowerModeType(bool b);
|
|
|
|
private:
|
|
void init();
|
|
private:
|
|
Ui::ControlPowerWidget *ui;
|
|
ControlPowerManual *m_pManual=nullptr;
|
|
ControlPowerSchedule *m_pSchedule=nullptr;
|
|
QStackedWidget *m_pStackedW;
|
|
QButtonGroup *m_buttonGroup;
|
|
QList<LedCard *> *m_pLedlist=nullptr;
|
|
|
|
};
|
|
|
|
#endif // CONTROLPOWERWIDGET_H
|