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