diff src/main.cpp @ 3:75fefb53d983

update preview.
author pyon@macmini
date Sat, 09 Apr 2011 12:48:20 +0900
parents c174ac668e9f
children db7bd315e52c
line wrap: on
line diff
--- a/src/main.cpp	Thu Apr 07 19:56:47 2011 +0900
+++ b/src/main.cpp	Sat Apr 09 12:48:20 2011 +0900
@@ -1,10 +1,11 @@
 // Filename   : main.cpp
-// Last Change: 08-Mar-2011.
+// Last Change: 09-Apr-2011.
 //
 
 #include "common.h"
 #include "main.h"
 #include "myframe.h"
+#include "preview.h"
 
 IMPLEMENT_APP(MyApp)
 
@@ -21,11 +22,18 @@
 {
     if ( !wxApp::OnInit() ) return false;
 
+    wxImage::AddHandler( new wxJPEGHandler );
+
     ConfInit();
 
+    /*
     MyFrame *mainframe = new MyFrame( NULL, ID_MAIN, wxT("Searcher v2") );
     mainframe->SetSize( rect );
     mainframe->Show(true);
+    */
+
+    FramePreview *a = new FramePreview( NULL, ID_IMGFRM, wxEmptyString, wxDefaultPosition, wxSize( 512,394 ), wxCAPTION|wxFRAME_NO_TASKBAR|wxMAXIMIZE_BOX|wxRESIZE_BORDER|wxTAB_TRAVERSAL );
+    a->Show(true);
 
     return true;
 }