1ed7a3501SAxel Dörfler/*
2a12827f2SAxel Dörfler	ProcessController �� 2000, Georges-Edouard Berenger, All Rights Reserved.
3ed7a3501SAxel Dörfler	Copyright (C) 2004 beunited.org
4ed7a3501SAxel Dörfler
5ed7a3501SAxel Dörfler	This library is free software; you can redistribute it and/or
6ed7a3501SAxel Dörfler	modify it under the terms of the GNU Lesser General Public
7ed7a3501SAxel Dörfler	License as published by the Free Software Foundation; either
8ed7a3501SAxel Dörfler	version 2.1 of the License, or (at your option) any later version.
9ed7a3501SAxel Dörfler
10ed7a3501SAxel Dörfler	This library is distributed in the hope that it will be useful,
11ed7a3501SAxel Dörfler	but WITHOUT ANY WARRANTY; without even the implied warranty of
12ed7a3501SAxel Dörfler	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13ed7a3501SAxel Dörfler	Lesser General Public License for more details.
14ed7a3501SAxel Dörfler
15ed7a3501SAxel Dörfler	You should have received a copy of the GNU Lesser General Public
16ed7a3501SAxel Dörfler	License along with this library; if not, write to the Free Software
17ed7a3501SAxel Dörfler	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18ed7a3501SAxel Dörfler*/
19ed7a3501SAxel Dörfler#ifndef _TEAM_BAR_MENU_H_
20ed7a3501SAxel Dörfler#define _TEAM_BAR_MENU_H_
21ed7a3501SAxel Dörfler
22a12827f2SAxel Dörfler
23a12827f2SAxel Dörfler#include "Utilities.h"
24ed7a3501SAxel Dörfler
25ed7a3501SAxel Dörfler#include <Menu.h>
26ed7a3501SAxel Dörfler
27a12827f2SAxel Dörfler
28ed7a3501SAxel Dörflerclass TeamBarMenuItem;
29ed7a3501SAxel Dörfler
30ed7a3501SAxel Dörflertypedef struct {
31ed7a3501SAxel Dörfler	TeamBarMenuItem*	item;
32ed7a3501SAxel Dörfler	int					index;
33ed7a3501SAxel Dörfler} TRecycleItem;
34ed7a3501SAxel Dörfler
35a12827f2SAxel Dörfler
36a12827f2SAxel Dörflerclass TeamBarMenu : public BMenu {
37a12827f2SAxel Dörfler	public:
38a12827f2SAxel Dörfler						TeamBarMenu(const char* title, info_pack* infos, int32 teamCount);
39a12827f2SAxel Dörfler		virtual			~TeamBarMenu();
40a12827f2SAxel Dörfler
41a12827f2SAxel Dörfler		virtual	void	Draw(BRect updateRect);
42a12827f2SAxel Dörfler		virtual	void	Pulse();
43a12827f2SAxel Dörfler
44a12827f2SAxel Dörfler		team_id*		fTeamList;
45a12827f2SAxel Dörfler		int				fTeamCount;
46a12827f2SAxel Dörfler		TRecycleItem*	fRecycleList;
47a12827f2SAxel Dörfler		int				fRecycleCount;
48a12827f2SAxel Dörfler		bigtime_t		fLastTotalTime;
49a12827f2SAxel Dörfler		bool			fFirstShow;
50ed7a3501SAxel Dörfler};
51ed7a3501SAxel Dörfler
52ed7a3501SAxel Dörfler#endif // _TEAM_BAR_MENU_H_
53