summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabbedarea.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-08-10 20:28:23 -0600
committerJared Adams <jaxad0127@gmail.com>2009-08-10 20:28:23 -0600
commit9af6e761373f25b56e815f1f75b44473474cf280 (patch)
tree4393f9297c892fc1289c29eb4753462554b498df /src/gui/widgets/tabbedarea.h
parent56865a2c98a589a1e530e296b1681e369e2ae48f (diff)
downloadmana-client-9af6e761373f25b56e815f1f75b44473474cf280.tar.gz
mana-client-9af6e761373f25b56e815f1f75b44473474cf280.tar.bz2
mana-client-9af6e761373f25b56e815f1f75b44473474cf280.tar.xz
mana-client-9af6e761373f25b56e815f1f75b44473474cf280.zip
Fix TabbedArea and ScrollArea to resize contents
Also remove that code from SkillDialog. I tried to do the same with ChatWindow, but it kept segfaulting. Will try again later.
Diffstat (limited to 'src/gui/widgets/tabbedarea.h')
-rw-r--r--src/gui/widgets/tabbedarea.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/widgets/tabbedarea.h b/src/gui/widgets/tabbedarea.h
index 29ba2f76..1b61b102 100644
--- a/src/gui/widgets/tabbedarea.h
+++ b/src/gui/widgets/tabbedarea.h
@@ -23,6 +23,7 @@
#define TABBEDAREA_H
#include <guichan/widget.hpp>
+#include <guichan/widgetlistener.hpp>
#include <guichan/widgets/container.hpp>
#include <guichan/widgets/tabbedarea.hpp>
@@ -33,7 +34,7 @@ class Tab;
/**
* A tabbed area, the same as the guichan tabbed area in 0.8, but extended
*/
-class TabbedArea : public gcn::TabbedArea
+class TabbedArea : public gcn::TabbedArea, public gcn::WidgetListener
{
public:
/**
@@ -97,6 +98,8 @@ class TabbedArea : public gcn::TabbedArea
void setSelectedTab(gcn::Tab *tab);
+ void widgetResized(const gcn::Event &event);
+
private:
typedef std::vector< std::pair<gcn::Tab*, gcn::Widget*> > TabContainer;
};