btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / apps / bootmanager / WizardView.h
blob7a58b8c944afddb3a6e9048328b434f39f052449
1 /*
2 * Copyright 2008-2010, Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Michael Pfeiffer <laplace@users.sourceforge.net>
7 */
8 #ifndef WIZARD_VIEW_H
9 #define WIZARD_VIEW_H
12 #include <GroupView.h>
15 class BButton;
16 class WizardPageView;
19 const uint32 kMessageNext = 'next';
20 const uint32 kMessagePrevious = 'prev';
23 class WizardView : public BGroupView {
24 public:
25 WizardView(const char* name);
26 virtual ~WizardView();
28 virtual void SetPage(WizardPageView* page);
30 virtual void PageCompleted();
32 virtual void SetPreviousButtonEnabled(bool enabled);
33 virtual void SetNextButtonEnabled(bool enabled);
34 virtual void SetPreviousButtonLabel(const char* text);
35 virtual void SetNextButtonLabel(const char* text);
36 virtual void SetPreviousButtonHidden(bool hide);
38 private:
39 void _BuildUI();
41 private:
42 BGroupView* fPageContainer;
43 BButton* fPrevious;
44 BButton* fNext;
46 WizardPageView* fPage;
50 #endif // WIZARD_VIEW_H