aboutsummaryrefslogtreecommitdiff
path: root/gui/widgets/tab.h
diff options
context:
space:
mode:
authorZerophase2014-04-06 19:56:55 -0500
committerZerophase2014-04-06 19:58:56 -0500
commit5c12e09ed1e2c2b83d74d824a941220b8faa11c9 (patch)
tree39528989c7a7b7839ad30baaa86441422676e212 /gui/widgets/tab.h
parent5df3c14eba68e299d270e773194608808adaa1ae (diff)
downloadscummvm-rg350-5c12e09ed1e2c2b83d74d824a941220b8faa11c9.tar.gz
scummvm-rg350-5c12e09ed1e2c2b83d74d824a941220b8faa11c9.tar.bz2
scummvm-rg350-5c12e09ed1e2c2b83d74d824a941220b8faa11c9.zip
GUI: Tab cycling handles multiple themes.
First visible tab moves up when a theme's width cannot fit another tab.
Diffstat (limited to 'gui/widgets/tab.h')
-rw-r--r--gui/widgets/tab.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/gui/widgets/tab.h b/gui/widgets/tab.h
index bf4176887c..a01ee2d9dc 100644
--- a/gui/widgets/tab.h
+++ b/gui/widgets/tab.h
@@ -28,6 +28,11 @@
#include "common/array.h"
namespace GUI {
+
+enum {
+ kTabForwards = 1,
+ kTabBackwards = -1
+};
class TabWidget : public Widget {
typedef Common::String String;
@@ -38,9 +43,6 @@ class TabWidget : public Widget {
typedef Common::Array<Tab> TabList;
protected:
- const int kMaxTabs = 5;
- const int kAheadTab = 1;
-
int _activeTab;
int _firstVisibleTab;
TabList _tabs;