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_H_ 6 #define _THREAD_BAR_MENU_H_ 7 8 9 #include <Menu.h> 10 11 12 typedef struct { 13 thread_id thread; 14 int last_round; 15 } ThreadRec; 16 17 class ThreadBarMenu : public BMenu { 18 public: 19 ThreadBarMenu(const char *title, team_id team, int32 threadCount); 20 virtual ~ThreadBarMenu(); 21 virtual void AttachedToWindow(); 22 virtual void Draw(BRect updateRect); 23 void AddNew(); 24 void Update(); 25 void Init(); 26 void Reset(team_id team); 27 28 private: 29 ThreadRec* fThreadsRec; 30 int fThreadsRecCount; 31 team_id fTeam; 32 int fRound; 33 }; 34 35 #endif // _THREAD_BAR_MENU_H_ 36