1 //**************************************************************************************** 2 // 3 // File: NormalPulseView.h 4 // 5 // Written by: Daniel Switkin 6 // 7 // Copyright 1999, Be Incorporated 8 // 9 //**************************************************************************************** 10 11 #ifndef NORMALPULSEVIEW_H 12 #define NORMALPULSEVIEW_H 13 14 #include "PulseView.h" 15 #include "ProgressBar.h" 16 #include "CPUButton.h" 17 18 class NormalPulseView : public PulseView { 19 public: 20 NormalPulseView(BRect rect); 21 ~NormalPulseView(); 22 void Draw(BRect rect); 23 void Pulse(); 24 void AttachedToWindow(); 25 void UpdateColors(BMessage *message); 26 27 private: 28 int CalculateCPUSpeed(); 29 void DetermineVendorAndProcessor(); 30 31 char vendor[32], processor[32]; 32 bigtime_t prev_time; 33 ProgressBar **progress_bars; 34 CPUButton **cpu_buttons; 35 BBitmap *cpu_logo; 36 }; 37 38 #endif 39