1/*
2 * Copyright 2008-2011, 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_PAGE_VIEW_H
9#define WIZARD_PAGE_VIEW_H
10
11
12#include <Button.h>
13#include <Message.h>
14#include <TextView.h>
15#include <View.h>
16
17
18class WizardPageView : public BView {
19public:
20								WizardPageView(BMessage* settings, BRect frame,
21									const char* name,
22									uint32 resizingMode = B_FOLLOW_ALL,
23									uint32 flags = B_WILL_DRAW);
24								WizardPageView(BMessage* settings,
25									const char* name);
26	virtual						~WizardPageView();
27
28	virtual	void				PageCompleted();
29
30	virtual	BTextView*			CreateDescription(BRect frame, const char* name,
31									const char* description);
32	virtual	BTextView*			CreateDescription(const char* name,
33									const char* description);
34
35	virtual	void				MakeHeading(BTextView* view);
36	virtual	void				LayoutDescriptionVertically(BTextView* view);
37
38private:
39			void				_BuildUI();
40
41protected:
42			BMessage*			fSettings;
43};
44
45
46#endif	// WIZARD_PAGE_VIEW_H
47