diff options
Diffstat (limited to 'src/ShortcutManager.hh')
-rw-r--r-- | src/ShortcutManager.hh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/ShortcutManager.hh b/src/ShortcutManager.hh new file mode 100644 index 0000000..792a66c --- /dev/null +++ b/src/ShortcutManager.hh | |||
@@ -0,0 +1,32 @@ | |||
1 | #ifndef SHORTCUTMANAGER_HH | ||
2 | #define SHORTCUTMANAGER_HH | ||
3 | |||
4 | #include <map> | ||
5 | |||
6 | class FluxboxWindow; | ||
7 | |||
8 | class ShortcutManager { | ||
9 | |||
10 | public: | ||
11 | |||
12 | ShortcutManager(); | ||
13 | |||
14 | void setLastPlaceHolderKey(unsigned int lastPlaceHolderKey_); | ||
15 | |||
16 | unsigned int getLastPlaceHolderKey(); | ||
17 | |||
18 | void mapKeyToWindow(unsigned int key, FluxboxWindow* window); | ||
19 | |||
20 | void removeWindow(FluxboxWindow* window); | ||
21 | |||
22 | FluxboxWindow* getWindowForKey(unsigned int key); | ||
23 | |||
24 | private: | ||
25 | |||
26 | typedef std::map<unsigned int, FluxboxWindow*> KeyToWindowMap; | ||
27 | |||
28 | unsigned int m_last_placeholder_key; | ||
29 | KeyToWindowMap m_key_to_window_map; | ||
30 | }; | ||
31 | |||
32 | #endif | ||