xref: /haiku/src/preferences/sounds/HWindow.h (revision 4f00613311d0bd6b70fa82ce19931c41f071ea4e)
1 // ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
2 //
3 //	Copyright (c) 2003, OpenBeOS
4 //
5 //  This software is part of the OpenBeOS distribution and is covered
6 //  by the OpenBeOS license.
7 //
8 //
9 //  File:        HWindow.h
10 //  Author:      Jérôme Duval, Oliver Ruiz Dorantes, Atsushi Takamatsu
11 //  Description: Sounds Preferences
12 //  Created :    November 24, 2003
13 //
14 // ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
15 
16 #ifndef __HWINDOW_H__
17 #define __HWINDOW_H__
18 
19 #include <Window.h>
20 #include <FilePanel.h>
21 #include <FileGameSound.h>
22 
23 class HEventList;
24 class HTypeList;
25 
26 enum{
27 	M_PLAY_MESSAGE = 'MPLM',
28 	M_STOP_MESSAGE = 'MSTO',
29 	M_REMOVE_MESSAGE = 'MREM',
30 	M_ITEM_MESSAGE = 'MITE',
31 	M_OTHER_MESSAGE = 'MOTH',
32 	M_NONE_MESSAGE = 'MNON',
33 	M_ADD_EVENT = 'MADE',
34 	M_REMOVE_EVENT = 'MREE',
35 	M_OPEN_WITH = 'MOPW'
36 };
37 
38 class HWindow :public BWindow {
39 public:
40 						HWindow(BRect rect ,const char* name);
41 protected:
42 		virtual			~HWindow();
43 		virtual	void	MessageReceived(BMessage *message);
44 		virtual	bool	QuitRequested();
45 		virtual void	DispatchMessage(BMessage *message
46 										,BHandler *handler);
47 				void	InitGUI();
48 				void	SetupMenuField();
49 				void	Pulse();
50 private:
51 			//HTypeList*	fTypeList;
52 			HEventList*	fEventList;
53 		typedef	BWindow	_inherited;
54 			BFilePanel*	fFilePanel;
55 			BFileGameSound *fPlayer;
56 };
57 #endif
58