qt/LedOK/wDevicesManager/controlvolumewidget.h

35 lines
852 B
C
Raw Normal View History

2022-01-04 18:11:48 +08:00
#ifndef CONTROLVOLUMEWIDGET_H
#define CONTROLVOLUMEWIDGET_H
#include <QWidget>
#include <wDevicesManager/controlvolumemanual.h>
#include <wDevicesManager/controlvolumeschedule.h>
#include "QStackedWidget"
#include <QButtonGroup>
namespace Ui {
class ControlVolumeWidget;
}
class ControlVolumeWidget : public QWidget
{
Q_OBJECT
public:
explicit ControlVolumeWidget(QWidget *parent = nullptr,QList<LedCard *> *m_pLedlist=nullptr);
~ControlVolumeWidget();
private:
void init();
protected slots:
void refreshLable();
void OnGetVolumeModeType(bool b);
private:
Ui::ControlVolumeWidget *ui;
ControlVolumeManual *m_pManual=nullptr;
ControlVolumeSchedule *m_pSchedule=nullptr;
QStackedWidget *m_pStackedW;
QButtonGroup *m_buttonGroup;
QList<LedCard *> *m_pLedlist=nullptr;
};
#endif // CONTROLVOLUMEWIDGET_H