source: AE/Installer/trunk/source/main.cpp@ 325

Last change on this file since 325 was 324, checked in by iritscen, 16 years ago

Replacing old CLI source with new GUI source.

  • Property svn:executable set to *
File size: 2.1 KB
RevLine 
[324]1/////////////////////////////////////////////////////////////////////////////
2// Name: main.cpp
3// Purpose:
4// Author:
5// Modified by:
6// Created: 07/05/2009 17:23:39
7// RCS-ID:
8// Copyright:
9// Licence:
10/////////////////////////////////////////////////////////////////////////////
11
12// For compilers that support precompilation, includes "wx/wx.h".
13#include "wx/wxprec.h"
14
15#ifdef __BORLANDC__
16#pragma hdrstop
17#endif
18
19#ifndef WX_PRECOMP
20#include "wx/wx.h"
21#endif
22
23////@begin includes
24////@end includes
25
26#include "main.h"
27
28////@begin XPM images
29////@end XPM images
30
31
32/*
33 * Application instance implementation
34 */
35
36////@begin implement app
37IMPLEMENT_APP( AEInstallerApp )
38////@end implement app
39
40
41/*
42 * AEInstallerApp type definition
43 */
44
45IMPLEMENT_CLASS( AEInstallerApp, wxApp )
46
47
48/*
49 * AEInstallerApp event table definition
50 */
51
52BEGIN_EVENT_TABLE( AEInstallerApp, wxApp )
53
54////@begin AEInstallerApp event table entries
55////@end AEInstallerApp event table entries
56
57END_EVENT_TABLE()
58
59
60/*
61 * Constructor for AEInstallerApp
62 */
63
64AEInstallerApp::AEInstallerApp()
65{
66 Init();
67}
68
69
70/*
71 * Member initialisation
72 */
73
74void AEInstallerApp::Init()
75{
76////@begin AEInstallerApp member initialisation
77////@end AEInstallerApp member initialisation
78}
79
80/*
81 * Initialisation for AEInstallerApp
82 */
83
84bool AEInstallerApp::OnInit()
85{
86////@begin AEInstallerApp initialisation
87 // Remove the comment markers above and below this block
88 // to make permanent changes to the code.
89
90#if wxUSE_XPM
91 wxImage::AddHandler(new wxXPMHandler);
92#endif
93#if wxUSE_LIBPNG
94 wxImage::AddHandler(new wxPNGHandler);
95#endif
96#if wxUSE_LIBJPEG
97 wxImage::AddHandler(new wxJPEGHandler);
98#endif
99#if wxUSE_GIF
100 wxImage::AddHandler(new wxGIFHandler);
101#endif
102 MainWindow* mainWindow = new MainWindow( NULL );
103 mainWindow->Show(true);
104////@end AEInstallerApp initialisation
105
106 return true;
107}
108
109
110/*
111 * Cleanup for AEInstallerApp
112 */
113
114int AEInstallerApp::OnExit()
115{
116////@begin AEInstallerApp cleanup
117 return wxApp::OnExit();
118////@end AEInstallerApp cleanup
119}
120
Note: See TracBrowser for help on using the repository browser.