1 //**************************************************************************************** 2 // 3 // File: PulseView.h 4 // 5 // Written by: David Ramsey and Daniel Switkin 6 // 7 // Copyright 1999, Be Incorporated 8 // 9 //**************************************************************************************** 10 11 #ifndef PULSEVIEW_H 12 #define PULSEVIEW_H 13 14 #include <interface/View.h> 15 #include <interface/PopUpMenu.h> 16 #include <interface/MenuItem.h> 17 18 19 class PulseView : public BView { 20 public: 21 PulseView(BRect rect, const char *name); 22 PulseView(BMessage *message); 23 ~PulseView(); 24 virtual void MouseDown(BPoint point); 25 void ChangeCPUState(BMessage *message); 26 27 protected: 28 void Init(); 29 void Update(); 30 31 BPopUpMenu *popupmenu; 32 BMenuItem *mode1, *mode2, *preferences, *about; 33 BMenuItem **cpu_menu_items; 34 35 const int32 kCPUCount; 36 37 double* cpu_times; 38 bigtime_t* prev_active; 39 bigtime_t prev_time; 40 }; 41 42 #endif 43