summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabbedarea.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-03-19 05:50:44 +0200
committerAndrei Karas <akaras@inbox.ru>2011-03-19 06:16:10 +0200
commit3f1a475c6cb6501a06efc7d5d62cecc104faee26 (patch)
treeab5b74c48a90f9fede05ad148204411c9db2f4c4 /src/gui/widgets/tabbedarea.h
parent1ea14cd03b6172681a3dff0b31d4088af3b1b5eb (diff)
downloadplus-3f1a475c6cb6501a06efc7d5d62cecc104faee26.tar.gz
plus-3f1a475c6cb6501a06efc7d5d62cecc104faee26.tar.bz2
plus-3f1a475c6cb6501a06efc7d5d62cecc104faee26.tar.xz
plus-3f1a475c6cb6501a06efc7d5d62cecc104faee26.zip
Add flag to enable or disable scroll buttons in tabbed area.
Also add not working right margin to tabbed area.
Diffstat (limited to 'src/gui/widgets/tabbedarea.h')
-rw-r--r--src/gui/widgets/tabbedarea.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gui/widgets/tabbedarea.h b/src/gui/widgets/tabbedarea.h
index e5a00e277..0c2903777 100644
--- a/src/gui/widgets/tabbedarea.h
+++ b/src/gui/widgets/tabbedarea.h
@@ -51,6 +51,8 @@ class TabbedArea : public gcn::TabbedArea, public gcn::WidgetListener
*/
TabbedArea();
+ ~TabbedArea();
+
/**
* Draw the tabbed area.
*/
@@ -129,6 +131,14 @@ class TabbedArea : public gcn::TabbedArea, public gcn::WidgetListener
void mousePressed(gcn::MouseEvent &mouseEvent);
+ void enableScrollButtons(bool enable);
+
+ void setRightMargin(int n)
+ { mRightMargin = n; }
+
+ int getRightMargin()
+ { return mRightMargin; }
+
private:
typedef std::vector< std::pair<gcn::Tab*, gcn::Widget*> > TabContainer;
@@ -168,6 +178,9 @@ class TabbedArea : public gcn::TabbedArea, public gcn::WidgetListener
* @note the index must start at 0.
*/
unsigned mTabScrollIndex;
+
+ bool mEnableScrollButtons;
+ int mRightMargin;
};
#endif