xref: /haiku/src/add-ons/disk_systems/bfs/InitializeParameterEditor.h (revision 4a55cc230cf7566cadcbb23b1928eefff8aea9a2)
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 BMenuItem;
18 class BTextControl;
19 class BView;
20 
21 
22 class InitializeBFSEditor : public BPartitionParameterEditor {
23 public:
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 
37 private:
38 				void			_CreateViewControls();
39 
40 private:
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