1 /* 2 * Copyright 2013, Axel Dörfler, axeld@pinc-software.de. 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 15 class BCheckBox; 16 class BMenuField; 17 class BTextControl; 18 class BView; 19 20 21 class InitializeNTFSEditor : public BPartitionParameterEditor { 22 public: 23 InitializeNTFSEditor(); 24 virtual ~InitializeNTFSEditor(); 25 26 virtual void SetTo(BPartition* partition); 27 28 virtual bool ValidateParameters() const; 29 virtual status_t ParameterChanged(const char* name, 30 const BVariant& variant); 31 32 virtual BView* View(); 33 34 virtual status_t GetParameters(BString& parameters); 35 36 private: 37 void _CreateViewControls(); 38 39 private: 40 BView* fView; 41 BTextControl* fNameControl; 42 43 BString fParameters; 44 }; 45 46 47 #endif //_INITIALIZE_PARAMETER_EDITOR 48