]> git.saurik.com Git - wxWidgets.git/commitdiff
Added wxFrame support contributed by Aleks
authorGeorge Tasker <gtasker@allenbrook.com>
Sat, 27 Jan 2001 14:29:01 +0000 (14:29 +0000)
committerGeorge Tasker <gtasker@allenbrook.com>
Sat, 27 Jan 2001 14:29:01 +0000 (14:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9188 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/include/wx/xml/xh_all.h
contrib/include/wx/xml/xmlres.h
contrib/src/xml/makefile.vc
contrib/src/xml/xmlres.cpp
contrib/src/xml/xmlrsall.cpp

index 39e0f7732415e4bddec56159fc39fefb899b179d..a659665bd9464be48b251618873a3ee7e16db4ee 100644 (file)
@@ -44,4 +44,6 @@
 #include "wx/xml/xh_stlin.h"
 #include "wx/xml/xh_bmp.h"
 #include "wx/xml/xh_unkwn.h"
+#include "wx/xml/xh_frame.h"
+
 #endif // _WX_XMLRES_H_
index 52c7f2a9abc3477a3583230e23b5db95c307e69b..0947c0634a07f09da8d6d80018906544eb9b2c0c 100644 (file)
@@ -109,6 +109,8 @@ class WXDLLEXPORT wxXmlResource : public wxObject
         wxPanel *LoadPanel(wxWindow *parent, const wxString& name);
         bool LoadPanel(wxPanel *panel, wxWindow *parent, const wxString& name);
 
+        bool LoadFrame(wxFrame* frame, wxWindow *parent, const wxString& name);
+
         // Loads bitmap or icon resource from file:
         wxBitmap LoadBitmap(const wxString& name);
         wxIcon LoadIcon(const wxString& name);
index f08bc4c9da0708f0bfa4442a234719a1968d60c5..93eb4b4be8ccce4e764898f0fb50cd1c7f025d40 100644 (file)
@@ -35,7 +35,7 @@ EXTRATARGETS=$(D)
 
 OBJECTS=$(D)\xml.obj $(D)\xmlbin.obj $(D)\xmlbinz.obj $(D)\xmlpars.obj $(D)\xmlres.obj $(D)\xmlrsall.obj \
         $(D)\xh_bttn.obj $(D)\xh_chckb.obj $(D)\xh_chckl.obj $(D)\xh_choic.obj $(D)\xh_combo.obj $(D)\xh_dlg.obj \
-        $(D)\xh_gauge.obj $(D)\xh_html.obj $(D)\xh_menu.obj $(D)\xh_notbk.obj $(D)\xh_panel.obj $(D)\xh_radbt.obj \
+        $(D)\xh_frame.obj $(D)\xh_gauge.obj $(D)\xh_html.obj $(D)\xh_menu.obj $(D)\xh_notbk.obj $(D)\xh_panel.obj $(D)\xh_radbt.obj \
         $(D)\xh_radbx.obj $(D)\xh_sizer.obj $(D)\xh_slidr.obj $(D)\xh_spin.obj $(D)\xh_stbmp.obj $(D)\xh_sttxt.obj \
         $(D)\xh_text.obj $(D)\xh_listb.obj $(D)\xh_toolb.obj \
         $(D)\xh_bmpbt.obj $(D)\xh_cald.obj $(D)\xh_listc.obj $(D)\xh_scrol.obj \
index c67ffc3cae733df806af6400ce15fff922be75ef..e74d13b7ee8fc8ec31ac79a20f2cd0d0cfcc78cd 100644 (file)
@@ -175,7 +175,10 @@ bool wxXmlResource::LoadPanel(wxPanel *panel, wxWindow *parent, const wxString&
     return CreateResFromNode(FindResource(name, wxT("wxPanel")), parent, panel) != NULL;
 }
 
-
+bool wxXmlResource::LoadFrame(wxFrame* frame, wxWindow *parent, const wxString& name)
+{
+    return CreateResFromNode(FindResource(name, wxT("wxFrame")), parent, frame) != NULL;
+}
 
 wxBitmap wxXmlResource::LoadBitmap(const wxString& name)
 {
index 7c5dd8136d9c5ea86befb3aaaabedefe629b3ff1..7db99c52c978aa2886d71f59c989d9024ead7aa1 100644 (file)
@@ -92,4 +92,6 @@ void wxXmlResource::InitAllHandlers()
     AddHandler(new wxStaticLineXmlHandler);
 #endif
     AddHandler(new wxUnknownWidgetXmlHandler);
+
+    AddHandler(new wxFrameXmlHandler);
 }