2023-05-15 16:06:10 +08:00
|
|
|
#ifndef CTRLVOLUMEPANEL_H
|
|
|
|
#define CTRLVOLUMEPANEL_H
|
|
|
|
|
|
|
|
#include "gutil/qgui.h"
|
|
|
|
#include <QLabel>
|
|
|
|
#include <QPushButton>
|
|
|
|
#include <QRadioButton>
|
|
|
|
|
|
|
|
class CtrlVolumePanel : public QWidget {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
CtrlVolumePanel();
|
|
|
|
protected:
|
|
|
|
void showEvent(QShowEvent *event) override;
|
|
|
|
void init();
|
|
|
|
void changeEvent(QEvent *) override;
|
|
|
|
void transUi();
|
|
|
|
|
|
|
|
private:
|
|
|
|
bool restoreScheduleJson(QJsonObject);
|
|
|
|
QJsonObject getScheduleJson();
|
|
|
|
|
|
|
|
QLabel *lbVolumeControl;
|
|
|
|
QRadioButton *fdManual;
|
|
|
|
QRadioButton *fdSchedule;
|
|
|
|
|
|
|
|
QLabel *lbVolume;
|
|
|
|
QSlider *fdVolume;
|
2023-05-17 17:36:18 +08:00
|
|
|
QPushButton *fdVolumeSet, *fdVolumeGet;
|
2023-05-15 16:06:10 +08:00
|
|
|
|
|
|
|
QLabel *fdScheTip;
|
|
|
|
QPushButton *btnScheAdd;
|
|
|
|
QPushButton *btnScheDel;
|
|
|
|
QPushButton *btnScheClear;
|
|
|
|
QLabel *lbDefBright;
|
|
|
|
QSlider *fdDefBright;
|
|
|
|
QPushButton *btnScheImport;
|
|
|
|
QPushButton *btnScheExport;
|
2023-10-23 15:08:45 +08:00
|
|
|
TableWidget *tableSche;
|
2023-05-15 16:06:10 +08:00
|
|
|
QPushButton *btnScheSet;
|
|
|
|
QPushButton *btnScheGet;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CTRLVOLUMEPANEL_H
|