summaryrefslogtreecommitdiff
path: root/src/gui/widgets/chattab.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/chattab.h')
-rw-r--r--src/gui/widgets/chattab.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gui/widgets/chattab.h b/src/gui/widgets/chattab.h
index bc139079..1b666da1 100644
--- a/src/gui/widgets/chattab.h
+++ b/src/gui/widgets/chattab.h
@@ -34,7 +34,7 @@ class ScrollArea;
/**
* A tab for the chat window. This is special to ease chat handling.
*/
-class ChatTab : public Tab, public AutoCompleteLister
+class ChatTab : public Tab, public AutoCompleteLister, public EventListener
{
public:
ChatTab(const std::string &name);
@@ -102,6 +102,8 @@ class ChatTab : public Tab, public AutoCompleteLister
virtual void saveToLogFile(std::string &msg);
+ void event(Event::Channel channel, const Event &event);
+
protected:
friend class ChatWindow;
friend class WhisperWindow;
@@ -112,6 +114,12 @@ class ChatTab : public Tab, public AutoCompleteLister
virtual void handleCommand(const std::string &msg);
+ /**
+ * Adapts the text format to the current gui opacity,
+ * for better readability.
+ */
+ void updateTextFormat(int alpha);
+
void addRow(std::string &line);
ScrollArea *mScrollArea;