Patch by Alex Wilson:

* Added support for archiving/unarchiving.
* Coding style cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37613 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2010-07-20 08:28:55 +00:00
parent 12463fa891
commit 814057885c
2 changed files with 87 additions and 24 deletions
+6 -1
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2006, Haiku, Inc. All rights reserved.
* Copyright 2006-2010, Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _CARD_LAYOUT_H
@@ -11,6 +11,7 @@
class BCardLayout : public BLayout {
public:
BCardLayout();
BCardLayout(BMessage* from);
virtual ~BCardLayout();
BLayoutItem* VisibleItem() const;
@@ -30,6 +31,10 @@ public:
virtual void InvalidateLayout();
virtual void LayoutView();
virtual status_t Archive(BMessage* into, bool deep = true) const;
virtual status_t AllUnarchived(const BMessage* from);
static BArchivable* Instantiate(BMessage* from);
protected:
virtual void ItemAdded(BLayoutItem* item);
virtual void ItemRemoved(BLayoutItem* item);