summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs/chat/chattab.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-12 15:21:51 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-12 15:21:51 +0300
commit2b6198dc9c4a52094bad3b39dbfb06c168a55ca2 (patch)
treeec5e1ca6e69e81e05ade883bfe644deb6d19c1ef /src/gui/widgets/tabs/chat/chattab.h
parent6cbd617a811b85f7685266907b129180134620b8 (diff)
downloadmv-2b6198dc9c4a52094bad3b39dbfb06c168a55ca2.tar.gz
mv-2b6198dc9c4a52094bad3b39dbfb06c168a55ca2.tar.bz2
mv-2b6198dc9c4a52094bad3b39dbfb06c168a55ca2.tar.xz
mv-2b6198dc9c4a52094bad3b39dbfb06c168a55ca2.zip
Move chat tab type into ChatTab.
Diffstat (limited to 'src/gui/widgets/tabs/chat/chattab.h')
-rw-r--r--src/gui/widgets/tabs/chat/chattab.h9
1 files changed, 7 insertions, 2 deletions
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;