xref: /haiku/src/apps/debugger/user_interface/gui/teams_window/TeamsWindow.h (revision 2b76973fa2401f7a5edf68e6470f3d3210cbcff3)
1 /*
2  * Copyright 2009-2010, Philippe Houdoin, phoudoin@haiku-os.org. All rights reserved.
3  * Copyright 2013, Rene Gollent, rene@gollent.com.
4  * Distributed under the terms of the MIT License.
5  */
6 #ifndef TEAMS_WINDOW_H
7 #define TEAMS_WINDOW_H
8 
9 
10 #include <Window.h>
11 
12 class BButton;
13 class BListView;
14 class BFile;
15 class BMessage;
16 class SettingsManager;
17 class StartTeamWindow;
18 class TeamsListView;
19 
20 class TeamsWindow : public BWindow {
21 public:
22 								TeamsWindow(SettingsManager* settingsManager);
23 	virtual						~TeamsWindow();
24 
25 	static	TeamsWindow*		Create(SettingsManager* settingsManager);
26 									// throws
27 
28 	virtual	void				Zoom(BPoint origin, float width, float height);
29 	virtual void				MessageReceived(BMessage* message);
30 	virtual bool				QuitRequested();
31 
32 private:
33 			void				_Init();
34 			status_t			_OpenSettings(BFile& file, uint32 mode);
35 			status_t			_LoadSettings(BMessage& settings);
36 			status_t			_SaveSettings();
37 
38 private:
39 			team_id				fCurrentTeam;
40 			TeamsListView*		fTeamsListView;
41 			StartTeamWindow*	fStartTeamWindow;
42 			BButton*			fAttachTeamButton;
43 			BButton*			fCreateTeamButton;
44 			SettingsManager*	fSettingsManager;
45 
46 };
47 
48 
49 #endif	// TEAMS_WINDOW_H
50