qt/LedOK/mainwindow.h
2023-05-18 18:24:40 +08:00

47 lines
1.1 KiB
C++

#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include "base/loqtitlebar.h"
#include "basewin.h"
#include "devicepanel.h"
#include "globaldefine.h"
#include "mguangyingpinwidget.h"
#include "progpanel.h"
#include <QTranslator>
#include <QActionGroup>
class MainWindow : public BaseWin {
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = nullptr);
~MainWindow();
protected:
void changeEvent(QEvent *) override;
void transUi();
private:
QJsonObject updates;
QTranslator translator;
QTranslator transQt;
LoQTitleBar *m_wTitle;
QActionGroup *langGrp;
QAction *act_lang;
QAction *act_help, *actInfo;
QAction *act_update;
QAction *act_updatefirmware;
QAction *act_softconfiguration;
QAction *act_about;
QPushButton *bn_Setting;
QButtonGroup *mBtnGrp;
QWidget *wgts[MainPage_End]{};
QPushButton *m_pOneKeyCheckCard;
DevicePanel *mDevicePanel;
ProgPanel *mProgPanel;
mGuangYingPinWidget *m_wGuangYingPinWidget;
QTimer *m_pTimerSendResoreIpOneKey=nullptr;
bool hasNewVer{false};
void test();
};
#endif // MAINWINDOW_H