xref: /haiku/src/apps/bootmanager/WizardView.h (revision 2b76973fa2401f7a5edf68e6470f3d3210cbcff3)
1 /*
2  * Copyright 2008-2010, Haiku, Inc. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Michael Pfeiffer <laplace@users.sourceforge.net>
7  */
8 #ifndef WIZARD_VIEW_H
9 #define WIZARD_VIEW_H
10 
11 
12 #include <GroupView.h>
13 
14 
15 class BButton;
16 class WizardPageView;
17 
18 
19 const uint32 kMessageNext = 'next';
20 const uint32 kMessagePrevious = 'prev';
21 
22 
23 class WizardView : public BGroupView {
24 public:
25 								WizardView(const char* name);
26 	virtual						~WizardView();
27 
28 	virtual	void				SetPage(WizardPageView* page);
29 
30 	virtual	void				PageCompleted();
31 
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);
37 
38 private:
39 			void				_BuildUI();
40 
41 private:
42 			BGroupView*			fPageContainer;
43 			BButton*			fPrevious;
44 			BButton*			fNext;
45 
46 			WizardPageView*		fPage;
47 };
48 
49 
50 #endif	// WIZARD_VIEW_H
51