diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-03-26 20:04:40 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-03-26 20:04:40 +0200 |
commit | adfacb195ba653b63fec08200d0535604d45e20e (patch) | |
tree | 0222d33fd3e26b9e87cda7fa00119ac44acc94d4 /src/gui/widgets | |
parent | d1be68b99867261dc9298f3441acc09028897d6f (diff) | |
download | plus-adfacb195ba653b63fec08200d0535604d45e20e.tar.gz plus-adfacb195ba653b63fec08200d0535604d45e20e.tar.bz2 plus-adfacb195ba653b63fec08200d0535604d45e20e.tar.xz plus-adfacb195ba653b63fec08200d0535604d45e20e.zip |
Add option to chat context menu to remove nicks.
Usefull for example for tmw guild bot.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/chattab.cpp | 3 | ||||
-rw-r--r-- | src/gui/widgets/chattab.h | 7 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/gui/widgets/chattab.cpp b/src/gui/widgets/chattab.cpp index 9675eb621..40bde104e 100644 --- a/src/gui/widgets/chattab.cpp +++ b/src/gui/widgets/chattab.cpp @@ -50,7 +50,8 @@ ChatTab::ChatTab(const std::string &name) : Tab(), - mAllowHightlight(true) + mAllowHightlight(true), + mRemoveNames(false) { setCaption(name); diff --git a/src/gui/widgets/chattab.h b/src/gui/widgets/chattab.h index 52c122e65..998ad2e3d 100644 --- a/src/gui/widgets/chattab.h +++ b/src/gui/widgets/chattab.h @@ -147,6 +147,12 @@ class ChatTab : public Tab void setAllowHighlight(bool n) { mAllowHightlight = n; } + bool getRemoveNames() + { return mRemoveNames; } + + void setRemoveNames(bool n) + { mRemoveNames = n; } + protected: friend class ChatWindow; friend class WhisperWindow; @@ -166,6 +172,7 @@ class ChatTab : public Tab ScrollArea *mScrollArea; BrowserBox *mTextOutput; bool mAllowHightlight; + bool mRemoveNames; }; extern ChatTab *localChatTab; |