blob: 792a66ca7f5839c8876a26f9d2a52ad3e2ccee0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#ifndef SHORTCUTMANAGER_HH
#define SHORTCUTMANAGER_HH
#include <map>
class FluxboxWindow;
class ShortcutManager {
public:
ShortcutManager();
void setLastPlaceHolderKey(unsigned int lastPlaceHolderKey_);
unsigned int getLastPlaceHolderKey();
void mapKeyToWindow(unsigned int key, FluxboxWindow* window);
void removeWindow(FluxboxWindow* window);
FluxboxWindow* getWindowForKey(unsigned int key);
private:
typedef std::map<unsigned int, FluxboxWindow*> KeyToWindowMap;
unsigned int m_last_placeholder_key;
KeyToWindowMap m_key_to_window_map;
};
#endif
|