HaikuDepot: notify work status from main window
[haiku.git] / src / kits / interface / CardView.cpp
blob66e2fa73d5130096dd67846821015057b774c45a
1 /*
2 * Copyright 2015, Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT license.
4 */
7 #include <CardLayout.h>
8 #include <CardView.h>
11 BCardView::BCardView()
13 BView(NULL, 0, new BCardLayout())
15 AdoptSystemColors();
19 BCardView::BCardView(const char* name)
21 BView(name, 0, new BCardLayout())
23 AdoptSystemColors();
27 BCardView::BCardView(BMessage* from)
29 BView(from)
31 AdoptSystemColors();
35 BCardView::~BCardView()
40 void
41 BCardView::SetLayout(BLayout* layout)
43 if (dynamic_cast<BCardLayout*>(layout) == NULL)
44 return;
46 BView::SetLayout(layout);
50 BCardLayout*
51 BCardView::CardLayout() const
53 return static_cast<BCardLayout*>(GetLayout());
57 BArchivable*
58 BCardView::Instantiate(BMessage* from)
60 if (validate_instantiation(from, "BCardView"))
61 return new BCardView(from);
62 return NULL;
66 status_t
67 BCardView::Perform(perform_code d, void* arg)
69 return BView::Perform(d, arg);
73 void BCardView::_ReservedCardView1() {}
74 void BCardView::_ReservedCardView2() {}
75 void BCardView::_ReservedCardView3() {}
76 void BCardView::_ReservedCardView4() {}
77 void BCardView::_ReservedCardView5() {}
78 void BCardView::_ReservedCardView6() {}
79 void BCardView::_ReservedCardView7() {}
80 void BCardView::_ReservedCardView8() {}
81 void BCardView::_ReservedCardView9() {}
82 void BCardView::_ReservedCardView10() {}