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