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 <MenuItem.h> 10 11 class BBitmap; 12 13 14 class TeamBarMenuItem : public BMenuItem { 15 public: 16 TeamBarMenuItem(BMenu* menu, BMessage* kill_team, team_id team, 17 BBitmap* icon, bool deleteIcon); 18 19 virtual ~TeamBarMenuItem(); 20 21 virtual void DrawContent(); 22 virtual void GetContentSize(float* width, float* height); 23 void DrawIcon(); 24 void DrawBar(bool force); 25 void BarUpdate(); 26 void Init(); 27 void Reset(char* name, team_id team, BBitmap* icon, bool deleteIcon); 28 29 double fUser; 30 double fKernel; 31 32 private: 33 team_id fTeamID; 34 BBitmap* fIcon; 35 team_usage_info fTeamUsageInfo; 36 bigtime_t fLastTime; 37 float fGrenze1; 38 float fGrenze2; 39 bool fDeleteIcon; 40 }; 41 42 43 #endif // _TEAM_BAR_MENU_ITEM_H_ 44