2009-07-21 00:29:16 +04:00
|
|
|
/*
|
2013-02-02 03:59:55 +04:00
|
|
|
* Copyright 2013, Axel Dörfler, axeld@pinc-software.de.
|
2009-07-21 00:29:16 +04:00
|
|
|
* Copyright 2009, Bryce Groff, brycegroff@gmail.com.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef _PARTITION_PARAMETER_EDITOR_H
|
|
|
|
#define _PARTITION_PARAMETER_EDITOR_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <View.h>
|
|
|
|
|
|
|
|
|
2013-02-02 03:59:55 +04:00
|
|
|
class BMessage;
|
|
|
|
class BPartition;
|
|
|
|
class BVariant;
|
|
|
|
|
|
|
|
|
2009-07-21 00:29:16 +04:00
|
|
|
class BPartitionParameterEditor {
|
|
|
|
public:
|
|
|
|
BPartitionParameterEditor();
|
|
|
|
virtual ~BPartitionParameterEditor();
|
|
|
|
|
2013-02-02 03:59:55 +04:00
|
|
|
virtual void SetTo(BPartition* partition);
|
|
|
|
|
|
|
|
void SetModificationMessage(BMessage* message);
|
|
|
|
BMessage* ModificationMessage() const;
|
2009-07-21 00:29:16 +04:00
|
|
|
|
|
|
|
virtual BView* View();
|
|
|
|
|
2013-02-02 03:59:55 +04:00
|
|
|
virtual bool ValidateParameters() const;
|
|
|
|
virtual status_t ParameterChanged(const char* name,
|
|
|
|
const BVariant& variant);
|
|
|
|
|
|
|
|
virtual status_t GetParameters(BString& parameters);
|
2009-07-21 00:29:16 +04:00
|
|
|
|
2013-02-02 03:59:55 +04:00
|
|
|
private:
|
|
|
|
BMessage* fModificationMessage;
|
2009-07-21 00:29:16 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2013-02-02 03:59:55 +04:00
|
|
|
#endif // _PARTITION_PARAMETER_EDITOR_H
|