summaryrefslogtreecommitdiffstats
path: root/Project/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Project/main.cpp')
-rw-r--r--Project/main.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/Project/main.cpp b/Project/main.cpp
new file mode 100644
index 0000000..81dccbc
--- /dev/null
+++ b/Project/main.cpp
@@ -0,0 +1,25 @@
+#include <wx/app.h>
+#include <wx/event.h>
+#include "MainFrame.h"
+#include <wx/image.h>
+
+// Define the MainApp
+class MainApp : public wxApp
+{
+public:
+ MainApp() {}
+ virtual ~MainApp() {}
+
+ virtual bool OnInit() {
+ // Add the common image handlers
+ wxImage::AddHandler( new wxPNGHandler );
+ wxImage::AddHandler( new wxJPEGHandler );
+
+ MainFrame *mainFrame = new MainFrame(NULL);
+ SetTopWindow(mainFrame);
+ return GetTopWindow()->Show();
+ }
+};
+
+DECLARE_APP(MainApp)
+IMPLEMENT_APP(MainApp)