2 * Copyright 2008-2010, Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
6 * Michael Pfeiffer <laplace@users.sourceforge.net>
10 #include "UninstallPage.h"
15 #include <RadioButton.h>
19 #undef B_TRANSLATION_CONTEXT
20 #define B_TRANSLATION_CONTEXT "UninstallPage"
23 static const float kTextDistance
= 10;
26 UninstallPage::UninstallPage(BMessage
* settings
, BRect frame
, const char* name
)
28 WizardPageView(settings
, frame
, name
, B_FOLLOW_ALL
,
29 B_WILL_DRAW
| B_FRAME_EVENTS
| B_FULL_UPDATE_ON_RESIZE
)
35 UninstallPage::~UninstallPage()
41 UninstallPage::FrameResized(float width
, float height
)
43 WizardPageView::FrameResized(width
, height
);
49 UninstallPage::_BuildUI()
54 text
<< B_TRANSLATE_COMMENT("Uninstall Boot Manager", "Title") << "\n\n"
55 << B_TRANSLATE("Please locate the Master Boot Record (MBR) save file "
56 "to restore from. This is the file that was created when the "
57 "boot manager was first installed.");
58 fDescription
= CreateDescription(rect
, "description", text
);
60 MakeHeading(fDescription
);
61 AddChild(fDescription
);
68 UninstallPage::_Layout()
70 LayoutDescriptionVertically(fDescription
);