1/*
2 * Copyright 2003-2010 Haiku Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 *
5 * Authors:
6 *		Jérôme Duval
7 *		Oliver Ruiz Dorantes
8 *		Atsushi Takamatsu
9 */
10#ifndef __HWINDOW_H__
11#define __HWINDOW_H__
12
13
14#include <Window.h>
15#include <FilePanel.h>
16#include <FileGameSound.h>
17
18
19class HEventList;
20class HTypeList;
21
22
23enum{
24	M_PLAY_MESSAGE = 'MPLM',
25	M_STOP_MESSAGE = 'MSTO',
26	M_REMOVE_MESSAGE = 'MREM',
27	M_ITEM_MESSAGE = 'MITE',
28	M_OTHER_MESSAGE = 'MOTH',
29	M_NONE_MESSAGE = 'MNON',
30	M_ADD_EVENT = 'MADE',
31	M_REMOVE_EVENT = 'MREE',
32	M_OPEN_WITH = 'MOPW'
33};
34
35
36class HWindow : public BWindow {
37public:
38								HWindow(BRect rect, const char* name);
39	virtual						~HWindow();
40
41	virtual	void				MessageReceived(BMessage* message);
42	virtual	bool				QuitRequested();
43	virtual	void				DispatchMessage(BMessage* message,
44									BHandler* handler);
45			void				InitGUI();
46			void				SetupMenuField();
47			void				Pulse();
48
49private:
50			HEventList*			fEventList;
51			BFilePanel*			fFilePanel;
52			BFileGameSound*		fPlayer;
53			BRect				fFrame;
54};
55
56
57#endif	// __HWINDOW_H__
58