summaryrefslogtreecommitdiffstats
path: root/Project/main.cpp
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2016-07-27 16:16:29 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2016-07-27 16:16:29 -0300
commit2bfb6cffd86cb771918dde12e10704384d534714 (patch)
tree4a0a9f9ae899c2f5f536208c495fdc0ee4f58346 /Project/main.cpp
parentb23b552bac7a5c5a5e934ab3181180877bf93a72 (diff)
downloadPSP.git-2bfb6cffd86cb771918dde12e10704384d534714.tar.gz
PSP.git-2bfb6cffd86cb771918dde12e10704384d534714.tar.xz
PSP.git-2bfb6cffd86cb771918dde12e10704384d534714.zip
Projeto base
nenhum código implementado ainda.
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)