repository_infos: Enable automatic updates on the main Haiku repostiory.
[haiku.git] / src / apps / bootmanager / DescriptionPage.cpp
blob04a56d59a380b9bc31e11aef775e22ecb86002ae
1 /*
2 * Copyright 2008-2011, Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Michael Pfeiffer <laplace@users.sourceforge.net>
7 */
10 #include "DescriptionPage.h"
12 #include <string.h>
14 #include <LayoutBuilder.h>
15 #include <RadioButton.h>
16 #include <TextView.h>
19 DescriptionPage::DescriptionPage(const char* name,
20 const char* description, bool hasHeading)
22 WizardPageView(NULL, name)
24 _BuildUI(description, hasHeading);
28 DescriptionPage::~DescriptionPage()
33 void
34 DescriptionPage::_BuildUI(const char* description, bool hasHeading)
36 fDescription = CreateDescription("description", description);
37 if (hasHeading)
38 MakeHeading(fDescription);
39 fDescription->SetTabWidth(120);
41 SetLayout(new BGroupLayout(B_VERTICAL));
43 BLayoutBuilder::Group<>((BGroupLayout*)GetLayout())
44 .Add(fDescription);