X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/35a0184e7d0a19fb2a59c525fdc6b8f7afdfc90a..7fb357a795b41c4c7fd5bcbfcac2a1faffb4f19c:/contrib/utils/wxrcedit/edapp.cpp diff --git a/contrib/utils/wxrcedit/edapp.cpp b/contrib/utils/wxrcedit/edapp.cpp index 2ad0a59b05..10a151c891 100644 --- a/contrib/utils/wxrcedit/edapp.cpp +++ b/contrib/utils/wxrcedit/edapp.cpp @@ -7,7 +7,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #pragma implementation #pragma interface #endif @@ -25,12 +25,13 @@ #include "wx/wx.h" #endif -#include "wx/xml/xml.h" +#include "wx/xrc/xml.h" #include "wx/image.h" #include "wx/wx.h" #include "editor.h" - +#include "preview.h" +#include "propframe.h" // -- Application @@ -46,11 +47,15 @@ IMPLEMENT_APP(MyApp) bool MyApp::OnInit() { + SetVendorName(wxT("wxWindows")); + SetAppName(wxT("wxrcedit")); wxString arg = (argc >= 1) ? argv[1] : ""; wxInitAllImageHandlers(); wxFrame *frame = new EditorFrame(NULL, arg); SetTopWindow(frame); frame->Show(TRUE); + PreviewFrame::Get()->Show(TRUE); + PropertiesFrame::Get()->Show(TRUE); return TRUE; }