///////////////////////////////////////////////////////////////////////////// // Name: main.cpp // Purpose: // Author: // Modified by: // Created: 07/05/2009 17:23:39 // RCS-ID: // Copyright: // Licence: ///////////////////////////////////////////////////////////////////////////// // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif #ifndef WX_PRECOMP #include "wx/wx.h" #endif ////@begin includes ////@end includes #include "main.h" ////@begin XPM images ////@end XPM images /* * Application instance implementation */ ////@begin implement app IMPLEMENT_APP( AEInstallerApp ) ////@end implement app /* * AEInstallerApp type definition */ IMPLEMENT_CLASS( AEInstallerApp, wxApp ) /* * AEInstallerApp event table definition */ BEGIN_EVENT_TABLE( AEInstallerApp, wxApp ) ////@begin AEInstallerApp event table entries ////@end AEInstallerApp event table entries END_EVENT_TABLE() /* * Constructor for AEInstallerApp */ AEInstallerApp::AEInstallerApp() { Init(); } /* * Member initialisation */ void AEInstallerApp::Init() { ////@begin AEInstallerApp member initialisation ////@end AEInstallerApp member initialisation } /* * Initialisation for AEInstallerApp */ bool AEInstallerApp::OnInit() { ////@begin AEInstallerApp initialisation // Remove the comment markers above and below this block // to make permanent changes to the code. #if wxUSE_XPM wxImage::AddHandler(new wxXPMHandler); #endif #if wxUSE_LIBPNG wxImage::AddHandler(new wxPNGHandler); #endif #if wxUSE_LIBJPEG wxImage::AddHandler(new wxJPEGHandler); #endif #if wxUSE_GIF wxImage::AddHandler(new wxGIFHandler); #endif MainWindow* mainWindow = new MainWindow( NULL ); mainWindow->Show(true); ////@end AEInstallerApp initialisation return true; } /* * Cleanup for AEInstallerApp */ int AEInstallerApp::OnExit() { ////@begin AEInstallerApp cleanup return wxApp::OnExit(); ////@end AEInstallerApp cleanup }