fszontagh
2024-02-25 621935256b987929450717d4561fa16f0e732e8d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <wx/app.h>
#include <wx/event.h>
#define STB_IMAGE_IMPLEMENTATION
#include "ui/ImageViewerImageWindow.h"
#include <wx/image.h>
 
// Define the MainApp
class MainApp : public wxApp
{
public:
    MainApp() {}
    virtual ~MainApp() {}
 
    virtual bool OnInit()
    {
        wxInitAllImageHandlers();
        ImageViewerImageWindow *mainFrame = new ImageViewerImageWindow(nullptr);
        SetTopWindow(mainFrame);
 
        return GetTopWindow()->Show();
    }
};
 
DECLARE_APP(MainApp)
IMPLEMENT_APP(MainApp)