author | viric <viriketo@gmail.com> |
Sun, 13 Feb 2011 07:57:02 +0100 | |
changeset 2 | 5331bd08a294 |
child 3 | 01dafa022fa1 |
permissions | -rw-r--r-- |
2 | 1 |
#include <wx/wx.h> |
2 |
#include <wx/log.h> |
|
3 |
#include <wx/image.h> |
|
4 |
#include <wx/string.h> |
|
5 |
#include <wx/init.h> |
|
6 |
||
7 |
#include "MainWindow.hpp" |
|
8 |
||
9 |
class MyApp : public wxApp |
|
10 |
{ |
|
11 |
public: |
|
12 |
virtual bool OnInit(); |
|
13 |
}; |
|
14 |
||
15 |
IMPLEMENT_APP(MyApp) |
|
16 |
||
17 |
bool MyApp::OnInit() |
|
18 |
{ |
|
19 |
if(!wxApp::OnInit()) |
|
20 |
return false; |
|
21 |
||
22 |
MainWindow *mw = new MainWindow(); |
|
23 |
mw->Show(); |
|
24 |
SetTopWindow(mw); |
|
25 |
||
26 |
return true; |
|
27 |
} |