]> git.saurik.com Git - wxWidgets.git/blob - utils/framelayout/src/cbstore.h
1 - Moved settingsdlg.[h,cpp] and wxinfo.[h,cpp] to demo where they belong
[wxWidgets.git] / utils / framelayout / src / cbstore.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: No names yet.
3 // Purpose: Contrib. demo
4 // Author: Aleksandras Gluchovas
5 // Modified by:
6 // Created: ??/10/98
7 // RCS-ID: $Id$
8 // Copyright: (c) Aleksandras Gluchovas
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef __CBSTORE_G__
13 #define __CBSTORE_G__
14
15 #include "controlbar.h"
16 #include "objstore.h" // used for persistance of control-bars
17
18 // serializers for some additional classes placed here
19 #include "rowdragpl.h"
20 #include "toolwnd.h"
21 #include "newbmpbtn.h"
22 #include "dyntbar.h"
23 #include "controlarea.h"
24
25 // serialziers for common components of frame-layout engine
26
27 class wxFrameLayoutSerializer : public wxEvtHandlerSerializer
28 {
29 DECLARE_SERIALIZER_CLASS( wxFrameLayoutSerializer );
30
31 static void Serialize( wxObject* pObj, wxObjectStorage& store );
32
33 static void Initialize( wxObject* pObj );
34 };
35
36 class cbBarSpySerializer : public wxSerializerBase
37 {
38 DECLARE_SERIALIZER_CLASS( cbBarSpySerializer );
39
40 static void Serialize( wxObject* pObj, wxObjectStorage& store );
41
42 static void Initialize( wxObject* pObj );
43 };
44
45 class cbBarDimHandlerBaseSerializer : public wxSerializerBase
46 {
47 DECLARE_SERIALIZER_CLASS( cbBarDimHandlerBaseSerializer );
48
49 static void Serialize( wxObject* pObj, wxObjectStorage& store );
50 };
51
52 class cbDimInfoSerializer : public wxSerializerBase
53 {
54 DECLARE_SERIALIZER_CLASS( cbDimInfoSerializer );
55
56 static void Serialize( wxObject* pObj, wxObjectStorage& store );
57 };
58
59 class cbRowInfoSerializer : public wxSerializerBase
60 {
61 DECLARE_SERIALIZER_CLASS( cbRowInfoSerializer );
62
63 static void Serialize( wxObject* pObj, wxObjectStorage& store );
64 };
65 class cbBarInfoSerializer : public wxSerializerBase
66 {
67 DECLARE_SERIALIZER_CLASS( cbBarInfoSerializer );
68
69 static void Serialize( wxObject* pObj, wxObjectStorage& store );
70 };
71 class cbCommonPanePropertiesSerializer : public wxSerializerBase
72 {
73 DECLARE_SERIALIZER_CLASS( cbCommonPanePropertiesSerializer );
74
75 static void Serialize( wxObject* pObj, wxObjectStorage& store );
76 };
77
78 class cbDockPaneSerializer : public wxSerializerBase
79 {
80 DECLARE_SERIALIZER_CLASS( cbDockPaneSerializer );
81
82 static void Serialize( wxObject* pObj, wxObjectStorage& store );
83 };
84
85 class cbUpdatesManagerBaseSerializer : public wxSerializerBase
86 {
87 DECLARE_SERIALIZER_CLASS( cbUpdatesManagerBaseSerializer );
88
89 static void Serialize( wxObject* pObj, wxObjectStorage& store );
90 };
91
92 class cbPluginBaseSerializer : public wxSerializerBase
93 {
94 DECLARE_SERIALIZER_CLASS( cbPluginBaseSerializer );
95
96 static void Serialize( wxObject* pObj, wxObjectStorage& store );
97
98 static void Initialize( wxObject* pObj );
99 };
100
101 class cbRowDragPluginSerializer : public wxSerializerBase
102 {
103 DECLARE_SERIALIZER_CLASS( cbRowDragPluginSerializer );
104
105 static void Serialize( wxObject* pObj, wxObjectStorage& store );
106
107 static void Initialize( wxObject* pObj );
108 };
109
110 class cbHiddenBarInfoSerializer : public wxSerializerBase
111 {
112 DECLARE_SERIALIZER_CLASS( cbHiddenBarInfoSerializer );
113
114 static void Serialize( wxObject* pObj, wxObjectStorage& store );
115 };
116
117 class cbFloatedBarWindowSerializer : public wxWindowSerializer
118 {
119 DECLARE_SERIALIZER_CLASS( cbFloatedBarWindowSerializer );
120
121 static void Serialize( wxObject* pObj, wxObjectStorage& store );
122
123 static void Initialize( wxObject* pObj );
124
125 static void CreateFloatedBarWindowFn( cbFloatedBarWindow* fbar, wxWindow* parent, const wxWindowID id,
126 const wxPoint& pos, const wxSize& size, long style,
127 const wxString& name );
128 };
129
130 /*** serializers for some additional classes (FOR NOW:: also placed here) ***/
131
132 class wxNewBitmapButtonSerializer : public wxWindowSerializer
133 {
134 DECLARE_SERIALIZER_CLASS( wxNewBitmapButtonSerializer );
135
136 static void Serialize( wxObject* pObj, wxObjectStorage& store );
137
138 static void Initialize( wxObject* pObj );
139
140 static void CreateNewBmpBtnWindowFn( wxNewBitmapButton* btn, wxWindow* parent, const wxWindowID id,
141 const wxPoint& pos, const wxSize& size, long style,
142 const wxString& name );
143 };
144
145 class wxDynamicToolBarSerializer : public wxWindowSerializer
146 {
147 DECLARE_SERIALIZER_CLASS( wxDynamicToolBarSerializer );
148
149 static void Serialize( wxObject* pObj, wxObjectStorage& store );
150
151 static void Initialize( wxObject* pObj );
152
153 static void CreateDynTBarWindowFn( wxDynamicToolBar* btn, wxWindow* parent, const wxWindowID id,
154 const wxPoint& pos, const wxSize& size, long style,
155 const wxString& name );
156 };
157
158 class wxDynToolInfoSerializer : public wxSerializerBase
159 {
160 DECLARE_SERIALIZER_CLASS( wxDynToolInfoSerializer );
161
162 static void Serialize( wxObject* pObj, wxObjectStorage& store );
163 };
164
165 class wxTabbedWindowSerializer : public wxWindowSerializer
166 {
167 DECLARE_SERIALIZER_CLASS( wxTabbedWindowSerializer );
168 public:
169 static void Serialize( wxObject* pObj, wxObjectStorage& store );
170
171 static void Initialize( wxObject* pObj );
172 };
173
174 class twTabInfoSerializer : wxSerializerBase
175 {
176 DECLARE_SERIALIZER_CLASS( twTabInfoSerializer );
177 public:
178 static void Serialize( wxObject* pObj, wxObjectStorage& store );
179 };
180
181 #endif