1 /* 2 * Copyright 2013, Axel Dörfler, axeld@pinc-software.de. 3 * Copyright 2009, Bryce Groff, brycegroff@gmail.com. 4 * Distributed under the terms of the MIT License. 5 */ 6 #ifndef _PRIMARY_PARAMETER_EDITOR 7 #define _PRIMARY_PARAMETER_EDITOR 8 9 10 #include <PartitionParameterEditor.h> 11 12 #include <CheckBox.h> 13 #include <String.h> 14 #include <View.h> 15 16 17 class PrimaryPartitionEditor : public BPartitionParameterEditor { 18 public: 19 PrimaryPartitionEditor(bool create); 20 virtual ~PrimaryPartitionEditor(); 21 22 virtual void SetTo(BPartition* partition); 23 24 virtual BView* View(); 25 26 virtual status_t ParameterChanged(const char* name, 27 const BVariant& variant); 28 29 virtual status_t GetParameters(BString& parameters); 30 31 private: 32 bool fCreate; 33 BView* fView; 34 BCheckBox* fActiveCheckBox; 35 }; 36 37 38 #endif // _PRIMARY_PARAMETER_EDITOR 39