1 // -*- C++ -*- 2 // 3 // generated by wxGlade 01d8bb798de7+ on Wed May 14 09:33:51 2014 4 // 5 // Example for compiling a single file project under Linux using g++: 6 // g++ MyApp.cpp $(wx-config --libs) $(wx-config --cxxflags) -o MyApp 7 // 8 // Example for compiling a multi file project under Linux using g++: 9 // g++ main.cpp $(wx-config --libs) $(wx-config --cxxflags) -o MyApp Dialog1.cpp Frame1.cpp 10 // 11 12 // This is an automatically generated file. 13 // Manual changes will be overwritten without warning! 14 15 #include <wx/wx.h> 16 #include <wx/image.h> 17 #include "wx/intl.h" 18 19 #ifndef APP_CATALOG 20 #define APP_CATALOG "app" // replace with the appropriate catalog name 21 #endif 22 23 #include "WMain_wxg.h" 24 25 26 class MyApp: public wxApp { 27 public: 28 bool OnInit(); 29 protected: 30 wxLocale m_locale; // locale we'll be using 31 }; 32 IMPLEMENT_APP(MyApp)33IMPLEMENT_APP(MyApp) 34 35 bool MyApp::OnInit() 36 { 37 m_locale.Init(); 38 #ifdef APP_LOCALE_DIR 39 m_locale.AddCatalogLookupPathPrefix(wxT(APP_LOCALE_DIR)); 40 #endif 41 m_locale.AddCatalog(wxT(APP_CATALOG)); 42 43 wxInitAllImageHandlers(); 44 WMain_wxg* wmain = new WMain_wxg(NULL, wxID_ANY, wxEmptyString); 45 SetTopWindow(wmain); 46 wmain->Show(); 47 return true; 48 }