diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2007-02-27 16:39:17 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2007-02-27 16:39:17 +0000 |
commit | 7a6e4d3c87ca4d7cc851af47fd9ebb616168f4c9 (patch) | |
tree | a880298777fcbb47a897e45ce6344ddbdf61b210 /src/gui/tabbedcontainer.h | |
parent | ec72908d291fff37486a70d1624cfcece23b9bf7 (diff) | |
download | mana-7a6e4d3c87ca4d7cc851af47fd9ebb616168f4c9.tar.gz mana-7a6e4d3c87ca4d7cc851af47fd9ebb616168f4c9.tar.bz2 mana-7a6e4d3c87ca4d7cc851af47fd9ebb616168f4c9.tar.xz mana-7a6e4d3c87ca4d7cc851af47fd9ebb616168f4c9.zip |
Implementation of chat channels by Trapdoor.
Diffstat (limited to 'src/gui/tabbedcontainer.h')
-rw-r--r-- | src/gui/tabbedcontainer.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gui/tabbedcontainer.h b/src/gui/tabbedcontainer.h index 2dc017ae..7f8deef9 100644 --- a/src/gui/tabbedcontainer.h +++ b/src/gui/tabbedcontainer.h @@ -26,6 +26,7 @@ #include <iosfwd> #include <vector> +#include <map> #include <guichan/actionlistener.hpp> @@ -41,18 +42,25 @@ class TabbedContainer : public gcn::Container, public gcn::ActionListener void addTab(gcn::Widget *widget, const std::string &caption); + void removeTab(const std::string &caption); + void logic(); void action(const gcn::ActionEvent &event); void setOpaque(bool opaque); + short getNumberOfTabs(); + + std::string getActiveWidget(); + private: typedef std::vector<gcn::Widget*> Widgets; typedef Widgets::iterator WidgetIterator; - Widgets mTabs; // The actual tabs at the top + std::map<std::string, gcn::Widget*> mTabs; // tabs mapped to their channel name Widgets mContents; // The contents of the tabs + std::map<gcn::Widget*, std::string> mWidgets; gcn::Widget *mActiveContent; }; |