xref: /haiku/src/add-ons/disk_systems/bfs/InitializeParameterEditor.h (revision 0d452c8f34013b611a54c746a71c05e28796eae2)
1 /*
2  * Copyright 2009-2010, Stephan Aßmus <superstippi@gmx.de>
3  * Copyright 2009, Bryce Groff, brycegroff@gmail.com.
4  * Distributed under the terms of the MIT License.
5  */
6 #ifndef _INITIALIZE_PARAMETER_EDITOR
7 #define _INITIALIZE_PARAMETER_EDITOR
8 
9 
10 #include <PartitionParameterEditor.h>
11 #include <String.h>
12 
13 class BCheckBox;
14 class BMenuField;
15 class BTextControl;
16 class BView;
17 
18 
19 class InitializeBFSEditor : public BPartitionParameterEditor {
20 public:
21 								InitializeBFSEditor();
22 	virtual						~InitializeBFSEditor();
23 
24 	virtual		bool			FinishedEditing();
25 	virtual		BView*			View();
26 	virtual		status_t		GetParameters(BString* parameters);
27 
28 	virtual		status_t		PartitionNameChanged(const char* name);
29 
30 private:
31 				void			_CreateViewControls();
32 
33 				BView*			fView;
34 				BTextControl*	fNameTC;
35 				BMenuField*		fBlockSizeMF;
36 				BCheckBox*		fUseIndicesCB;
37 
38 				BString			fParameters;
39 };
40 
41 
42 #endif //_INITIALIZE_PARAMETER_EDITOR
43