]>
Commit | Line | Data |
---|---|---|
457814b5 JS |
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 | ||
5638d705 JS |
28 | #if !wxUSE_PROPSHEET |
29 | #error Please set wxUSE_PROPSHEET to 1 in setup.h. | |
30 | #endif | |
31 | ||
457814b5 JS |
32 | IMPLEMENT_APP(MyApp) |
33 | ||
7bf07d26 | 34 | BEGIN_EVENT_TABLE(MyApp, wxApp) |
f6bcfd97 BP |
35 | EVT_MENU(OBJECT_MENU_EDIT, MyApp::OnObjectPopupMenu) |
36 | EVT_MENU(OBJECT_MENU_DELETE, MyApp::OnObjectPopupMenu) | |
7bf07d26 VZ |
37 | END_EVENT_TABLE() |
38 | ||
457814b5 JS |
39 | MyApp::MyApp(void) |
40 | { | |
41 | } | |
42 | ||
ae8351fc | 43 | wxResourceManager *theResourceManager = NULL; |
457814b5 | 44 | |
03f68f12 JS |
45 | #include "symbtabl.h" |
46 | ||
457814b5 JS |
47 | bool MyApp::OnInit(void) |
48 | { | |
ae8351fc JS |
49 | theResourceManager = new wxResourceManager; |
50 | theResourceManager->Initialize(); | |
f6bcfd97 | 51 | |
ae8351fc | 52 | theResourceManager->ShowResourceEditor(TRUE); |
f6bcfd97 | 53 | |
ae8351fc JS |
54 | if (argc > 1) |
55 | theResourceManager->Load(argv[1]); | |
f6bcfd97 | 56 | |
ae8351fc | 57 | SetTopWindow(theResourceManager->GetEditorFrame()); |
f6bcfd97 | 58 | |
ae8351fc | 59 | return TRUE; |
457814b5 JS |
60 | } |
61 | ||
ae8351fc JS |
62 | int MyApp::OnExit(void) |
63 | { | |
64 | delete theResourceManager; | |
65 | theResourceManager = NULL; | |
66 | return 0; | |
67 | } |