2 * Copyright 2008-2011, Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
6 * Michael Pfeiffer <laplace@users.sourceforge.net>
10 #include "DescriptionPage.h"
14 #include <LayoutBuilder.h>
15 #include <RadioButton.h>
19 DescriptionPage::DescriptionPage(const char* name
,
20 const char* description
, bool hasHeading
)
22 WizardPageView(NULL
, name
)
24 _BuildUI(description
, hasHeading
);
28 DescriptionPage::~DescriptionPage()
34 DescriptionPage::_BuildUI(const char* description
, bool hasHeading
)
36 fDescription
= CreateDescription("description", description
);
38 MakeHeading(fDescription
);
39 fDescription
->SetTabWidth(120);
41 SetLayout(new BGroupLayout(B_VERTICAL
));
43 BLayoutBuilder::Group
<>((BGroupLayout
*)GetLayout())