2023-04-18 14:14:46 +08:00
|
|
|
#ifndef CTRLHDMIPANEL_H
|
|
|
|
#define CTRLHDMIPANEL_H
|
|
|
|
|
|
|
|
#include "gutil/qgui.h"
|
|
|
|
#include <QLabel>
|
|
|
|
#include <QRadioButton>
|
|
|
|
#include <QPushButton>
|
|
|
|
|
|
|
|
class CtrlHdmiPanel : public QWidget {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2023-05-15 16:06:10 +08:00
|
|
|
CtrlHdmiPanel();
|
2023-04-18 14:14:46 +08:00
|
|
|
void restoreScheduleJson(QJsonObject oTaskSync);
|
|
|
|
QJsonObject getScheduleJson();
|
|
|
|
protected:
|
|
|
|
void showEvent(QShowEvent *event) override;
|
|
|
|
void init();
|
|
|
|
void changeEvent(QEvent *) override;
|
|
|
|
void transUi();
|
|
|
|
|
|
|
|
private:
|
|
|
|
QLabel *lbHdmiCfg;
|
|
|
|
QRadioButton *fdManual, *fdSchedule, *fdAsync, *fdHdmi, *fdHdmi2;
|
2023-04-27 15:06:24 +08:00
|
|
|
QPushButton *btnSyncSet, *btnSyncGet;
|
2023-04-18 14:14:46 +08:00
|
|
|
|
2023-10-23 15:08:45 +08:00
|
|
|
TableWidget *tableSche;
|
2023-04-18 14:14:46 +08:00
|
|
|
QPushButton *btnScheAdd;
|
|
|
|
QPushButton *btnScheDel;
|
|
|
|
QPushButton *btnScheClear;
|
|
|
|
QPushButton *btnScheImport;
|
|
|
|
QPushButton *btnScheExport;
|
|
|
|
QLabel *labelSyncScheduleTip;
|
|
|
|
QPushButton *btnScheSet;
|
|
|
|
QPushButton *btnScheGet;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CTRLHDMIPANEL_H
|