]> Creatis software - creaImageIO.git/blob - appli/wxGimmick/main.cxx
2e9533a295df3645b7ad42b7144fc3c083da8811
[creaImageIO.git] / appli / wxGimmick / main.cxx
1 #include <creaWx.h>
2 #include <creaImageIOWxGimmickFrame.h>
3
4 class myApp : public wxApp
5 {
6 public:
7   bool OnInit( );
8   int  OnExit() { return true; }
9 };
10
11 IMPLEMENT_APP(myApp);
12
13 CREA_WXMAIN_WITH_CONSOLE
14
15 bool myApp::OnInit( )
16 {        
17   wxApp::OnInit();
18 #ifdef __WXGTK__
19   //See http://www.wxwindows.org/faqgtk.htm#locale
20   setlocale(LC_NUMERIC, "C");
21 #endif
22    wxInitAllImageHandlers();
23
24    
25    creaImageIO::SetGimmickMessageLevel(5);
26    creaImageIO::SetGimmickDebugMessageLevel(5);
27    
28
29    int threads = 1;
30
31    creaImageIO::WxGimmickFrame* f = new
32      creaImageIO::WxGimmickFrame(0,
33                                  -1,
34                                  _T("wxGimmick! (c) CREATIS-LRMN 2008"),
35                                  wxDefaultPosition,
36                                  wxSize(1200,800),
37                                  threads);
38    f->Show();
39    
40    return true;
41 }
42
43