2023-04-18 14:14:46 +08:00
|
|
|
#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>
|
2023-04-21 11:06:47 +08:00
|
|
|
#include <QComboBox>
|
2023-04-18 14:14:46 +08:00
|
|
|
|
|
|
|
class CtrlAdvancedPanel : public QWidget {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2023-08-01 11:42:41 +08:00
|
|
|
explicit CtrlAdvancedPanel();
|
2023-04-18 14:14:46 +08:00
|
|
|
protected:
|
|
|
|
void showEvent(QShowEvent *event) override;
|
|
|
|
void init();
|
|
|
|
void changeEvent(QEvent *) override;
|
|
|
|
void transUi();
|
|
|
|
|
|
|
|
void keyReleaseEvent(QKeyEvent *) override;
|
|
|
|
void mouseReleaseEvent(QMouseEvent *) override;
|
|
|
|
|
|
|
|
private:
|
2024-07-03 18:32:38 +08:00
|
|
|
std::vector<QPushButton *> btnSets, btnGets;
|
2023-04-18 14:14:46 +08:00
|
|
|
QLabel *lbTitle;
|
|
|
|
QLabel *lbScreenWidth;
|
|
|
|
QLineEdit *fdScreenWidth;
|
|
|
|
QLabel *lbScreenHeight;
|
|
|
|
QLineEdit *fdScreenHeight;
|
|
|
|
QLabel *lbAlias;
|
|
|
|
QLineEdit *fdAlias;
|
2024-08-08 11:53:16 +08:00
|
|
|
QLabel *lbWebAddr;
|
|
|
|
QComboBox *fdWebAddr;
|
2023-04-18 14:14:46 +08:00
|
|
|
QLabel *lbCompanyId;
|
|
|
|
QLineEdit *fdCompanyId;
|
2024-02-21 18:08:50 +08:00
|
|
|
QLabel *lbRealtime;
|
2023-04-18 14:14:46 +08:00
|
|
|
QComboBox *fdRealtimeServer;
|
|
|
|
QPushButton *btnRealtimeClear;
|
|
|
|
QPushButton *btnWareUpdate;
|
|
|
|
QLabel *lbWareTip;
|
|
|
|
QPushButton *btnApkCheck;
|
|
|
|
QComboBox *fdPkg;
|
|
|
|
QPushButton *fdUninstall;
|
|
|
|
QPushButton *btnIsRunning;
|
|
|
|
QPushButton *btnRestart;
|
2023-08-01 11:42:41 +08:00
|
|
|
QPushButton *btnGetPlayerState, *btnClearProg;
|
2023-04-18 14:14:46 +08:00
|
|
|
QPushButton *btnGetLog;
|
|
|
|
QPushButton *btnSetBack, *btnPlayerBackSet, *btnPlayerBackClear;
|
|
|
|
|
|
|
|
QLabel *lbTimingReboot;
|
|
|
|
|
2024-08-07 18:18:37 +08:00
|
|
|
QGroupBox *grpPlayer, *grpM80, *grpY50;
|
2023-04-18 14:14:46 +08:00
|
|
|
QComboBox *fdM80Resolu, *fdDisMode;
|
|
|
|
QPushButton *btnM80Set, *btnY50Set;
|
|
|
|
QPushButton *btnM80Refresh;
|
|
|
|
QPushButton *btnM80Restore;
|
|
|
|
|
|
|
|
QLabel *lbDisMode;
|
|
|
|
QLabel *lbScreenPos, *lbScreenOff;
|
2024-08-19 16:10:49 +08:00
|
|
|
QLabel *lbOffset, *lbCameraDis;
|
2023-04-18 14:14:46 +08:00
|
|
|
|
|
|
|
QGroupBox *grpHighForBusy;
|
|
|
|
QRadioButton *fdHighForBusy;
|
|
|
|
QRadioButton *fdTopLevelLH;
|
|
|
|
QPushButton *btnGetTopLevel;
|
2023-08-01 11:42:41 +08:00
|
|
|
QPushButton *btnLedSet;
|
2024-02-21 18:08:50 +08:00
|
|
|
QPushButton *btnReceCardsGet, *btnBindTaxiIc;
|
2023-04-18 14:14:46 +08:00
|
|
|
|
|
|
|
QGroupBox *grpMinMaxBrightness;
|
2024-07-03 18:32:38 +08:00
|
|
|
QLabel *lbMinBright, *label_3;
|
|
|
|
QLineEdit *fdMinBright, *fdMaxBright;
|
2023-04-18 14:14:46 +08:00
|
|
|
|
|
|
|
QGroupBox *grpBoxHiddenSettings;
|
|
|
|
QPushButton *btnSysUpd, *btnMcuUpd, *btnMcuGet;
|
2023-10-23 15:08:45 +08:00
|
|
|
QLabel *lbRotate, *lbChargingStation, *lbBaudCfg, *lbBaudModel, *lbUart, *lbBaud;
|
2023-04-18 14:14:46 +08:00
|
|
|
QCheckBox *fdIsOpenADB;
|
|
|
|
QLabel *lbCustomJson;
|
|
|
|
QTextEdit *fdCustomJson;
|
2023-10-23 15:08:45 +08:00
|
|
|
QPushButton *btnSendCustomJson, *btnCustomJsonGet;
|
2023-04-18 14:14:46 +08:00
|
|
|
|
|
|
|
QLabel *lbTraficProtocol, *lbCardMode, *lbTraficPort;
|
|
|
|
QComboBox *fdServerType;
|
2024-07-03 18:32:38 +08:00
|
|
|
|
|
|
|
bool isPassed = false;
|
2023-04-18 14:14:46 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
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
|