qt/LedOK/device/ctrladvancedpanel.h
2024-07-03 18:32:38 +08:00

106 lines
2.7 KiB
C++

#ifndef CTRLADVANCEDPANEL_H
#define CTRLADVANCEDPANEL_H
#include <QLabel>
#include <QPushButton>
#include <QLineEdit>
#include <QTextEdit>
#include <QJsonObject>
#include <QGroupBox>
#include <QRadioButton>
#include <QCheckBox>
#include <QFile>
#include <QThread>
#include <QComboBox>
class CtrlAdvancedPanel : public QWidget {
Q_OBJECT
public:
explicit CtrlAdvancedPanel();
protected:
void showEvent(QShowEvent *event) override;
void init();
void changeEvent(QEvent *) override;
void transUi();
void keyReleaseEvent(QKeyEvent *) override;
void mouseReleaseEvent(QMouseEvent *) override;
private:
std::vector<QPushButton *> btnSets, btnGets;
QLabel *lbTitle;
QLabel *lbScreenWidth;
QLineEdit *fdScreenWidth;
QLabel *lbScreenHeight;
QLineEdit *fdScreenHeight;
QLabel *lbAlias;
QLineEdit *fdAlias;
QLabel *labelWebServer;
QComboBox *fdWebServerAddr;
QLabel *lbCompanyId;
QLineEdit *fdCompanyId;
QLabel *lbRealtime;
QComboBox *fdRealtimeServer;
QPushButton *btnRealtimeClear;
QPushButton *btnWareUpdate;
QLabel *lbWareTip;
QPushButton *btnApkCheck;
QComboBox *fdPkg;
QPushButton *fdUninstall;
QPushButton *btnIsRunning;
QPushButton *btnRestart;
QPushButton *btnGetPlayerState, *btnClearProg;
QPushButton *btnGetLog;
QPushButton *btnSetBack, *btnPlayerBackSet, *btnPlayerBackClear;
QLabel *lbTimingReboot;
QGroupBox *grpM80, *grpY50;
QComboBox *fdM80Resolu, *fdDisMode;
QPushButton *btnM80Set, *btnY50Set;
QPushButton *btnM80Refresh;
QPushButton *btnM80Restore;
QLabel *lbDisMode;
QLabel *lbScreenPos, *lbScreenOff;
QLabel *lbCameraDis;
QGroupBox *grpHighForBusy;
QRadioButton *fdHighForBusy;
QRadioButton *fdTopLevelLH;
QPushButton *btnGetTopLevel;
QPushButton *btnLedSet;
QPushButton *btnReceCardsGet, *btnBindTaxiIc;
QGroupBox *grpMinMaxBrightness;
QLabel *lbMinBright, *label_3;
QLineEdit *fdMinBright, *fdMaxBright;
QGroupBox *grpBoxHiddenSettings;
QPushButton *btnSysUpd, *btnMcuUpd, *btnMcuGet;
QLabel *lbRotate, *lbChargingStation, *lbBaudCfg, *lbBaudModel, *lbUart, *lbBaud;
QCheckBox *fdIsOpenADB;
QLabel *lbCustomJson;
QTextEdit *fdCustomJson;
QPushButton *btnSendCustomJson, *btnCustomJsonGet;
QLabel *lbTraficProtocol, *lbCardMode, *lbTraficPort;
QComboBox *fdServerType;
bool isPassed = false;
};
class PlayerBackSendThread : public QThread {
Q_OBJECT
public:
PlayerBackSendThread(const QString &file, const QString &ip);
QString file, ip;
QString err;
protected:
void run();
signals:
void emErr(QString);
};
#endif // CTRLADVANCEDPANEL_H