17f96148cSIngo Weinhold /* 244352255SAxel Dörfler * Copyright 2013, Axel Dörfler, axeld@pinc-software.de. 3035cb25eSStephan Aßmus * Copyright 2009-2010, Stephan Aßmus <superstippi@gmx.de> 47f96148cSIngo Weinhold * Copyright 2009, Bryce Groff, brycegroff@gmail.com. 57f96148cSIngo Weinhold * Distributed under the terms of the MIT License. 67f96148cSIngo Weinhold */ 77f96148cSIngo Weinhold #ifndef _INITIALIZE_PARAMETER_EDITOR 87f96148cSIngo Weinhold #define _INITIALIZE_PARAMETER_EDITOR 97f96148cSIngo Weinhold 107f96148cSIngo Weinhold 117f96148cSIngo Weinhold #include <PartitionParameterEditor.h> 127f96148cSIngo Weinhold #include <String.h> 13035cb25eSStephan Aßmus 1444352255SAxel Dörfler 15035cb25eSStephan Aßmus class BCheckBox; 16035cb25eSStephan Aßmus class BMenuField; 17*750afaefSJérôme Duval class BMenuItem; 18035cb25eSStephan Aßmus class BTextControl; 19035cb25eSStephan Aßmus class BView; 207f96148cSIngo Weinhold 217f96148cSIngo Weinhold 227f96148cSIngo Weinhold class InitializeBFSEditor : public BPartitionParameterEditor { 237f96148cSIngo Weinhold public: 247f96148cSIngo Weinhold InitializeBFSEditor(); 257f96148cSIngo Weinhold virtual ~InitializeBFSEditor(); 267f96148cSIngo Weinhold 2744352255SAxel Dörfler virtual void SetTo(BPartition* partition); 287f96148cSIngo Weinhold 2944352255SAxel Dörfler virtual bool ValidateParameters() const; 3044352255SAxel Dörfler virtual status_t ParameterChanged(const char* name, 3144352255SAxel Dörfler const BVariant& variant); 3244352255SAxel Dörfler 3344352255SAxel Dörfler virtual BView* View(); 3444352255SAxel Dörfler 3544352255SAxel Dörfler virtual status_t GetParameters(BString& parameters); 367f96148cSIngo Weinhold 377f96148cSIngo Weinhold private: 387f96148cSIngo Weinhold void _CreateViewControls(); 397f96148cSIngo Weinhold 4044352255SAxel Dörfler private: 417f96148cSIngo Weinhold BView* fView; 4244352255SAxel Dörfler BTextControl* fNameControl; 4344352255SAxel Dörfler BMenuField* fBlockSizeMenuField; 4444352255SAxel Dörfler BCheckBox* fUseIndicesCheckBox; 45*750afaefSJérôme Duval BMenuItem* f1KBlockMenuItem; 46*750afaefSJérôme Duval BMenuItem* f2KBlockMenuItem; 47*750afaefSJérôme Duval BMenuItem* f4KBlockMenuItem; 48*750afaefSJérôme Duval BMenuItem* f8KBlockMenuItem; 497f96148cSIngo Weinhold }; 507f96148cSIngo Weinhold 517f96148cSIngo Weinhold 527f96148cSIngo Weinhold #endif //_INITIALIZE_PARAMETER_EDITOR 53