summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabbedarea.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-08 04:44:27 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-08 04:44:27 +0300
commita54c5dfccb56dc8996f5c7b2a2299a2cb2257f08 (patch)
treed37693f68ca33da31d01bdf84f75d686acd99a64 /src/gui/widgets/tabbedarea.h
parentbe881476350ab5f4202e687ad4161099870fe5a4 (diff)
downloadmv-a54c5dfccb56dc8996f5c7b2a2299a2cb2257f08.tar.gz
mv-a54c5dfccb56dc8996f5c7b2a2299a2cb2257f08.tar.bz2
mv-a54c5dfccb56dc8996f5c7b2a2299a2cb2257f08.tar.xz
mv-a54c5dfccb56dc8996f5c7b2a2299a2cb2257f08.zip
Add ability to tabbedarea follow vertical scrroll bar position with max value.
Diffstat (limited to 'src/gui/widgets/tabbedarea.h')
-rw-r--r--src/gui/widgets/tabbedarea.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/widgets/tabbedarea.h b/src/gui/widgets/tabbedarea.h
index 0c2903777..b48f83240 100644
--- a/src/gui/widgets/tabbedarea.h
+++ b/src/gui/widgets/tabbedarea.h
@@ -139,6 +139,12 @@ class TabbedArea : public gcn::TabbedArea, public gcn::WidgetListener
int getRightMargin()
{ return mRightMargin; }
+ void setFollowDownScroll(bool n)
+ { mFollowDownScroll = n; }
+
+ bool getFollowDownScroll()
+ { return mFollowDownScroll; }
+
private:
typedef std::vector< std::pair<gcn::Tab*, gcn::Widget*> > TabContainer;
@@ -181,6 +187,7 @@ class TabbedArea : public gcn::TabbedArea, public gcn::WidgetListener
bool mEnableScrollButtons;
int mRightMargin;
+ bool mFollowDownScroll;
};
#endif