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_H_ 6 #define _TEAM_BAR_MENU_H_ 7 8 9 #include "Utilities.h" 10 11 #include <Menu.h> 12 13 14 class TeamBarMenuItem; 15 16 typedef struct { 17 TeamBarMenuItem* item; 18 int index; 19 } TRecycleItem; 20 21 22 class TeamBarMenu : public BMenu { 23 public: 24 TeamBarMenu(const char* title, info_pack* infos, int32 teamCount); 25 virtual ~TeamBarMenu(); 26 27 virtual void Draw(BRect updateRect); 28 virtual void Pulse(); 29 30 team_id* fTeamList; 31 int fTeamCount; 32 TRecycleItem* fRecycleList; 33 int fRecycleCount; 34 bigtime_t fLastTotalTime; 35 bool fFirstShow; 36 }; 37 38 #endif // _TEAM_BAR_MENU_H_ 39