xref: /haiku/src/apps/pulse/NormalPulseView.h (revision 1a3518cf757c2da8006753f83962da5935bbc82b)
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 
34 		char fVendor[32], fProcessor[32];
35 		bigtime_t fPreviousTime;
36 		ProgressBar **fProgressBars;
37 		CPUButton **fCpuButtons;
38 		BBitmap *fCpuLogo;
39 		int32 fCpuCount;
40 		BBitmap* fBrandLogo;
41 
42 		float	fVendorFontSize, fProcessorFontSize;
43 };
44 
45 #endif
46