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_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 18 class WizardPageView : public BView { 19 public: 20 WizardPageView(BMessage* settings, BRect frame, 21 const char* name, 22 uint32 resizingMode = B_FOLLOW_ALL, 23 uint32 flags = B_WILL_DRAW); 24 virtual ~WizardPageView(); 25 26 virtual void PageCompleted(); 27 28 virtual BTextView* CreateDescription(BRect frame, const char* name, 29 const char* description); 30 31 virtual void MakeHeading(BTextView* view); 32 virtual void LayoutDescriptionVertically(BTextView* view); 33 34 private: 35 void _BuildUI(); 36 37 protected: 38 BMessage* fSettings; 39 }; 40 41 42 #endif // WIZARD_PAGE_VIEW_H 43