1 /* 2 * Copyright 2000, Georges-Edouard Berenger. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef _THREAD_BAR_MENU_ITEM_H_ 6 #define _THREAD_BAR_MENU_ITEM_H_ 7 8 9 #include <MenuItem.h> 10 11 12 class ThreadBarMenuItem : public BMenuItem { 13 public: 14 ThreadBarMenuItem(const char* title, thread_id thread, 15 BMenu* menu, BMessage* msg); 16 17 virtual void DrawContent(); 18 virtual void GetContentSize(float* width, float* height); 19 virtual void Highlight(bool on); 20 void DrawBar(bool force); 21 void BarUpdate(); 22 23 double fUser; 24 double fKernel; 25 26 private: 27 thread_id fThreadID; 28 thread_info fThreadInfo; 29 bigtime_t fLastTime; 30 float fGrenze1; 31 float fGrenze2; 32 }; 33 34 #endif // _THREAD_BAR_MENU_ITEM_H_ 35