xref: /haiku/src/preferences/sounds/HEventList.h (revision 1214ef1b2100f2b3299fc9d8d6142e46f70a4c3f)
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:        HEventList.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 __HEVENTLIST_H__
17 #define __HEVENTLIST_H__
18 
19 #include <ListView.h>
20 #include "HEventItem.h"
21 
22 enum{
23 	M_EVENT_CHANGED = 'SCAG'
24 };
25 
26 class HEventList : public BListView {
27 public:
28 					HEventList(BRect rect
29 						, const char* name="EventList");
30 		virtual			~HEventList();
31 				void	RemoveAll();
32 				void	SetType(const char* type);
33 				void	SetPath(const char* path);
34 protected:
35 		virtual void	SelectionChanged();
36 private:
37 		char			*fType;
38 };
39 #endif
40