xref: /haiku/src/preferences/keymap/KeymapListItem.h (revision 1d9d47fc72028bb71b5f232a877231e59cfe2438)
1 // ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
2 //
3 //	Copyright (c) 2004, Haiku
4 //
5 //  This software is part of the Haiku distribution and is covered
6 //  by the Haiku license.
7 //
8 //
9 //  File:        KeymapListItem.h
10 //  Author:      Sandor Vroemisse, Jérôme Duval
11 //  Description: Keymap Preferences
12 //  Created :    July 12, 2004
13 //
14 // ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
15 
16 /*
17  * A BStringItem modified such that it holds
18  * the BEntry object it corresponds with
19  */
20 
21 #ifndef KEYMAP_LIST_ITEM_H
22 #define KEYMAP_LIST_ITEM_H
23 
24 #include <ListItem.h>
25 #include <Entry.h>
26 
27 class KeymapListItem : public BStringItem {
28 public:
29 	KeymapListItem( entry_ref &keymap, const char* name = NULL);
30 	entry_ref & KeymapEntry() { return fKeymap; };
31 
32 protected:
33 	entry_ref	fKeymap;
34 };
35 
36 #endif //KEYMAP_LIST_ITEM_H
37