1 /* 2 * Copyright 2015, François Revol <revol@free.fr> 3 * Copyright 2009-2010, Stephan Aßmus <superstippi@gmx.de> 4 * Copyright 2009, Bryce Groff, brycegroff@gmail.com. 5 * Distributed under the terms of the MIT License. 6 */ 7 #ifndef _INITIALIZE_PARAMETER_EDITOR 8 #define _INITIALIZE_PARAMETER_EDITOR 9 10 11 #include <PartitionParameterEditor.h> 12 #include <String.h> 13 14 class BCheckBox; 15 class BMenuField; 16 class BTextControl; 17 class BView; 18 19 20 class InitializeFATEditor : public BPartitionParameterEditor { 21 public: 22 InitializeFATEditor(); 23 virtual ~InitializeFATEditor(); 24 25 virtual void SetTo(BPartition* partition); 26 27 virtual bool ValidateParameters() const; 28 virtual status_t ParameterChanged(const char* name, 29 const BVariant& variant); 30 31 virtual BView* View(); 32 33 virtual status_t GetParameters(BString& parameters); 34 35 // virtual status_t PartitionNameChanged(const char* name); 36 37 private: 38 void _CreateViewControls(); 39 40 BView* fView; 41 BTextControl* fNameControl; 42 BMenuField* fFatBitsMenuField; 43 44 BString fParameters; 45 }; 46 47 48 #endif //_INITIALIZE_PARAMETER_EDITOR 49