HaikuDepot: notify work status from main window
[haiku.git] / src / kits / interface / GroupView.cpp
blob96b6cea547b62485c5ec00544f5e922adc5a8a20
1 /*
2 * Copyright 2010-2015 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 AdoptSystemColors();
20 BGroupView::BGroupView(const char* name, orientation orientation,
21 float spacing)
23 BView(name, 0, new BGroupLayout(orientation, spacing))
25 AdoptSystemColors();
29 BGroupView::BGroupView(BMessage* from)
31 BView(from)
33 AdoptSystemColors();
37 BGroupView::~BGroupView()
42 void
43 BGroupView::SetLayout(BLayout* layout)
45 // only BGroupLayouts are allowed
46 if (!dynamic_cast<BGroupLayout*>(layout))
47 return;
49 BView::SetLayout(layout);
53 BArchivable*
54 BGroupView::Instantiate(BMessage* from)
56 if (validate_instantiation(from, "BGroupView"))
57 return new BGroupView(from);
59 return NULL;
63 BGroupLayout*
64 BGroupView::GroupLayout() const
66 return dynamic_cast<BGroupLayout*>(GetLayout());
70 status_t
71 BGroupView::Perform(perform_code code, void* _data)
73 return BView::Perform(code, _data);
77 void BGroupView::_ReservedGroupView1() {}
78 void BGroupView::_ReservedGroupView2() {}
79 void BGroupView::_ReservedGroupView3() {}
80 void BGroupView::_ReservedGroupView4() {}
81 void BGroupView::_ReservedGroupView5() {}
82 void BGroupView::_ReservedGroupView6() {}
83 void BGroupView::_ReservedGroupView7() {}
84 void BGroupView::_ReservedGroupView8() {}
85 void BGroupView::_ReservedGroupView9() {}
86 void BGroupView::_ReservedGroupView10() {}