summaryrefslogtreecommitdiff
path: root/src/gui/chatwindow.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-29 01:18:21 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-29 01:18:21 +0300
commitb0ce837b66ddc34a9b2a9346291b252f748c577f (patch)
tree6bcd1c475d48e2cb12972556a1f62eaf9c392048 /src/gui/chatwindow.h
parentf474ad785704a904fd2b95d56fa67cccf69c876f (diff)
downloadmanaverse-b0ce837b66ddc34a9b2a9346291b252f748c577f.tar.gz
manaverse-b0ce837b66ddc34a9b2a9346291b252f748c577f.tar.bz2
manaverse-b0ce837b66ddc34a9b2a9346291b252f748c577f.tar.xz
manaverse-b0ce837b66ddc34a9b2a9346291b252f748c577f.zip
Add option to auto hide chat window (chat window visible by default)
Option in chat \ Auto hide chat window.
Diffstat (limited to 'src/gui/chatwindow.h')
-rw-r--r--src/gui/chatwindow.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/gui/chatwindow.h b/src/gui/chatwindow.h
index aa56237a2..df452f9a7 100644
--- a/src/gui/chatwindow.h
+++ b/src/gui/chatwindow.h
@@ -25,6 +25,8 @@
#include "listener.h"
+#include "configlistener.h"
+
#include "gui/widgets/window.h"
#include <guichan/actionlistener.hpp>
@@ -80,7 +82,8 @@ struct CHATLOG
class ChatWindow : public Window,
public gcn::ActionListener,
public gcn::KeyListener,
- public Listener
+ public Listener,
+ public ConfigListener
{
public:
/**
@@ -262,6 +265,20 @@ class ChatWindow : public Window,
void copyToClipboard(int x, int y);
+ void optionChanged(const std::string &name);
+
+ void mouseEntered(gcn::MouseEvent& mouseEvent);
+
+ void mouseMoved(gcn::MouseEvent &event);
+
+ void mouseExited(gcn::MouseEvent& mouseEvent A_UNUSED);
+
+ void draw(gcn::Graphics* graphics);
+
+ void updateVisibility();
+
+ void unHideWindow();
+
protected:
friend class ChatTab;
friend class WhisperTab;
@@ -333,6 +350,8 @@ class ChatWindow : public Window,
std::list<std::string> mAwayLog;
std::vector<std::string> mHighlights;
bool mGMLoaded;
+ bool mHaveMouse;
+ bool mAutoHide;
};
extern ChatWindow *chatWindow;