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 15class BCheckBox; 16class BMenuField; 17class BMenuItem; 18class BTextControl; 19class BView; 20 21 22class InitializeBFSEditor : public BPartitionParameterEditor { 23public: 24 InitializeBFSEditor(); 25 virtual ~InitializeBFSEditor(); 26 27 virtual void SetTo(BPartition* partition); 28 29 virtual bool ValidateParameters() const; 30 virtual status_t ParameterChanged(const char* name, 31 const BVariant& variant); 32 33 virtual BView* View(); 34 35 virtual status_t GetParameters(BString& parameters); 36 37private: 38 void _CreateViewControls(); 39 40private: 41 BView* fView; 42 BTextControl* fNameControl; 43 BMenuField* fBlockSizeMenuField; 44 BCheckBox* fUseIndicesCheckBox; 45 BMenuItem* f1KBlockMenuItem; 46 BMenuItem* f2KBlockMenuItem; 47 BMenuItem* f4KBlockMenuItem; 48 BMenuItem* f8KBlockMenuItem; 49}; 50 51 52#endif //_INITIALIZE_PARAMETER_EDITOR 53