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 COLOR_VALUE_VIEW_H
10#define COLOR_VALUE_VIEW_H
11
12#include "ColorProperty.h"
13#include "PropertyEditorView.h"
14
15class SwatchValueView;
16
17class ColorValueView : public PropertyEditorView {
18 public:
19								ColorValueView(ColorProperty* property);
20	virtual						~ColorValueView();
21
22	// BView interface
23	virtual	void				Draw(BRect updateRect);
24	virtual	void				FrameResized(float width, float height);
25
26	virtual	void				MakeFocus(bool focused);
27
28	virtual	void				MessageReceived(BMessage* message);
29
30	// PropertyEditorView interface
31	virtual	void				SetEnabled(bool enabled);
32	virtual	bool				IsFocused() const;
33
34	virtual	bool				AdoptProperty(Property* property);
35	virtual	Property*			GetProperty() const;
36
37 protected:
38			ColorProperty*		fProperty;
39
40			SwatchValueView*	fSwatchView;
41};
42
43#endif // COLOR_VALUE_VIEW_H
44
45
46