qt/LedOK/device/ctrlverifyclockpanel.h
2023-08-01 11:42:41 +08:00

79 lines
2.1 KiB
C++

#ifndef CTRLVERIFYCLOCKPANEL_H
#define CTRLVERIFYCLOCKPANEL_H
#include <QComboBox>
#include <QRadioButton>
#include <QGroupBox>
#include <QVBoxLayout>
#include <QCheckBox>
#include <QLabel>
#include <QPushButton>
class CtrlVerifyClockPanel : public QWidget {
Q_OBJECT
public:
explicit CtrlVerifyClockPanel();
protected:
void showEvent(QShowEvent *event) override;
void init();
void changeEvent(QEvent *) override;
void transUi();
void dealGetSync(QJsonDocument &json);
protected slots:
void OnRadioButton();
void OnRadioButton2();
void OnRadioButton3();
void OnRadioButton6();
private:
QLabel *label;
QComboBox *fdTimezone;
QPushButton *fdTimeZoneSet;
QLabel *lbLang;
QRadioButton *fdIsEn;
QRadioButton *fdIsCn;
QPushButton *btnLangSet;
QPushButton *btnLangGet;
QLabel *labelVerifyClockConfiguration;
QPushButton *btnSyncTime;
QGroupBox *groupBox_5;
QPushButton *btnDateGet;
QLabel *labelCurTime;
QGroupBox *groupBox;
QRadioButton *fdIsLora;
QRadioButton *fdIsGPS;
QRadioButton *fdIsNTP;
QRadioButton *fdIsLan;
QHBoxLayout *horizontalLayout_5;
QLabel *labelSyncTimeInterval;
QLineEdit *lineEdit_3;
QLabel *labelmintime;
QHBoxLayout *horizontalLayout_9;
QLabel *labelIdCode;
QLineEdit *lineEditIdCode;
QHBoxLayout *horizontalLayout_10;
QLabel *labelTimeOffset;
QLineEdit *lineEditTimeOffset;
QHBoxLayout *horizontalLayout_13;
QCheckBox *checkBoxBrightness;
QCheckBox *checkBoxVolume;
QCheckBox *checkBoxScreenSwitch;
QHBoxLayout *horizontalLayout_7;
QPushButton *btnSyncSet;
QPushButton *fdSyncGet;
QGroupBox *groupBox_4;
QHBoxLayout *horizontalLayout_11;
QRadioButton *fdMaster;
QRadioButton *fdSlave;
QHBoxLayout *horizontalLayout_12;
QPushButton *btnLoraMasterSet;
QPushButton *btnLoraMasterGet;
QGroupBox *groupNTP;
QLabel *labelNtpServerAddress;
QLineEdit *fdNtpServer;
QPushButton *btnNtpSet;
QPushButton *btnNtpGet;
QButtonGroup *buttonGroup_2;
};
#endif // CTRLVERIFYCLOCKPANEL_H