1 /* 2 * Copyright 2000, Georges-Edouard Berenger. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef _TEAM_BAR_MENU_ITEM_H_ 6 #define _TEAM_BAR_MENU_ITEM_H_ 7 8 9 #include "IconMenuItem.h" 10 11 12 class TeamBarMenuItem : public IconMenuItem { 13 public: 14 TeamBarMenuItem(BMenu* menu, BMessage* kill_team, team_id team, 15 BBitmap* icon, bool deleteIcon); 16 17 virtual ~TeamBarMenuItem(); 18 19 virtual void DrawContent(); 20 virtual void GetContentSize(float* width, float* height); 21 void DrawBar(bool force); 22 void BarUpdate(); 23 void Init(); 24 void Reset(char* name, team_id team, BBitmap* icon, bool deleteIcon); 25 26 double fUser; 27 double fKernel; 28 29 private: 30 team_id fTeamID; 31 team_usage_info fTeamUsageInfo; 32 bigtime_t fLastTime; 33 float fGrenze1; 34 float fGrenze2; 35 }; 36 37 38 #endif // _TEAM_BAR_MENU_ITEM_H_ 39