qt/LedOK/wDevicesManager/controlhdmiwidget.h

44 lines
1.1 KiB
C
Raw Normal View History

2022-01-04 18:11:48 +08:00
#ifndef CONTROLHDMIWIDGET_H
#define CONTROLHDMIWIDGET_H
2022-09-26 18:10:47 +08:00
#include "LoUIClass/switchcontrol.h"
2022-01-04 18:11:48 +08:00
#include <wDevicesManager/controlhdmischedule.h>
2022-09-26 18:10:47 +08:00
#include <QStackedWidget>
#include <QRadioButton>
2022-01-04 18:11:48 +08:00
2022-09-26 18:10:47 +08:00
class ControlHdmiWidget : public QWidget {
2022-01-04 18:11:48 +08:00
Q_OBJECT
public:
explicit ControlHdmiWidget(QWidget *parent = nullptr,QList<LedCard *> *m_pLedlist=nullptr);
2022-09-26 18:10:47 +08:00
protected:
void showEvent(QShowEvent *event) override;
2022-01-04 18:11:48 +08:00
void init();
2022-09-26 18:10:47 +08:00
void changeEvent(QEvent *) override;
void transUi();
2022-01-04 18:11:48 +08:00
private:
2022-09-26 18:10:47 +08:00
QLabel *labelHdmiConfiguration;
QRadioButton *radioButtonManual;
QRadioButton *radioButtonSchedule;
QWidget *m_pManual=nullptr;
2022-01-04 18:11:48 +08:00
ControlHdmiSchedule *m_pSchedule=nullptr;
QStackedWidget *m_pStackedW;
2022-09-26 18:10:47 +08:00
QLabel *lbAsync;
SwitchControl *swich;
QLabel *lbSync;
QPushButton *btnGetSync;
LedCard *m_pLedCard = nullptr;
LedCard *m_oldLedlist = nullptr;
HpptClient *pHpptClient = nullptr;
HpptClient *pHpptClientAll = nullptr;
QString m_strUrl="";
LoEmptyDialog * m_PostingDlg=nullptr;
QTimer *m_pGetAskTimer=nullptr;
bool m_bSelected=false;
2022-01-04 18:11:48 +08:00
};
#endif // CONTROLHDMIWIDGET_H