X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9fdd83842f5ead4ef45852b9943df36c38b4d7d7..6a1120ad4cc05520f989449ffc953a217782af72:/utils/serialize/serwnd.cpp diff --git a/utils/serialize/serwnd.cpp b/utils/serialize/serwnd.cpp index 52914a0d89..ebfa97b553 100644 --- a/utils/serialize/serwnd.cpp +++ b/utils/serialize/serwnd.cpp @@ -3,9 +3,9 @@ // Purpose: Serialization: wxWindow classes // Author: Guilhem Lavaux // Modified by: -// Created: 11/07/98 +// Created: July 1998 // RCS-ID: $Id$ -// Copyright: (c) Guilhem Lavaux +// Copyright: (c) 1998 Guilhem Lavaux // Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// @@ -20,6 +20,8 @@ #include #include #include +#include +#include #include #include "serwnd.h" @@ -27,13 +29,12 @@ IMPLEMENT_SERIAL_CLASS(wxWindow, wxObject) IMPLEMENT_SERIAL_CLASS(wxIndividualLayoutConstraint, wxObject) IMPLEMENT_SERIAL_CLASS(wxLayoutConstraints, wxObject) IMPLEMENT_SERIAL_CLASS(wxFrame, wxWindow) +IMPLEMENT_SERIAL_CLASS(wxPanel, wxWindow) //IMPLEMENT_SERIAL_CLASS(wxDialog, wxWindow) IMPLEMENT_SERIAL_CLASS(wxMenuBar, wxWindow) IMPLEMENT_SERIAL_CLASS(wxMenuItem, wxObject) IMPLEMENT_SERIAL_CLASS(wxMenu, wxObject) -// IMPLEMENT_ALIAS_SERIAL_CLASS(wxPanel, wxWindow) - void WXSERIAL(wxWindow)::StoreObject(wxObjectOutputStream& s) { wxWindow *win_object = (wxWindow *)Object(); @@ -322,3 +323,16 @@ void WXSERIAL(wxMenuItem)::LoadObject(wxObjectInputStream& s) item->Check( data_s.Read8() ); item->SetSubMenu( (wxMenu *)s.GetChild(0) ); } + +void WXSERIAL(wxPanel)::StoreObject(wxObjectOutputStream& s) +{ + WXSERIAL(wxWindow)::StoreObject(s); +} + +void WXSERIAL(wxPanel)::LoadObject(wxObjectInputStream& s) +{ + WXSERIAL(wxWindow)::LoadObject(s); + + ((wxPanel *)Object())->Create(m_parent, m_id, wxPoint(m_x, m_y), + wxSize(m_w, m_h), m_style, m_name); +}