52 lines
1.2 KiB
C++
52 lines
1.2 KiB
C++
#ifndef PST_MAINWINDOW_H
|
|
#define PST_MAINWINDOW_H
|
|
|
|
#include <QMainWindow>
|
|
#include <QProcess>
|
|
#include <QFrame>
|
|
#include "ElaWindow.h"
|
|
|
|
class T_Navigation;
|
|
class ElaContentDialog;
|
|
namespace GenerateReport
|
|
{
|
|
class MainWindow : public ElaWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
MainWindow(QWidget* parent = nullptr);
|
|
~MainWindow();
|
|
|
|
void initWindow();
|
|
void initEdgeLayout();
|
|
//void initContent();
|
|
void statusBarPromptInformation(QString informationText);
|
|
void libreOfficeProcess(WId hwnd);
|
|
void destructionCenterWidget();
|
|
|
|
|
|
private slots:
|
|
void slot_toolBtnClick_CreateNewReport();
|
|
void slot_toolBtnClick_GemerateFinalReport();
|
|
|
|
private:
|
|
void initToolBar();
|
|
void handleChildLibreOfficeProcessMsg(WId hwnd);
|
|
|
|
private:
|
|
/// @brief ÖÐÐÄÊÓͼ
|
|
QFrame* m_centWidget;
|
|
QProcess* m_libreOffice = Q_NULLPTR;
|
|
QWidget* m_widget = Q_NULLPTR;
|
|
ElaContentDialog* _closeDialog{ nullptr };
|
|
QString _elaDxgiKey{ "" };
|
|
QString _viewKey{ "" };
|
|
QString _aboutKey{ "" };
|
|
QString _settingKey{ "" };
|
|
T_Navigation* _navigationPage{ nullptr };
|
|
};
|
|
}
|
|
|
|
#endif // PST_MAINWINDOW1_H
|