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. */ 22 class ChartView : public BView { 23 public: 24 ChartView(BRect frame); 25 virtual void Draw(BRect updateRect); 26 virtual void MouseDown(BPoint where); 27 }; 28 29 /* This view is used to draw the instant load vue-meter */ 30 class InstantView : public BView { 31 public: 32 int32 step; 33 34 InstantView(BRect frame); 35 virtual 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. */ 40 class ChartColorControl : public BColorControl { 41 public: 42 ChartColorControl(BPoint start, BMessage *message); 43 virtual void SetValue(int32 color_value); 44 }; 45 46 #endif 47