From 35d0dbde1ddfda0a05c7607265c53d430ee3d3d0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 21 Aug 2014 12:42:59 +0300 Subject: Add support for buttons in shortcutwindow. --- src/gui/windows/shortcutwindow.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gui/windows/shortcutwindow.h') 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 mPages; + int mButtonIndex; static int mBoxesWidth; }; -- cgit v1.2.3-60-g2f50