]> git.saurik.com Git - wxWidgets.git/blame - utils/serialize/serctrl.h
applied the bit's of #473508 that were still relevant, and fixed a couple of
[wxWidgets.git] / utils / serialize / serctrl.h
CommitLineData
123a7fdd
GL
1/////////////////////////////////////////////////////////////////////////////
2// Name: serctrl.h
3// Purpose: Serialization: control classes
4// Author: Guilhem Lavaux
5// Modified by:
6// Created: July 1998
7// RCS-ID: $Id$
8// Copyright: (c) 1998 Guilhem Lavaux
9// Licence: wxWindows license
10/////////////////////////////////////////////////////////////////////////////
11
9fdd8384
GL
12#ifndef __SERCTRL_H__
13#define __SERCTRL_H__
14
15#ifdef __GNUG__
16#pragma interface
17#endif
18
19#include <wx/serbase.h>
20#include "serwnd.h"
21
22DECLARE_ALIAS_SERIAL_CLASS(wxControl, wxWindow)
23DECLARE_SERIAL_CLASS(wxButton, wxControl)
856d2e52
GL
24#ifdef __WINDOWS__
25DECLARE_SERIAL_CLASS(wxSlider95, wxControl)
26DECLARE_SERIAL_CLASS(wxGauge95, wxControl)
27#else
9fdd8384 28DECLARE_SERIAL_CLASS(wxSlider, wxControl)
856d2e52
GL
29DECLARE_SERIAL_CLASS(wxGauge, wxControl)
30#endif
9fdd8384
GL
31DECLARE_SERIAL_CLASS(wxCheckBox, wxControl)
32DECLARE_SERIAL_CLASS(wxChoice, wxControl)
33DECLARE_SERIAL_CLASS(wxComboBox, wxControl)
9fdd8384 34DECLARE_SERIAL_CLASS(wxListBox, wxControl)
9fdd8384 35DECLARE_SERIAL_CLASS(wxRadioBox, wxControl)
8d43638d 36DECLARE_SERIAL_CLASS(wxRadioButton, wxControl)
9fdd8384 37DECLARE_SERIAL_CLASS(wxStaticText, wxControl)
8d43638d 38DECLARE_SERIAL_CLASS(wxStaticBox, wxControl)
9fdd8384 39
1d44aaf8
GL
40
41class WXSERIAL(wxNotebook) : public WXSERIAL(wxControl) {
42 DECLARE_DYNAMIC_CLASS( wxNotebook_Serialize )
43public:
44 void StoreObject(wxObjectOutputStream& s);
45 void LoadObject(wxObjectInputStream& s);
46
47protected:
48 int m_pcount;
49 wxArrayString m_stringlist;
50};
51
9fdd8384 52#endif