diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-12 21:37:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-12 21:37:33 +0300 |
commit | 05d41da56882a14b44648c8daed5f50979154c16 (patch) | |
tree | 49a5cc44067e8b60dc0f2273c1be82b2585b61e0 /src/gui/windows/chatwindow.h | |
parent | 77e6c8639ae17554874d2de9fbdca35a99e51765 (diff) | |
download | ManaVerse-05d41da56882a14b44648c8daed5f50979154c16.tar.gz ManaVerse-05d41da56882a14b44648c8daed5f50979154c16.tar.bz2 ManaVerse-05d41da56882a14b44648c8daed5f50979154c16.tar.xz ManaVerse-05d41da56882a14b44648c8daed5f50979154c16.zip |
Add basic support for chat channels.
Diffstat (limited to 'src/gui/windows/chatwindow.h')
-rw-r--r-- | src/gui/windows/chatwindow.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gui/windows/chatwindow.h b/src/gui/windows/chatwindow.h index d6b89fbd1..313a65803 100644 --- a/src/gui/windows/chatwindow.h +++ b/src/gui/windows/chatwindow.h @@ -38,6 +38,7 @@ #include <set> class Button; +class ChannelTab; class ChatTab; class ChatInput; class ColorListModel; @@ -198,8 +199,16 @@ class ChatWindow final : public Window, WhisperTab *getWhisperTab(const std::string &nick) const A_WARN_UNUSED; + ChannelTab *addChannelTab(const std::string &name, + const bool switchTo = false) A_WARN_UNUSED; + + ChatTab *addChatTab(const std::string &name, + const bool switchTo = false) A_WARN_UNUSED; + void removeAllWhispers(); + void removeAllChannels(); + void ignoreAllWhispers(); bool resortChatLog(std::string line, ChatMsgType::Type own, @@ -219,6 +228,8 @@ class ChatWindow final : public Window, void saveState() const; + bool saveTab(const int num, ChatTab *const tab) const; + void loadCustomList(); void loadGMCommands(); @@ -332,8 +343,11 @@ class ChatWindow final : public Window, bool addCurrentToHistory(); typedef std::map<const std::string, WhisperTab*> TabMap; + typedef std::map<const std::string, ChannelTab*> ChannelMap; + /** Manage whisper tabs */ TabMap mWhispers; + ChannelMap mChannels; typedef History::iterator HistoryIterator; History mHistory; /**< Command history. */ |