projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Produce correct SVG files in all locales.
[wxWidgets.git]
/
src
/
xrc
/
xh_mdi.cpp
diff --git
a/src/xrc/xh_mdi.cpp
b/src/xrc/xh_mdi.cpp
index f87e5141c3e4ae0a882a73562ebf918fc7848c8f..50a7ed1cb79f8cccf9f59e24cf7988d8019301c6 100644
(file)
--- a/
src/xrc/xh_mdi.cpp
+++ b/
src/xrc/xh_mdi.cpp
@@
-1,6
+1,6
@@
/////////////////////////////////////////////////////////////////////////////
// Name: src/xrc/xh_mdi.cpp
/////////////////////////////////////////////////////////////////////////////
// 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$
// Author: David M. Falkinder & Vaclav Slavik
// Created: 14/02/2005
// RCS-ID: $Id$
@@
-19,9
+19,12
@@
#include "wx/xrc/xh_mdi.h"
#include "wx/mdi.h"
#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)
IMPLEMENT_DYNAMIC_CLASS(wxMdiXmlHandler, wxXmlResourceHandler)
@@
-85,7
+88,7
@@
wxWindow *wxMdiXmlHandler::CreateFrame()
if ( !mdiParent )
{
if ( !mdiParent )
{
-
wxLogError(wxT("Parent of wxMDIParentFrame must be wxMDIParentFrame.")
);
+
ReportError("parent of wxMDIChildFrame must be wxMDIParentFrame"
);
return NULL;
}
return NULL;
}
@@
-114,7
+117,7
@@
wxObject *wxMdiXmlHandler::DoCreateResource()
{
wxFrame* f = wxDynamicCast(frame, wxFrame);
if (f)
{
wxFrame* f = wxDynamicCast(frame, wxFrame);
if (f)
- f->SetIcon
(GetIcon
(wxT("icon"), wxART_FRAME_ICON));
+ f->SetIcon
s(GetIconBundle
(wxT("icon"), wxART_FRAME_ICON));
}
SetupWindow(frame);
}
SetupWindow(frame);
@@
-133,4
+136,4
@@
bool wxMdiXmlHandler::CanHandle(wxXmlNode *node)
IsOfClass(node, wxT("wxMDIChildFrame")));
}
IsOfClass(node, wxT("wxMDIChildFrame")));
}
-#endif // wxUSE_XRC
+#endif // wxUSE_XRC
&& wxUSE_MDI