From 5662b7d9ad9eb6927df7ca83713d3b6108f59ddc Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Tue, 7 Jul 2009 11:23:14 -0600 Subject: Use tmw-skills.xml instead of hardcoding --- src/gui/widgets/tabbedarea.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/gui/widgets/tabbedarea.cpp') diff --git a/src/gui/widgets/tabbedarea.cpp b/src/gui/widgets/tabbedarea.cpp index 07f46a94..bb5ae9a4 100644 --- a/src/gui/widgets/tabbedarea.cpp +++ b/src/gui/widgets/tabbedarea.cpp @@ -69,6 +69,16 @@ gcn::Widget *TabbedArea::getWidget(const std::string &name) const return NULL; } +gcn::Widget *TabbedArea::getCurrentWidget() +{ + gcn::Tab *tab = getSelectedTab(); + + if (tab) + return getWidget(tab->getCaption()); + else + return NULL; +} + void TabbedArea::addTab(const std::string &caption, gcn::Widget *widget) { Tab *tab = new Tab; -- cgit v1.2.3-70-g09d2