comparison src/main.cpp @ 3:75fefb53d983

update preview.
author pyon@macmini
date Sat, 09 Apr 2011 12:48:20 +0900
parents c174ac668e9f
children db7bd315e52c
comparison
equal deleted inserted replaced
2:0830b0d7c550 3:75fefb53d983
1 // Filename : main.cpp 1 // Filename : main.cpp
2 // Last Change: 08-Mar-2011. 2 // Last Change: 09-Apr-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 "preview.h"
8 9
9 IMPLEMENT_APP(MyApp) 10 IMPLEMENT_APP(MyApp)
10 11
11 IMPLEMENT_CLASS( MyApp, wxApp ) 12 IMPLEMENT_CLASS( MyApp, wxApp )
12 13
19 20
20 bool MyApp::OnInit() 21 bool MyApp::OnInit()
21 { 22 {
22 if ( !wxApp::OnInit() ) return false; 23 if ( !wxApp::OnInit() ) return false;
23 24
25 wxImage::AddHandler( new wxJPEGHandler );
26
24 ConfInit(); 27 ConfInit();
25 28
29 /*
26 MyFrame *mainframe = new MyFrame( NULL, ID_MAIN, wxT("Searcher v2") ); 30 MyFrame *mainframe = new MyFrame( NULL, ID_MAIN, wxT("Searcher v2") );
27 mainframe->SetSize( rect ); 31 mainframe->SetSize( rect );
28 mainframe->Show(true); 32 mainframe->Show(true);
33 */
34
35 FramePreview *a = new FramePreview( NULL, ID_IMGFRM, wxEmptyString, wxDefaultPosition, wxSize( 512,394 ), wxCAPTION|wxFRAME_NO_TASKBAR|wxMAXIMIZE_BOX|wxRESIZE_BORDER|wxTAB_TRAVERSAL );
36 a->Show(true);
29 37
30 return true; 38 return true;
31 } 39 }
32 40
33 int MyApp::OnExit() 41 int MyApp::OnExit()