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 virtual ~NormalPulseView(); 23 24 virtual void Draw(BRect rect); 25 virtual void Pulse(); 26 virtual void AttachedToWindow(); 27 28 void UpdateColors(BMessage *message); 29 30 private: 31 void DetermineVendorAndProcessor(); 32 void CalculateFontSizes(); 33 void DrawChip(BRect); 34 35 char fVendor[32], fProcessor[32]; 36 bigtime_t fPreviousTime; 37 ProgressBar **fProgressBars; 38 CPUButton **fCpuButtons; 39 int32 fCpuCount; 40 BBitmap* fBrandLogo; 41 42 BRect fChipRect; 43 }; 44 45 #endif 46