diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-01 23:59:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-02 01:42:48 +0300 |
commit | 8aa68056aec80c775a3ddb152bea8a90a7097199 (patch) | |
tree | 2a131c77e27ea4d5a7a3e3d5102f0bbc12957569 /src/actions | |
parent | 96805601e06e6ed6f7b5aaffc3bbb22dd9e8d58a (diff) | |
download | plus-8aa68056aec80c775a3ddb152bea8a90a7097199.tar.gz plus-8aa68056aec80c775a3ddb152bea8a90a7097199.tar.bz2 plus-8aa68056aec80c775a3ddb152bea8a90a7097199.tar.xz plus-8aa68056aec80c775a3ddb152bea8a90a7097199.zip |
Add actions for switch to next/prev tab in inventory.
Keys not assigned.
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/tabs.cpp | 13 | ||||
-rw-r--r-- | src/actions/tabs.h | 2 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/actions/tabs.cpp b/src/actions/tabs.cpp index 7ede6e428..eabbd4126 100644 --- a/src/actions/tabs.cpp +++ b/src/actions/tabs.cpp @@ -22,6 +22,7 @@ #include "actions/actiondef.h" +#include "gui/windows/inventorywindow.h" #include "gui/windows/socialwindow.h" #include "gui/windows/shortcutwindow.h" @@ -92,4 +93,16 @@ impHandler0(prevCommandsTab) return false; } +impHandler0(nextInvTab) +{ + InventoryWindow::nextTab(); + return true; +} + +impHandler0(prevInvTab) +{ + InventoryWindow::prevTab(); + return true; +} + } // namespace Actions diff --git a/src/actions/tabs.h b/src/actions/tabs.h index 89468d67f..74b45cf71 100644 --- a/src/actions/tabs.h +++ b/src/actions/tabs.h @@ -33,6 +33,8 @@ namespace Actions decHandler(prevShortcutsTab); decHandler(nextCommandsTab); decHandler(prevCommandsTab); + decHandler(nextInvTab); + decHandler(prevInvTab); } // namespace Actions #undef decHandler |