From 2b6198dc9c4a52094bad3b39dbfb06c168a55ca2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 12 Oct 2014 15:21:51 +0300 Subject: Move chat tab type into ChatTab. --- src/gui/widgets/tabs/chat/chattab.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/tabs/chat/chattab.h') diff --git a/src/gui/widgets/tabs/chat/chattab.h b/src/gui/widgets/tabs/chat/chattab.h index 055c0a3e6..b6c3d9af3 100644 --- a/src/gui/widgets/tabs/chat/chattab.h +++ b/src/gui/widgets/tabs/chat/chattab.h @@ -29,6 +29,8 @@ #include "gui/widgets/tabs/tab.h" +#include "gui/widgets/tabs/chat/chattabtype.h" + #include "localconsts.h" class ScrollArea; @@ -48,7 +50,8 @@ class ChatTab notfinal : public Tab */ ChatTab(const Widget2 *const widget, const std::string &name, - const std::string &channel); + const std::string &channel, + const ChatTabType::Type &type); A_DELETE_COPY(ChatTab) @@ -122,7 +125,8 @@ class ChatTab notfinal : public Tab /** * Returns type of the being. */ - virtual int getType() const A_WARN_UNUSED; + int getType() const A_WARN_UNUSED + { return mType; } virtual void saveToLogFile(const std::string &msg) const; @@ -186,6 +190,7 @@ class ChatTab notfinal : public Tab BrowserBox *mTextOutput; ScrollArea *mScrollArea; std::string mChannelName; + ChatTabType::Type mType; bool mAllowHightlight; bool mRemoveNames; bool mNoAway; -- cgit v1.2.3-70-g09d2