]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/dialoged/src/dialoged.cpp
Set the selection under Motif in wxChoiceDialog
[wxWidgets.git] / utils / dialoged / src / dialoged.cpp
index bde94cba52c2a7cdf84893b882bbf47867dd1201..3485d5dae506c420de549810cd6430ac9cba9862 100644 (file)
@@ -1,4 +1,3 @@
-/////////////////////////////////////////////////////////////////////////////
 // Name:        dialoged.cpp
 // Purpose:     Main Dialog Editor implementation file
 // Author:      Julian Smart
 // Name:        dialoged.cpp
 // Purpose:     Main Dialog Editor implementation file
 // Author:      Julian Smart
 
 #include "dialoged.h"
 
 
 #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)
 
 
 IMPLEMENT_APP(MyApp)
 
+BEGIN_EVENT_TABLE(MyApp, wxApp)
+END_EVENT_TABLE()
+
 MyApp::MyApp(void)
 {
 }
 
 wxResourceManager *theResourceManager = NULL;
 
 MyApp::MyApp(void)
 {
 }
 
 wxResourceManager *theResourceManager = NULL;
 
+#include "symbtabl.h"
+
 bool MyApp::OnInit(void)
 {
     theResourceManager = new wxResourceManager;
     theResourceManager->Initialize();
 bool MyApp::OnInit(void)
 {
     theResourceManager = new wxResourceManager;
     theResourceManager->Initialize();
-
+    
     theResourceManager->ShowResourceEditor(TRUE);
     theResourceManager->ShowResourceEditor(TRUE);
-  
+    
     if (argc > 1)
         theResourceManager->Load(argv[1]);
     if (argc > 1)
         theResourceManager->Load(argv[1]);
-
+    
     SetTopWindow(theResourceManager->GetEditorFrame());
     SetTopWindow(theResourceManager->GetEditorFrame());
-
+    
     return TRUE;
 }
 
     return TRUE;
 }