xref: /haiku/src/add-ons/disk_systems/bfs/InitializeParameterEditor.h (revision 443522551e70c8a595525700b2b7b445db37865d)
17f96148cSIngo Weinhold /*
2*44352255SAxel 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 
14*44352255SAxel Dörfler 
15035cb25eSStephan Aßmus class BCheckBox;
16035cb25eSStephan Aßmus class BMenuField;
17035cb25eSStephan Aßmus class BTextControl;
18035cb25eSStephan Aßmus class BView;
197f96148cSIngo Weinhold 
207f96148cSIngo Weinhold 
217f96148cSIngo Weinhold class InitializeBFSEditor : public BPartitionParameterEditor {
227f96148cSIngo Weinhold public:
237f96148cSIngo Weinhold 								InitializeBFSEditor();
247f96148cSIngo Weinhold 	virtual						~InitializeBFSEditor();
257f96148cSIngo Weinhold 
26*44352255SAxel Dörfler 	virtual		void			SetTo(BPartition* partition);
277f96148cSIngo Weinhold 
28*44352255SAxel Dörfler 	virtual		bool			ValidateParameters() const;
29*44352255SAxel Dörfler 	virtual		status_t		ParameterChanged(const char* name,
30*44352255SAxel Dörfler 									const BVariant& variant);
31*44352255SAxel Dörfler 
32*44352255SAxel Dörfler 	virtual		BView*			View();
33*44352255SAxel Dörfler 
34*44352255SAxel Dörfler 	virtual		status_t		GetParameters(BString& parameters);
357f96148cSIngo Weinhold 
367f96148cSIngo Weinhold private:
377f96148cSIngo Weinhold 				void			_CreateViewControls();
387f96148cSIngo Weinhold 
39*44352255SAxel Dörfler private:
407f96148cSIngo Weinhold 				BView*			fView;
41*44352255SAxel Dörfler 				BTextControl*	fNameControl;
42*44352255SAxel Dörfler 				BMenuField*		fBlockSizeMenuField;
43*44352255SAxel Dörfler 				BCheckBox*		fUseIndicesCheckBox;
447f96148cSIngo Weinhold };
457f96148cSIngo Weinhold 
467f96148cSIngo Weinhold 
477f96148cSIngo Weinhold #endif //_INITIALIZE_PARAMETER_EDITOR
48