diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-21 12:42:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-21 12:42:59 +0300 |
commit | 35d0dbde1ddfda0a05c7607265c53d430ee3d3d0 (patch) | |
tree | a46c1f53b668f10e72c0cd006ba315c1f00b042c /src/gui/windows/shortcutwindow.h | |
parent | 04bfd360ab78962aa49fa49246e285a06c8f8621 (diff) | |
download | manaverse-35d0dbde1ddfda0a05c7607265c53d430ee3d3d0.tar.gz manaverse-35d0dbde1ddfda0a05c7607265c53d430ee3d3d0.tar.bz2 manaverse-35d0dbde1ddfda0a05c7607265c53d430ee3d3d0.tar.xz manaverse-35d0dbde1ddfda0a05c7607265c53d430ee3d3d0.zip |
Add support for buttons in shortcutwindow.
Diffstat (limited to 'src/gui/windows/shortcutwindow.h')
-rw-r--r-- | src/gui/windows/shortcutwindow.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/windows/shortcutwindow.h b/src/gui/windows/shortcutwindow.h index 6a585745a..139db109e 100644 --- a/src/gui/windows/shortcutwindow.h +++ b/src/gui/windows/shortcutwindow.h @@ -72,6 +72,10 @@ class ShortcutWindow final : public Window void prevTab(); + void addButton(const std::string &text, + const std::string &eventName, + ActionListener *const listener); + #ifdef USE_PROFILER void logicChildren(); #endif @@ -83,6 +87,7 @@ class ShortcutWindow final : public Window ScrollArea *mScrollArea; TabbedArea *mTabs; std::vector<ShortcutContainer*> mPages; + int mButtonIndex; static int mBoxesWidth; }; |