tcp: Fix 64 bit build with debugging features enabled.
[haiku.git] / src / kits / interface / GroupView.cpp
blobdce7e7abe1eda8f279901c1ddda36b01ae9f0152
1 /*
2 * Copyright 2010 Haiku, Inc. All rights reserved.
3 * Copyright 2006, Ingo Weinhold <bonefish@cs.tu-berlin.de>.
5 * Distributed under the terms of the MIT License.
6 */
9 #include <GroupView.h>
12 BGroupView::BGroupView(orientation orientation, float spacing)
14 BView(NULL, 0, new BGroupLayout(orientation, spacing))
16 SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
20 BGroupView::BGroupView(const char* name, orientation orientation,
21 float spacing)
23 BView(name, 0, new BGroupLayout(orientation, spacing))
25 SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
29 BGroupView::BGroupView(BMessage* from)
31 BView(from)
36 BGroupView::~BGroupView()
41 void
42 BGroupView::SetLayout(BLayout* layout)
44 // only BGroupLayouts are allowed
45 if (!dynamic_cast<BGroupLayout*>(layout))
46 return;
48 BView::SetLayout(layout);
52 BArchivable*
53 BGroupView::Instantiate(BMessage* from)
55 if (validate_instantiation(from, "BGroupView"))
56 return new BGroupView(from);
58 return NULL;
62 BGroupLayout*
63 BGroupView::GroupLayout() const
65 return dynamic_cast<BGroupLayout*>(GetLayout());
69 status_t
70 BGroupView::Perform(perform_code code, void* _data)
72 return BView::Perform(code, _data);
76 void BGroupView::_ReservedGroupView1() {}
77 void BGroupView::_ReservedGroupView2() {}
78 void BGroupView::_ReservedGroupView3() {}
79 void BGroupView::_ReservedGroupView4() {}
80 void BGroupView::_ReservedGroupView5() {}
81 void BGroupView::_ReservedGroupView6() {}
82 void BGroupView::_ReservedGroupView7() {}
83 void BGroupView::_ReservedGroupView8() {}
84 void BGroupView::_ReservedGroupView9() {}
85 void BGroupView::_ReservedGroupView10() {}