summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabbedarea.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-06-17 11:50:08 +0300
committerAndrei Karas <akaras@inbox.ru>2013-06-17 11:50:08 +0300
commit7c2c9f4478aa41a850b01480a8278b325f5b0f95 (patch)
tree30c2ae80304cc73bb013e262f124ae472373b81e /src/gui/widgets/tabbedarea.h
parentc106b4914a09fae969f8cb1205b9286dd2beb0e7 (diff)
downloadplus-7c2c9f4478aa41a850b01480a8278b325f5b0f95.tar.gz
plus-7c2c9f4478aa41a850b01480a8278b325f5b0f95.tar.bz2
plus-7c2c9f4478aa41a850b01480a8278b325f5b0f95.tar.xz
plus-7c2c9f4478aa41a850b01480a8278b325f5b0f95.zip
improve tabbedarea.
Diffstat (limited to 'src/gui/widgets/tabbedarea.h')
-rw-r--r--src/gui/widgets/tabbedarea.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/gui/widgets/tabbedarea.h b/src/gui/widgets/tabbedarea.h
index b30b9cb85..3301ad2a8 100644
--- a/src/gui/widgets/tabbedarea.h
+++ b/src/gui/widgets/tabbedarea.h
@@ -83,7 +83,7 @@ class TabbedArea final : public Widget2,
/**
* Returns the widget for the current tab
*/
- gcn::Widget *getCurrentWidget() A_WARN_UNUSED;
+ gcn::Widget *getCurrentWidget() const A_WARN_UNUSED;
/**
* Add a tab. Overridden since it needs to size the widget.
@@ -91,18 +91,18 @@ class TabbedArea final : public Widget2,
* @param tab The tab widget for the tab.
* @param widget The widget to view when the tab is selected.
*/
- void addTab(Tab *tab, gcn::Widget *widget);
+ void addTab(Tab *const tab, gcn::Widget *const widget);
void addTab(const std::string &caption, gcn::Widget *const widget);
- bool isTabSelected(unsigned int index) const A_WARN_UNUSED;
+ bool isTabSelected(const unsigned int index) const A_WARN_UNUSED;
- bool isTabSelected(Tab* tab) A_WARN_UNUSED;
+ bool isTabSelected(Tab *const tab) const A_WARN_UNUSED;
/**
* Overload the remove tab function as it's broken in guichan 0.8.
*/
- void removeTab(Tab *tab);
+ void removeTab(Tab *const tab);
void removeAll();
@@ -114,16 +114,16 @@ class TabbedArea final : public Widget2,
int getContainerHeight() const A_WARN_UNUSED
{ return mWidgetContainer->getHeight(); }
- void setSelectedTab(Tab *tab);
+ void setSelectedTab(Tab *const tab);
- void setSelectedTab(unsigned int index);
+ void setSelectedTab(const unsigned int index);
int getSelectedTabIndex() const A_WARN_UNUSED;
- Tab* getSelectedTab() A_WARN_UNUSED
+ Tab* getSelectedTab() const A_WARN_UNUSED
{ return mSelectedTab; }
- void setOpaque(bool opaque)
+ void setOpaque(const bool opaque)
{ mOpaque = opaque; }
bool isOpaque() const A_WARN_UNUSED
@@ -131,7 +131,7 @@ class TabbedArea final : public Widget2,
void adjustSize();
- void setSelectedTabByPos(int tab);
+ void setSelectedTabByPos(const int tab);
void setSelectedTabByName(const std::string &name);
@@ -152,13 +152,13 @@ class TabbedArea final : public Widget2,
void enableScrollButtons(const bool enable);
- void setRightMargin(int n)
+ void setRightMargin(const int n)
{ mRightMargin = n; }
int getRightMargin() const A_WARN_UNUSED
{ return mRightMargin; }
- void setFollowDownScroll(bool n)
+ void setFollowDownScroll(const bool n)
{ mFollowDownScroll = n; }
bool getFollowDownScroll() const A_WARN_UNUSED
@@ -169,7 +169,7 @@ class TabbedArea final : public Widget2,
void keyPressed(gcn::KeyEvent& keyEvent) override;
- void setBlockSwitching(bool b)
+ void setBlockSwitching(const bool b)
{ mBlockSwitching = b; }
void setWidth(int width);