diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-16 22:57:39 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-16 22:57:39 +0200 |
commit | 576972fb768b0e43d41bada49ad88c6431494f10 (patch) | |
tree | 755420a6c566a748233c06310062ea2cdfa280da /src/gui/widgets/tabbedarea.h | |
parent | c6b4edf8cc635ddcb2a8b3c0cef38dd88fa73768 (diff) | |
parent | a0f7bc231d9c348ba86248dd8d0adfddbce453f7 (diff) | |
download | mana-client-576972fb768b0e43d41bada49ad88c6431494f10.tar.gz mana-client-576972fb768b0e43d41bada49ad88c6431494f10.tar.bz2 mana-client-576972fb768b0e43d41bada49ad88c6431494f10.tar.xz mana-client-576972fb768b0e43d41bada49ad88c6431494f10.zip |
Merge branch '0.0.29'
Diffstat (limited to 'src/gui/widgets/tabbedarea.h')
-rw-r--r-- | src/gui/widgets/tabbedarea.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/gui/widgets/tabbedarea.h b/src/gui/widgets/tabbedarea.h index b4fc1ded..6aaafe16 100644 --- a/src/gui/widgets/tabbedarea.h +++ b/src/gui/widgets/tabbedarea.h @@ -47,45 +47,45 @@ class TabbedArea : public gcn::TabbedArea void draw(gcn::Graphics *graphics); /** - * Return how many tabs have been created + * Return how many tabs have been created. + * + * @todo Remove this method when upgrading to Guichan 0.9.0 */ - int getNumberOfTabs(); + int getNumberOfTabs() const; /** - * Return tab with specified name as caption + * Return tab with specified name as caption. */ - Tab* getTab(const std::string &name); + Tab *getTab(const std::string &name) const; /** * Returns the widget with the tab that has specified caption */ - gcn::Widget* getWidget(const std::string &name); + gcn::Widget *getWidget(const std::string &name) const; + + using gcn::TabbedArea::addTab; /** - * Add a tab + * Add a tab. Overridden since it needs to create an instance of Tab + * instead of gcn::Tab. + * * @param caption The Caption to display * @param widget The widget to show when tab is selected */ void addTab(const std::string &caption, gcn::Widget *widget); /** - * Add a tab - * @param tab The tab - * @param widget The widget to display - */ - void addTab(Tab *tab, gcn::Widget *widget); - - /** - * Overload the remove tab function as its broken in guichan 0.8 + * Overload the remove tab function as it's broken in guichan 0.8. */ void removeTab(Tab *tab); /** - * Overload the logic function since it's broken in guichan 0.8 + * Overload the logic function since it's broken in guichan 0.8. */ void logic(); - int getContainerHeight() { return mWidgetContainer->getHeight(); } + int getContainerHeight() const + { return mWidgetContainer->getHeight(); } void setSelectedTab(unsigned int index) { gcn::TabbedArea::setSelectedTab(index); } |