* Some new feature in wxObject*Stream (objects aren't duplicated)

* Added SetBackgroundBrush in wxGridCell
* New classes/fixes in wxSerial


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@611 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Guilhem Lavaux
1998-08-19 18:33:19 +00:00
parent 4c444f19cf
commit 8d43638db1
13 changed files with 262 additions and 43 deletions

View File

@@ -27,6 +27,7 @@ class wxObjectStreamInfo : public wxObject {
wxList children;
wxObjectStreamInfo *parent;
wxObject *object;
bool duplicate;
};
class wxObjectOutputStream : public wxFilterOutputStream {
@@ -49,6 +50,7 @@ class wxObjectOutputStream : public wxFilterOutputStream {
int m_stage;
bool m_saving;
wxObjectStreamInfo *m_current_info;
wxList m_saved_objs;
};
class wxObjectInputStream : public wxFilterInputStream {
@@ -56,6 +58,7 @@ class wxObjectInputStream : public wxFilterInputStream {
wxObjectInputStream(wxInputStream& s);
wxObject *GetChild(int no) const;
wxObject *GetChild();
int NumberOfChildren() const { return m_current_info->n_children; }
void RemoveChildren(int nb);
wxObject *GetParent() const;