qt/LedOK/mainwindow.h

46 lines
1.1 KiB
C
Raw Normal View History

2022-01-04 18:11:48 +08:00
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
2022-08-25 18:37:24 +08:00
#include "base/loqtitlebar.h"
#include "basewin.h"
#include "devicepanel.h"
#include "devicectrlpanel.h"
2022-01-04 18:11:48 +08:00
#include "mguangyingpinwidget.h"
2022-08-25 18:37:24 +08:00
#include "progpanel.h"
#include <QTranslator>
2023-04-18 14:14:46 +08:00
#include <QActionGroup>
2022-01-04 18:11:48 +08:00
2022-08-25 18:37:24 +08:00
class MainWindow : public BaseWin {
2022-01-04 18:11:48 +08:00
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = nullptr);
~MainWindow();
2022-08-25 18:37:24 +08:00
protected:
void changeEvent(QEvent *) override;
void transUi();
2022-01-04 18:11:48 +08:00
private:
2022-08-25 18:37:24 +08:00
QTranslator translator;
QTranslator transQt;
LoQTitleBar *m_wTitle;
QActionGroup *langGrp;
QAction *act_lang;
2023-04-18 14:14:46 +08:00
QAction *act_help, *actInfo;
2022-08-25 18:37:24 +08:00
QAction *act_update;
QAction *act_updatefirmware;
QAction *act_softconfiguration;
QAction *act_about;
QPushButton *bn_Setting;
QButtonGroup *mBtnGrp;
QWidget *wgts[MainPage_End]{};
int curIndex{0};
QPushButton *m_pOneKeyCheckCard;
DevicePanel *mDevicePanel;
ProgPanel *mProgPanel;
2022-01-04 18:11:48 +08:00
mGuangYingPinWidget *m_wGuangYingPinWidget;
QTimer *m_pTimerSendResoreIpOneKey=nullptr;
2022-08-25 18:37:24 +08:00
void test();
2022-01-04 18:11:48 +08:00
};
#endif // MAINWINDOW_H