BTRFS: Implement BTree::Path and change _Find.
[haiku.git] / src / apps / pulse / NormalPulseView.h
blob765b1f8be3035a3cd7a90c81f7e31bac4ec17d6e
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
14 #include "PulseView.h"
15 #include "ProgressBar.h"
16 #include "CPUButton.h"
19 class NormalPulseView : public PulseView {
20 public:
21 NormalPulseView(BRect rect);
22 virtual ~NormalPulseView();
24 virtual void Draw(BRect rect);
25 virtual void Pulse();
26 virtual void AttachedToWindow();
28 void UpdateColors(BMessage *message);
30 private:
31 void DetermineVendorAndProcessor();
32 void CalculateFontSizes();
34 char fVendor[32], fProcessor[32];
35 bigtime_t fPreviousTime;
36 ProgressBar **fProgressBars;
37 CPUButton **fCpuButtons;
38 BBitmap *fCpuLogo;
39 int32 fCpuCount;
40 bool fHasBrandLogo;
42 float fVendorFontSize, fProcessorFontSize;
45 #endif