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 15class BMenuField; 16class BMessage; 17class BPopUpMenu; 18class BRadioButton; 19class BSlider; 20class BTextView; 21 22 23class DefaultPartitionPage : public WizardPageView { 24public: 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 34private: 35 void _BuildUI(); 36 BPopUpMenu* _CreatePopUpMenu(); 37 void _GetTimeoutLabel(int32 timeout, BString& label); 38 void _Layout(); 39 40private: 41 BTextView* fDescription; 42 BMenuField* fDefaultPartition; 43 BSlider* fTimeoutSlider; 44}; 45 46 47#endif // DEFAULT_PARTITON_PAGE_H 48