]>
git.saurik.com Git - wxWidgets.git/blob - utils/dialoged/src/dialoged.cpp
2 // Purpose: Main Dialog Editor implementation file
3 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows license
9 /////////////////////////////////////////////////////////////////////////////
12 #pragma implementation "dialoged.h"
15 // For compilers that support precompilation, includes "wx/wx.h".
16 #include "wx/wxprec.h"
29 #error Please set wxUSE_PROPSHEET to 1 in setup.h.
34 BEGIN_EVENT_TABLE(MyApp
, wxApp
)
35 EVT_MENU(OBJECT_MENU_EDIT
, MyApp::OnObjectPopupMenu
)
36 EVT_MENU(OBJECT_MENU_DELETE
, MyApp::OnObjectPopupMenu
)
43 wxResourceManager
*theResourceManager
= NULL
;
47 bool MyApp::OnInit(void)
49 theResourceManager
= new wxResourceManager
;
50 theResourceManager
->Initialize();
52 theResourceManager
->ShowResourceEditor(TRUE
);
55 theResourceManager
->Load(argv
[1]);
57 SetTopWindow(theResourceManager
->GetEditorFrame());
62 int MyApp::OnExit(void)
64 delete theResourceManager
;
65 theResourceManager
= NULL
;