00001 #include "vuGui.h" 00002 00003 //---------------------------------------------------------------------------- 00004 //------------------------- public: bool OnInit() ---------------------------- 00005 //---------------------------------------------------------------------------- 00006 00007 bool vuGUI::OnInit() 00008 { 00009 #if wxUSE_LIBPNG 00010 wxImage::AddHandler( new wxPNGHandler ); 00011 #endif 00012 00013 //Pass on the initialization to the vuMainWindow 00014 m_Main = new vuMainWindow(); 00015 bool success = m_Main->init(argc,argv); 00016 00017 if (success) 00018 SetTopWindow(m_Main); 00019 else 00020 { 00021 delete m_Main; 00022 m_Main = NULL; 00023 } 00024 return success; 00025 }; 00026 //---------------------------------------------------------------------------- 00027 //------------------------- Main program implementation ---------------------- 00028 //---------------------------------------------------------------------------- 00029 00030 //This wxWindows macro implements the main function of the program. 00031 //See the wxWindows documentation for more information. 00032 00033 IMPLEMENT_APP(vuGUI)