comparison src/main.cpp @ 6:99d612849255

v0.3
author pyon@macmini
date Sat, 08 Oct 2011 17:00:33 +0900
parents 1ea4f7981ff5
children bfa0800f1176
comparison
equal deleted inserted replaced
5:3b734fd6ee2b 6:99d612849255
1 // Filename : main.cpp 1 // Filename : main.cpp
2 // Last Change: 02-Oct-2011. 2 // Last Change: 08-Oct-2011.
3 // 3 //
4 4
5 #include "common.h" 5 #include "common.h"
6 #include "main.h" 6 #include "main.h"
7 #include "myframe.h" 7 #include "myframe.h"
8 #include "testframe.cpp"
8 9
9 IMPLEMENT_APP(MyApp) 10 IMPLEMENT_APP(MyApp)
10 11
11 IMPLEMENT_CLASS( MyApp, wxApp ) 12 IMPLEMENT_CLASS( MyApp, wxApp )
12 13
23 24
24 wxImage::AddHandler( new wxJPEGHandler ); 25 wxImage::AddHandler( new wxJPEGHandler );
25 26
26 ConfInit(); 27 ConfInit();
27 28
29 /*
28 MyFrame *mainframe = new MyFrame( NULL, ID_MAIN, wxT("A Mover") ); 30 MyFrame *mainframe = new MyFrame( NULL, ID_MAIN, wxT("A Mover") );
29 mainframe->SetSize( rect ); 31 mainframe->SetSize( rect );
30 mainframe->SetMinSize( wxSize( 580, 680 ) ); 32 mainframe->SetMinSize( wxSize( 580, 680 ) );
31 mainframe->Show(true); 33 mainframe->Show(true);
34 */
35 TestFrame *tf = new TestFrame( NULL, ID_TEST, wxT("A Test") );
36 tf->Show(true);
37
32 38
33 return true; 39 return true;
34 } 40 }
35 41
36 int MyApp::OnExit() 42 int MyApp::OnExit()