main.cxx

Go to the documentation of this file.
00001 #include <creaWx.h>
00002 #include <creaImageIOWxGimmickFrame.h>
00003 
00004 class myApp : public wxApp
00005 {
00006 public:
00007   bool OnInit( );
00008   int  OnExit() { return true; }
00009 };
00010 
00011 IMPLEMENT_APP(myApp);
00012 
00013 CREA_WXMAIN_WITH_CONSOLE
00014 
00015 bool myApp::OnInit( )
00016 {        
00017   wxApp::OnInit();
00018 #ifdef __WXGTK__
00019   //See http://www.wxwindows.org/faqgtk.htm#locale
00020   setlocale(LC_NUMERIC, "C");
00021 #endif
00022    wxInitAllImageHandlers();
00023 
00024    
00025    creaImageIO::SetGimmickMessageLevel(5);
00026    creaImageIO::SetGimmickDebugMessageLevel(5);
00027    
00028 
00029    int threads = 1;
00030 
00031    creaImageIO::WxGimmickFrame* f = new
00032      creaImageIO::WxGimmickFrame(0,
00033                                  -1,
00034                                  _T("wxGimmick! (c) CREATIS-LRMN 2008"),
00035                                  wxDefaultPosition,
00036                                  wxSize(1200,800),
00037                                  threads);
00038    f->Show();
00039    
00040    return true;
00041 }
00042 
00043