X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1c067fe3c1e752658c63b4d556eb6a5468213860..6f026b5b63fe7ccb025e84509886f74772b9df13:/src/xrc/xh_mdi.cpp diff --git a/src/xrc/xh_mdi.cpp b/src/xrc/xh_mdi.cpp index f87e5141c3..021934231e 100644 --- a/src/xrc/xh_mdi.cpp +++ b/src/xrc/xh_mdi.cpp @@ -1,9 +1,8 @@ ///////////////////////////////////////////////////////////////////////////// // Name: src/xrc/xh_mdi.cpp -// Purpose: XRC resource for dialogs +// Purpose: XRC resource for wxMDI // Author: David M. Falkinder & Vaclav Slavik // Created: 14/02/2005 -// RCS-ID: $Id$ // Copyright: (c) 2005 Vaclav Slavik // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -19,9 +18,12 @@ #include "wx/xrc/xh_mdi.h" #include "wx/mdi.h" -#include "wx/dialog.h" // to get wxDEFAULT_DIALOG_STYLE -#include "wx/log.h" -#include "wx/intl.h" + +#ifndef WX_PRECOMP + #include "wx/intl.h" + #include "wx/log.h" + #include "wx/dialog.h" // to get wxDEFAULT_DIALOG_STYLE +#endif IMPLEMENT_DYNAMIC_CLASS(wxMdiXmlHandler, wxXmlResourceHandler) @@ -85,7 +87,7 @@ wxWindow *wxMdiXmlHandler::CreateFrame() if ( !mdiParent ) { - wxLogError(wxT("Parent of wxMDIParentFrame must be wxMDIParentFrame.")); + ReportError("parent of wxMDIChildFrame must be wxMDIParentFrame"); return NULL; } @@ -114,7 +116,7 @@ wxObject *wxMdiXmlHandler::DoCreateResource() { wxFrame* f = wxDynamicCast(frame, wxFrame); if (f) - f->SetIcon(GetIcon(wxT("icon"), wxART_FRAME_ICON)); + f->SetIcons(GetIconBundle(wxT("icon"), wxART_FRAME_ICON)); } SetupWindow(frame); @@ -133,4 +135,4 @@ bool wxMdiXmlHandler::CanHandle(wxXmlNode *node) IsOfClass(node, wxT("wxMDIChildFrame"))); } -#endif // wxUSE_XRC +#endif // wxUSE_XRC && wxUSE_MDI