1/*
2 * Copyright 2006, Haiku.
3 * Distributed under the terms of the MIT License.
4 *
5 * Authors:
6 *		Stephan Aßmus <superstippi@gmx.de>
7 */
8
9#ifndef OPTION_VALUE_VIEW_H
10#define OPTION_VALUE_VIEW_H
11
12#include <String.h>
13
14#include "OptionProperty.h"
15#include "PropertyEditorView.h"
16
17class OptionValueView : public PropertyEditorView {
18 public:
19								OptionValueView(OptionProperty* property);
20	virtual						~OptionValueView();
21
22	virtual	void				Draw(BRect updateRect);
23	virtual	void				FrameResized(float width, float height);
24
25	virtual	void				MakeFocus(bool focused);
26
27	virtual	void				MessageReceived(BMessage* message);
28
29	virtual	void				MouseDown(BPoint where);
30	virtual	void				KeyDown(const char* bytes, int32 numBytes);
31
32	virtual	void				SetEnabled(bool enabled);
33
34	virtual	void				ValueChanged();
35
36	virtual	bool				AdoptProperty(Property* property);
37	virtual	Property*			GetProperty() const;
38
39 private:
40			OptionProperty*		fProperty;
41
42			BString				fCurrentOption;
43			bool				fEnabled;
44};
45
46#endif // OPTION_VALUE_VIEW_H
47
48
49