]>
Commit | Line | Data |
---|---|---|
457814b5 JS |
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 | ||
457814b5 JS |
29 | IMPLEMENT_APP(MyApp) |
30 | ||
31 | MyApp::MyApp(void) | |
32 | { | |
33 | } | |
34 | ||
ae8351fc | 35 | wxResourceManager *theResourceManager = NULL; |
457814b5 | 36 | |
03f68f12 JS |
37 | #include "symbtabl.h" |
38 | ||
457814b5 JS |
39 | bool MyApp::OnInit(void) |
40 | { | |
ae8351fc JS |
41 | theResourceManager = new wxResourceManager; |
42 | theResourceManager->Initialize(); | |
43 | ||
44 | theResourceManager->ShowResourceEditor(TRUE); | |
457814b5 | 45 | |
ae8351fc JS |
46 | if (argc > 1) |
47 | theResourceManager->Load(argv[1]); | |
457814b5 | 48 | |
ae8351fc | 49 | SetTopWindow(theResourceManager->GetEditorFrame()); |
457814b5 | 50 | |
ae8351fc | 51 | return TRUE; |
457814b5 JS |
52 | } |
53 | ||
ae8351fc JS |
54 | int MyApp::OnExit(void) |
55 | { | |
56 | delete theResourceManager; | |
57 | theResourceManager = NULL; | |
58 | return 0; | |
59 | } |