|
|
|
#ifndef MAINWINDOW_H
|
|
|
|
#define MAINWINDOW_H
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
|
|
|
#include "Src/GDDC/gddcdlg.h"
|
|
|
|
#include "homepagedlg.h"
|
|
|
|
#include "rescueloadwidget.h"
|
|
|
|
#include <QPushButton>
|
|
|
|
#include <QLabel>
|
|
|
|
#include <QAction>
|
|
|
|
#include <QLineEdit>
|
|
|
|
#include <QTextEdit>
|
|
|
|
#include <QMenu>
|
|
|
|
#include <QMenuBar>
|
|
|
|
#include <QGridLayout>
|
|
|
|
#include <QWebEngineView>
|
|
|
|
#include <QProcess>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
namespace Ui {
|
|
|
|
class MainWindow;
|
|
|
|
}
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
|
|
class MainWindow : public QMainWindow
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
MainWindow(QWidget *parent = nullptr);
|
|
|
|
~MainWindow();
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::MainWindow *ui;
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
void initWindow();
|
|
|
|
void initButton();
|
|
|
|
void initMenuBar();
|
|
|
|
void initToolBar();
|
|
|
|
void initSignalSlot();
|
|
|
|
private slots:
|
|
|
|
void toolButton_clicked();
|
|
|
|
void toolButton_2_clicked();
|
|
|
|
void toolButton_3_clicked();
|
|
|
|
void toolButton_4_clicked();
|
|
|
|
void toolButton_5_clicked();
|
|
|
|
void toolButton_6_clicked();
|
|
|
|
void toolButton_7_clicked();
|
|
|
|
void toolButton_8_clicked();
|
|
|
|
|
|
|
|
public:
|
|
|
|
GDDCdlg *m_GDDCdlg;
|
|
|
|
HomePageDlg *m_HomePagedlg;
|
|
|
|
RescueLoadWidget *m_rescueLoadWidget;
|
|
|
|
//QWeb *m_qWeb;
|
|
|
|
QWebEngineView *mWeb;
|
|
|
|
|
|
|
|
private:
|
|
|
|
QProcess *process;
|
|
|
|
QString exeDirPathName = "";
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
void changeBtnColor(int num);
|
|
|
|
};
|
|
|
|
#endif // MAINWINDOW_H
|