// -*- C++ -*- // // generated by wxGlade "faked test version" // // Example for compiling a single file project under Linux using g++: // g++ MyApp.cpp $(wx-config --libs) $(wx-config --cxxflags) -o MyApp // // Example for compiling a multi file project under Linux using g++: // g++ main.cpp $(wx-config --libs) $(wx-config --cxxflags) -o MyApp Dialog1.cpp Frame1.cpp // // This is an automatically generated file. // Manual changes will be overwritten without warning! #include #include #include #ifndef APP_CATALOG #define APP_CATALOG "myapp" // replace with the appropriate catalog name #endif #include "MyAppFrame.h" class MyApp: public wxApp { public: bool OnInit(); protected: wxLocale m_locale; // locale we'll be using }; IMPLEMENT_APP(MyApp) bool MyApp::OnInit() { m_locale.Init(); #ifdef APP_LOCALE_DIR m_locale.AddCatalogLookupPathPrefix(wxT(APP_LOCALE_DIR)); #endif m_locale.AddCatalog(wxT(APP_CATALOG)); wxInitAllImageHandlers(); MyAppFrame* appframe = new MyAppFrame(NULL, wxID_ANY, wxEmptyString); SetTopWindow(appframe); appframe->Show(); return true; }