Patch by Alex Wilson: Added archiving/unarchiving support.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37546 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
3fb74eb796
commit
ff626c8e29
@ -18,11 +18,13 @@ public:
|
|||||||
BGroupView(const char* name,
|
BGroupView(const char* name,
|
||||||
enum orientation orientation = B_HORIZONTAL,
|
enum orientation orientation = B_HORIZONTAL,
|
||||||
float spacing = 0.0f);
|
float spacing = 0.0f);
|
||||||
|
BGroupView(BMessage* from);
|
||||||
virtual ~BGroupView();
|
virtual ~BGroupView();
|
||||||
|
|
||||||
virtual void SetLayout(BLayout* layout);
|
virtual void SetLayout(BLayout* layout);
|
||||||
|
|
||||||
BGroupLayout* GroupLayout() const;
|
BGroupLayout* GroupLayout() const;
|
||||||
|
|
||||||
|
static BArchivable* Instantiate(BMessage* from);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
|
* Copyright 2010, Haiku, Inc.
|
||||||
* Copyright 2006, Ingo Weinhold <bonefish@cs.tu-berlin.de>.
|
* Copyright 2006, Ingo Weinhold <bonefish@cs.tu-berlin.de>.
|
||||||
* All rights reserved. Distributed under the terms of the MIT License.
|
* All rights reserved. Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
@ -8,7 +9,8 @@
|
|||||||
|
|
||||||
|
|
||||||
BGroupView::BGroupView(enum orientation orientation, float spacing)
|
BGroupView::BGroupView(enum orientation orientation, float spacing)
|
||||||
: BView(NULL, 0, new BGroupLayout(orientation, spacing))
|
:
|
||||||
|
BView(NULL, 0, new BGroupLayout(orientation, spacing))
|
||||||
{
|
{
|
||||||
SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
|
SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
|
||||||
}
|
}
|
||||||
@ -16,12 +18,20 @@ BGroupView::BGroupView(enum orientation orientation, float spacing)
|
|||||||
|
|
||||||
BGroupView::BGroupView(const char* name, enum orientation orientation,
|
BGroupView::BGroupView(const char* name, enum orientation orientation,
|
||||||
float spacing)
|
float spacing)
|
||||||
: BView(name, 0, new BGroupLayout(orientation, spacing))
|
:
|
||||||
|
BView(name, 0, new BGroupLayout(orientation, spacing))
|
||||||
{
|
{
|
||||||
SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
|
SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
BGroupView::BGroupView(BMessage* from)
|
||||||
|
:
|
||||||
|
BView(from)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
BGroupView::~BGroupView()
|
BGroupView::~BGroupView()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@ -38,6 +48,15 @@ BGroupView::SetLayout(BLayout* layout)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
BArchivable*
|
||||||
|
BGroupView::Instantiate(BMessage* from)
|
||||||
|
{
|
||||||
|
if (validate_instantiation(from, "BGroupView"))
|
||||||
|
return new BGroupView(from);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
BGroupLayout*
|
BGroupLayout*
|
||||||
BGroupView::GroupLayout() const
|
BGroupView::GroupLayout() const
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user