| 1 |
#include "MainDialog.hpp" |
| 2 |
#include <wx/app.h> |
| 3 |
#include <wx/event.h> |
| 4 |
#include <wx/image.h> |
| 5 |
|
| 6 |
// Define the MainApp |
| 7 |
class MainApp : public wxApp |
| 8 |
{ |
| 9 |
public: |
| 10 |
MainApp() {} |
| 11 |
virtual ~MainApp() {} |
| 12 |
|
| 13 |
virtual bool OnInit() |
| 14 |
{ |
| 15 |
// Add the common image handlers |
| 16 |
wxImage::AddHandler(new wxPNGHandler); |
| 17 |
wxImage::AddHandler(new wxJPEGHandler); |
| 18 |
|
| 19 |
MainDialog mainDialog{ nullptr }; |
| 20 |
mainDialog.ShowModal(); |
| 21 |
return false; |
| 22 |
} |
| 23 |
}; |
| 24 |
|
| 25 |
DECLARE_APP(MainApp) |
| 26 |
IMPLEMENT_APP(MainApp) |