1/*
2 * Copyright 2002-2015, Stephan Aßmus <superstippi@gmx.de>
3 * All rights reserved. Distributed under the terms of the MIT license.
4 *
5 */
6
7#ifndef COLOR_PICKER_PANEL_H
8#define COLOR_PICKER_PANEL_H
9
10#include "Panel.h"
11
12#include "SelectedColorMode.h"
13
14class ColorPickerView;
15
16class ColorPickerPanel : public Panel {
17public:
18								ColorPickerPanel(BRect frame,
19									rgb_color color,
20									SelectedColorMode mode = H_SELECTED,
21									BWindow* window = NULL,
22									BMessage* message = NULL,
23									BHandler* target = NULL);
24	virtual						~ColorPickerPanel();
25
26	// Panel interface
27	virtual	void				Cancel();
28
29	virtual	void				MessageReceived(BMessage* message);
30
31	// ColorPickerPanel
32			void				SetColor(rgb_color color);
33
34			void				SetMessage(BMessage* message);
35			void				SetTarget(BHandler* target);
36			const BHandler*		Target() const
37									{ return fTarget; }
38
39private:
40			ColorPickerView*	fColorPickerView;
41			BWindow*			fWindow;
42			BMessage*			fMessage;
43			BHandler*			fTarget;
44};
45
46#endif // COLOR_PICKER_PANEL_H
47