From 4193299e2e05d40477a50e5cb0fcc906227f53a2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 15 Apr 2012 18:01:03 +0300 Subject: Split input settings tab to categories. --- src/gui/widgets/tabstrip.cpp | 5 +++++ src/gui/widgets/tabstrip.h | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'src/gui/widgets') diff --git a/src/gui/widgets/tabstrip.cpp b/src/gui/widgets/tabstrip.cpp index 6dcf02008..6b3f42fe9 100644 --- a/src/gui/widgets/tabstrip.cpp +++ b/src/gui/widgets/tabstrip.cpp @@ -32,6 +32,11 @@ TabStrip::TabStrip(std::string group, int height, int spacing) : { } +TabStrip::TabStrip(int height, int spacing) : + WidgetGroup("", height, spacing) +{ +} + gcn::Widget *TabStrip::createWidget(std::string text) { Button *widget = new Button(); diff --git a/src/gui/widgets/tabstrip.h b/src/gui/widgets/tabstrip.h index 588833606..078845b39 100644 --- a/src/gui/widgets/tabstrip.h +++ b/src/gui/widgets/tabstrip.h @@ -29,7 +29,9 @@ class TabStrip : public WidgetGroup { public: - TabStrip(std::string group, int height, int spacing); + TabStrip(std::string group, int height, int spacing = 0); + + TabStrip(int height, int spacing = 0); gcn::Widget *createWidget(std::string name); -- cgit v1.2.3-70-g09d2