summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabbedarea.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-04-23 02:42:26 +0300
committerAndrei Karas <akaras@inbox.ru>2012-04-23 02:42:26 +0300
commita86324d5fb520823ecb35e828dfeccf9ac2bba81 (patch)
treea1b8fa4d37d718c28515e8ba6f4a0589094d1d49 /src/gui/widgets/tabbedarea.h
parent03e7901322461a881cc59fc321234e1efee0fa0e (diff)
downloadplus-a86324d5fb520823ecb35e828dfeccf9ac2bba81.tar.gz
plus-a86324d5fb520823ecb35e828dfeccf9ac2bba81.tar.bz2
plus-a86324d5fb520823ecb35e828dfeccf9ac2bba81.tar.xz
plus-a86324d5fb520823ecb35e828dfeccf9ac2bba81.zip
By default dont switch tabs by left/right keys.
Diffstat (limited to 'src/gui/widgets/tabbedarea.h')
-rw-r--r--src/gui/widgets/tabbedarea.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/widgets/tabbedarea.h b/src/gui/widgets/tabbedarea.h
index c36a3ab1d..85209691b 100644
--- a/src/gui/widgets/tabbedarea.h
+++ b/src/gui/widgets/tabbedarea.h
@@ -150,6 +150,9 @@ class TabbedArea : public gcn::TabbedArea, public gcn::WidgetListener
void keyPressed(gcn::KeyEvent& keyEvent);
+ void setBlockSwitching(bool b)
+ { mBlockSwitching = b; }
+
private:
typedef std::vector< std::pair<gcn::Tab*, gcn::Widget*> > TabContainer;
@@ -193,6 +196,7 @@ class TabbedArea : public gcn::TabbedArea, public gcn::WidgetListener
bool mEnableScrollButtons;
int mRightMargin;
bool mFollowDownScroll;
+ bool mBlockSwitching;
};
#endif