1/*
2	ProcessController © 2000, Georges-Edouard Berenger, All Rights Reserved.
3	Copyright (C) 2004 beunited.org
4
5	This library is free software; you can redistribute it and/or
6	modify it under the terms of the GNU Lesser General Public
7	License as published by the Free Software Foundation; either
8	version 2.1 of the License, or (at your option) any later version.
9
10	This library is distributed in the hope that it will be useful,
11	but WITHOUT ANY WARRANTY; without even the implied warranty of
12	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13	Lesser General Public License for more details.
14
15	You should have received a copy of the GNU Lesser General Public
16	License along with this library; if not, write to the Free Software
17	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18*/
19#ifndef _THREAD_BAR_MENU_H_
20#define _THREAD_BAR_MENU_H_
21
22
23#include <Menu.h>
24
25
26typedef struct {
27	thread_id	thread;
28	int			last_round;
29} ThreadRec;
30
31class ThreadBarMenu : public BMenu {
32	public:
33						ThreadBarMenu(const char *title, team_id team, int32 threadCount);
34		virtual			~ThreadBarMenu();
35		virtual	void	AttachedToWindow();
36		virtual void	Draw(BRect updateRect);
37		void			AddNew();
38		void			Update();
39		void			Init();
40		void			Reset(team_id team);
41
42	private:
43		ThreadRec*		fThreadsRec;
44		int				fThreadsRecCount;
45		team_id			fTeam;
46		int				fRound;
47};
48
49#endif // _THREAD_BAR_MENU_H_
50