summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-04-15 18:01:03 +0300
committerAndrei Karas <akaras@inbox.ru>2012-04-15 18:01:03 +0300
commit4193299e2e05d40477a50e5cb0fcc906227f53a2 (patch)
tree973b96352f5bfdf0d6765f0e6388ec4fd955011c /src/gui/widgets
parent9fc07b15f1b051eecd662802162772804dc77b8e (diff)
downloadmanaplus-4193299e2e05d40477a50e5cb0fcc906227f53a2.tar.gz
manaplus-4193299e2e05d40477a50e5cb0fcc906227f53a2.tar.bz2
manaplus-4193299e2e05d40477a50e5cb0fcc906227f53a2.tar.xz
manaplus-4193299e2e05d40477a50e5cb0fcc906227f53a2.zip
Split input settings tab to categories.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/tabstrip.cpp5
-rw-r--r--src/gui/widgets/tabstrip.h4
2 files changed, 8 insertions, 1 deletions
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);