From c483cf600e74e7d38a7c0cc7d80435e97040c76c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 20 Mar 2013 12:19:11 +0300 Subject: Add channel name to chat tabs. --- src/gui/widgets/chattab.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/gui/widgets/chattab.h') diff --git a/src/gui/widgets/chattab.h b/src/gui/widgets/chattab.h index 24afffc0f..0ac55811d 100644 --- a/src/gui/widgets/chattab.h +++ b/src/gui/widgets/chattab.h @@ -32,6 +32,9 @@ class ScrollArea; +const std::string GENERAL_CHANNEL = "\000\000\000"; +const std::string TRADE_CHANNEL = "\000\000\001"; + /** * A tab for the chat window. This is special to ease chat handling. */ @@ -54,7 +57,8 @@ class ChatTab : public Tab /** * Constructor. */ - ChatTab(const Widget2 *const widget, const std::string &name); + ChatTab(const Widget2 *const widget, const std::string &name, + const std::string &channel); A_DELETE_COPY(ChatTab) @@ -171,6 +175,9 @@ class ChatTab : public Tab virtual void playNewMessageSound(); + std::string getChannelName() + { return mChannelName; } + protected: friend class ChatWindow; friend class WhisperWindow; @@ -195,6 +202,7 @@ class ChatTab : public Tab bool mRemoveNames; bool mNoAway; bool mShowOnline; + std::string mChannelName; }; extern ChatTab *localChatTab; -- cgit v1.2.3-70-g09d2