diff options
author | David Athay <ko2fan@gmail.com> | 2008-04-14 17:05:29 +0000 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2008-04-14 17:05:29 +0000 |
commit | bbb40f595e6e20e5106a23e6aa606b825b1e62b4 (patch) | |
tree | dbfe4adf16eb49be93c031587c2ff1694ac0d0e4 /src/gui/chat.h | |
parent | 1ace3a1cec2ea8490af5af0b7d131394543fea11 (diff) | |
download | mana-client-bbb40f595e6e20e5106a23e6aa606b825b1e62b4.tar.gz mana-client-bbb40f595e6e20e5106a23e6aa606b825b1e62b4.tar.bz2 mana-client-bbb40f595e6e20e5106a23e6aa606b825b1e62b4.tar.xz mana-client-bbb40f595e6e20e5106a23e6aa606b825b1e62b4.zip |
Added new TabbedArea which extends gui::TabbedArea. Changed Guild and
Chat windows to use new TabbedArea. Added private messaging.
Diffstat (limited to 'src/gui/chat.h')
-rw-r--r-- | src/gui/chat.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/gui/chat.h b/src/gui/chat.h index 19795dd3..d605def0 100644 --- a/src/gui/chat.h +++ b/src/gui/chat.h @@ -37,8 +37,9 @@ class BrowserBox; class ScrollArea; -class TabbedContainer; -class GCContainer; +//class TabbedContainer; +//class GCContainer; +class TabbedArea; enum { @@ -213,6 +214,10 @@ class ChatWindow : public Window, public gcn::ActionListener, void setVisible(bool visible); + /** Check if tab with that name already exists */ + bool + tabExists(const std::string &tabName); + private: bool mTmpVisible; @@ -229,11 +234,12 @@ class ChatWindow : public Window, public gcn::ActionListener, #if 0 /** Constructs failed messages for actions */ std::string const_msg(CHATSKILL); -#endif - std::map<std::string, GCContainer*> mTabs; TabbedContainer *mContainer; /**< Tabbed container for tabbing between channels */ GCContainer *mTab; /**< Tabs */ +#endif + + TabbedArea *mChatTabs; /** < Chat Tabbed area for holding each channel */ gcn::TextField *mChatInput; /**< Input box for typing chat messages */ std::map<std::string, BrowserBox*> mChannelOutput; /**< Map each TextOutput to a tab */ std::map<std::string, ScrollArea*> mChannelScroll; /**< Map each ScrollArea to a tab */ |