X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae8351fc61c11718b80630465967408d13fc226a..c74d8df09d0c0e182cb2063cc4cc546de3a00fae:/utils/dialoged/src/dialoged.cpp?ds=inline diff --git a/utils/dialoged/src/dialoged.cpp b/utils/dialoged/src/dialoged.cpp index bde94cba52..eb015a49d6 100644 --- a/utils/dialoged/src/dialoged.cpp +++ b/utils/dialoged/src/dialoged.cpp @@ -1,4 +1,3 @@ -///////////////////////////////////////////////////////////////////////////// // Name: dialoged.cpp // Purpose: Main Dialog Editor implementation file // Author: Julian Smart @@ -26,30 +25,37 @@ #include "dialoged.h" -// A macro needed for some compilers (AIX) that need 'main' to be defined -// in the application itself. -IMPLEMENT_WXWIN_MAIN +#if !wxUSE_PROPSHEET +#error Please set wxUSE_PROPSHEET to 1 in setup.h. +#endif IMPLEMENT_APP(MyApp) +BEGIN_EVENT_TABLE(MyApp, wxApp) +EVT_MENU(OBJECT_MENU_EDIT, MyApp::OnObjectPopupMenu) +EVT_MENU(OBJECT_MENU_DELETE, MyApp::OnObjectPopupMenu) +END_EVENT_TABLE() + MyApp::MyApp(void) { } wxResourceManager *theResourceManager = NULL; +#include "symbtabl.h" + bool MyApp::OnInit(void) { theResourceManager = new wxResourceManager; theResourceManager->Initialize(); - + theResourceManager->ShowResourceEditor(TRUE); - + if (argc > 1) theResourceManager->Load(argv[1]); - + SetTopWindow(theResourceManager->GetEditorFrame()); - + return TRUE; }