1 /* 2 * Copyright 2009, Bryce Groff, brycegroff@gmail.com. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef _INITIALIZE_PARAMETER_EDITOR 6 #define _INITIALIZE_PARAMETER_EDITOR 7 8 9 #include <PartitionParameterEditor.h> 10 11 #include <MenuField.h> 12 #include <TextControl.h> 13 #include <String.h> 14 #include <View.h> 15 16 17 class InitializeBFSEditor : public BPartitionParameterEditor { 18 public: 19 InitializeBFSEditor(); 20 virtual ~InitializeBFSEditor(); 21 22 virtual bool FinishedEditing(); 23 virtual BView* View(); 24 virtual status_t GetParameters(BString* parameters); 25 26 virtual status_t PartitionNameChanged(const char* name); 27 28 private: 29 void _CreateViewControls(); 30 31 BView* fView; 32 BTextControl* fNameTC; 33 BMenuField* fBlockSizeMF; 34 BString fParameters; 35 }; 36 37 38 #endif //_INITIALIZE_PARAMETER_EDITOR 39