]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/utils/wxrcedit/edapp.cpp
Applied patch [ 843965 ] RC/WXRC/XML related contribs and utils cleaning
[wxWidgets.git] / contrib / utils / wxrcedit / edapp.cpp
index ad65e05c1fe4a2c41304e2fe194334836bdfafe4..ffce6a4fe512a0b8fd70124864d3e4782c44f11d 100644 (file)
@@ -7,7 +7,7 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(__APPLE__)
     #pragma implementation
     #pragma interface
 #endif
     #pragma implementation
     #pragma interface
 #endif
 
 #include "wx/xml/xml.h"
 #include "wx/image.h"
 
 #include "wx/xml/xml.h"
 #include "wx/image.h"
-
+#include "wx/wx.h"
 
 #include "editor.h"
 
 #include "editor.h"
-
+#include "preview.h"
+#include "propframe.h"
 
 
 // -- Application
 
 
 // -- Application
@@ -46,11 +47,15 @@ IMPLEMENT_APP(MyApp)
 
 bool MyApp::OnInit()
 {
 
 bool MyApp::OnInit()
 {
-    wxString arg = (argc >= 1) ? argv[1] : "";
+    SetVendorName(wxT("wxWindows"));
+    SetAppName(wxT("wxrcedit"));
+    wxString arg = (argc >= 1) ? argv[1] : _T("");
     wxInitAllImageHandlers();
     wxFrame *frame = new EditorFrame(NULL, arg);
     SetTopWindow(frame);
     frame->Show(TRUE);
     wxInitAllImageHandlers();
     wxFrame *frame = new EditorFrame(NULL, arg);
     SetTopWindow(frame);
     frame->Show(TRUE);
+    PreviewFrame::Get()->Show(TRUE);
+    PropertiesFrame::Get()->Show(TRUE);
     return TRUE;
 }
 
     return TRUE;
 }