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 PARTITONS_PAGE_H 9 #define PARTITONS_PAGE_H 10 11 12 #include "WizardPageView.h" 13 14 15 class BGridView; 16 class BTextView; 17 class BScrollView; 18 19 20 class PartitionsPage : public WizardPageView { 21 public: 22 PartitionsPage(BMessage* settings, 23 const char* name); 24 virtual ~PartitionsPage(); 25 26 virtual void PageCompleted(); 27 28 private: 29 void _BuildUI(); 30 void _FillPartitionsView(BView* view); 31 void _CreateSizeText(int64 size, BString* text); 32 BMessage* _CreateControlMessage(uint32 what, 33 int32 partitionIndex); 34 35 private: 36 BTextView* fDescription; 37 BGridView* fPartitions; 38 }; 39 40 41 #endif // PARTITONS_PAGE_H 42