]> git.saurik.com Git - wxWidgets.git/blob - utils/dialoged/src/dialoged.cpp
bde94cba52c2a7cdf84893b882bbf47867dd1201
[wxWidgets.git] / utils / dialoged / src / dialoged.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: dialoged.cpp
3 // Purpose: Main Dialog Editor implementation file
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 04/01/98
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifdef __GNUG__
13 #pragma implementation "dialoged.h"
14 #endif
15
16 // For compilers that support precompilation, includes "wx/wx.h".
17 #include "wx/wxprec.h"
18
19 #ifdef __BORLANDC__
20 #pragma hdrstop
21 #endif
22
23 #ifndef WX_PRECOMP
24 #include "wx/wx.h"
25 #endif
26
27 #include "dialoged.h"
28
29 // A macro needed for some compilers (AIX) that need 'main' to be defined
30 // in the application itself.
31 IMPLEMENT_WXWIN_MAIN
32
33 IMPLEMENT_APP(MyApp)
34
35 MyApp::MyApp(void)
36 {
37 }
38
39 wxResourceManager *theResourceManager = NULL;
40
41 bool MyApp::OnInit(void)
42 {
43 theResourceManager = new wxResourceManager;
44 theResourceManager->Initialize();
45
46 theResourceManager->ShowResourceEditor(TRUE);
47
48 if (argc > 1)
49 theResourceManager->Load(argv[1]);
50
51 SetTopWindow(theResourceManager->GetEditorFrame());
52
53 return TRUE;
54 }
55
56 int MyApp::OnExit(void)
57 {
58 delete theResourceManager;
59 theResourceManager = NULL;
60 return 0;
61 }