1 /* 2 * Copyright 2000, Georges-Edouard Berenger. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 6 #ifndef _NOISE_BAR_MENU_ITEM_H_ 7 #define _NOISE_BAR_MENU_ITEM_H_ 8 9 #include <MenuItem.h> 10 11 12 class NoiseBarMenuItem : public BMenuItem { 13 public: 14 NoiseBarMenuItem(); 15 16 virtual void DrawContent(); 17 virtual void GetContentSize(float* width, float* height); 18 19 void DrawBar(bool force); 20 BusyWaiting()21 double BusyWaiting() const 22 { 23 return fBusyWaiting; 24 } 25 SetBusyWaiting(double busyWaiting)26 void SetBusyWaiting(double busyWaiting) 27 { 28 fBusyWaiting = busyWaiting; 29 } 30 SetLost(double lost)31 void SetLost(double lost) 32 { 33 fLost = lost; 34 } 35 36 private: 37 double fBusyWaiting; 38 double fLost; 39 float fGrenze1; 40 float fGrenze2; 41 }; 42 43 #endif // _NOISE_BAR_MENU_ITEM_H_ 44