1/*
2
3	ChartView.h
4
5	by Pierre Raynaud-Richard.
6
7*/
8
9/*
10	Copyright 1999, Be Incorporated.   All Rights Reserved.
11	This file may be used under the terms of the Be Sample Code License.
12*/
13
14#ifndef CHART_VIEW_H
15#define CHART_VIEW_H
16
17#include <View.h>
18#include <ColorControl.h>
19
20/* This view used for the star animation area. It just need to know how
21   to draw and handle mouse down event. */
22class ChartView : public BView {
23public:
24					ChartView(BRect frame);
25virtual	void		Draw(BRect updateRect);
26virtual	void		MouseDown(BPoint where);
27};
28
29/* This view is used to draw the instant load vue-meter */
30class InstantView : public BView {
31public:
32	int32			step;
33
34					InstantView(BRect frame);
35virtual void		Draw(BRect updateRect);
36};
37
38/* This view is used to work around a bug in the current ColorControl,
39   that doesn't allow live feedback when changing the color. */
40class ChartColorControl : public BColorControl {
41public:
42						ChartColorControl(BPoint start, BMessage *message);
43virtual	void			SetValue(int32 color_value);
44};
45
46#endif
47