/* * Copyright 2008-2011, Haiku, Inc. All rights reserved. * Distributed under the terms of the MIT License. * * Authors: * Michael Pfeiffer */ #include "DescriptionPage.h" #include #include #include #include DescriptionPage::DescriptionPage(const char* name, const char* description, bool hasHeading) : WizardPageView(NULL, name) { _BuildUI(description, hasHeading); } DescriptionPage::~DescriptionPage() { } void DescriptionPage::_BuildUI(const char* description, bool hasHeading) { fDescription = CreateDescription("description", description); if (hasHeading) MakeHeading(fDescription); fDescription->SetTabWidth(120); SetLayout(new BGroupLayout(B_VERTICAL)); BLayoutBuilder::Group<>((BGroupLayout*)GetLayout()) .Add(fDescription); }