xref: /haiku/src/add-ons/disk_systems/btrfs/InitializeParameterEditor.h (revision 1712a3c957dd6644f35764806e556cb9d2ba16d1)
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  * Copyright 2019, Les De Ridder, les@lesderid.net
6  *
7  * Distributed under the terms of the MIT License.
8  */
9 #ifndef _INITIALIZE_PARAMETER_EDITOR
10 #define _INITIALIZE_PARAMETER_EDITOR
11 
12 
13 #include <PartitionParameterEditor.h>
14 #include <String.h>
15 
16 
17 class BCheckBox;
18 class BMenuField;
19 class BTextControl;
20 class BView;
21 
22 
23 class InitializeBTRFSEditor : public BPartitionParameterEditor {
24 public:
25 								InitializeBTRFSEditor();
26 	virtual						~InitializeBTRFSEditor();
27 
28 	virtual		void			SetTo(BPartition* partition);
29 
30 	virtual		bool			ValidateParameters() const;
31 	virtual		status_t		ParameterChanged(const char* name,
32 									const BVariant& variant);
33 
34 	virtual		BView*			View();
35 
36 	virtual		status_t		GetParameters(BString& parameters);
37 
38 private:
39 				void			_CreateViewControls();
40 
41 private:
42 				BView*			fView;
43 				BTextControl*	fNameControl;
44 
45 				BString			fParameters;
46 };
47 
48 
49 #endif //_INITIALIZE_PARAMETER_EDITOR
50