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 DEFAULT_PARTITON_PAGE_H 9 #define DEFAULT_PARTITON_PAGE_H 10 11 12 #include "WizardPageView.h" 13 14 15 class BMenuField; 16 class BMessage; 17 class BPopUpMenu; 18 class BRadioButton; 19 class BSlider; 20 class BTextView; 21 22 23 class DefaultPartitionPage : public WizardPageView { 24 public: 25 DefaultPartitionPage(BMessage* settings, 26 BRect frame, const char* name); 27 virtual ~DefaultPartitionPage(); 28 29 virtual void FrameResized(float width, float height); 30 31 virtual void AttachedToWindow(); 32 virtual void MessageReceived(BMessage* msg); 33 34 private: 35 void _BuildUI(); 36 BPopUpMenu* _CreatePopUpMenu(); 37 void _GetTimeoutLabel(int32 timeout, BString& label); 38 void _Layout(); 39 40 private: 41 BTextView* fDescription; 42 BMenuField* fDefaultPartition; 43 BSlider* fTimeoutSlider; 44 }; 45 46 47 #endif // DEFAULT_PARTITON_PAGE_H 48