80 lines
2.2 KiB
C++
80 lines
2.2 KiB
C++
#ifndef CTRLVERIFYCLOCKPANEL_H
|
|
#define CTRLVERIFYCLOCKPANEL_H
|
|
|
|
#include "ledcard.h"
|
|
#include <communication/hpptclient.h>
|
|
#include <base/loemptydialog.h>
|
|
#include <QComboBox>
|
|
#include <QRadioButton>
|
|
#include <QGroupBox>
|
|
#include <QVBoxLayout>
|
|
#include <QCheckBox>
|
|
|
|
class CtrlVerifyClockPanel : public QWidget {
|
|
Q_OBJECT
|
|
public:
|
|
explicit CtrlVerifyClockPanel(QWidget *parent = nullptr);
|
|
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 *pushButtonSetSync;
|
|
QPushButton *fdSyncGet;
|
|
QGroupBox *groupBox_4;
|
|
QHBoxLayout *horizontalLayout_11;
|
|
QRadioButton *radioButton_4;
|
|
QRadioButton *radioButton_5;
|
|
QHBoxLayout *horizontalLayout_12;
|
|
QPushButton *btnLoraMasterSet;
|
|
QPushButton *btnLoraMasterGet;
|
|
QGroupBox *groupNTP;
|
|
QLabel *labelNtpServerAddress;
|
|
QLineEdit *fdNtpServer;
|
|
QPushButton *btnNtpSet;
|
|
QPushButton *btnNtpGet;
|
|
QButtonGroup *buttonGroup_2;
|
|
};
|
|
|
|
#endif // CTRLVERIFYCLOCKPANEL_H
|