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