Patch by Alex Wilson: Added archiving/unarchiving support to BSplitView.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37612 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2010-07-20 08:24:19 +00:00
parent 0462f585c2
commit 12463fa891
2 changed files with 47 additions and 1 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 _SPLIT_VIEW_H
@@ -16,6 +16,7 @@ public:
enum orientation orientation
= B_HORIZONTAL,
float spacing = 0.0f);
BSplitView(BMessage* from);
virtual ~BSplitView();
void SetInsets(float left, float top, float right,
@@ -59,6 +60,10 @@ public:
virtual void SetLayout(BLayout* layout);
// overridden to avoid use
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 DrawSplitter(BRect frame,
const BRect& updateRect,