diff options
author | Mateusz Kaduk <mateusz.kaduk@gmail.com> | 2005-04-28 20:39:57 +0000 |
---|---|---|
committer | Mateusz Kaduk <mateusz.kaduk@gmail.com> | 2005-04-28 20:39:57 +0000 |
commit | 120e0cb592d289132f504778f471195c12a196d5 (patch) | |
tree | 3221cdccacccc1cb6158f8c6c9edc75815cba259 /src/gui/chat.h | |
parent | fd193321df49fe33697a77f6721b4e1fc13fe05b (diff) | |
download | mana-client-120e0cb592d289132f504778f471195c12a196d5.tar.gz mana-client-120e0cb592d289132f504778f471195c12a196d5.tar.bz2 mana-client-120e0cb592d289132f504778f471195c12a196d5.tar.xz mana-client-120e0cb592d289132f504778f471195c12a196d5.zip |
First step to chat history
Diffstat (limited to 'src/gui/chat.h')
-rw-r--r-- | src/gui/chat.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/chat.h b/src/gui/chat.h index 53891f7d..574accab 100644 --- a/src/gui/chat.h +++ b/src/gui/chat.h @@ -25,6 +25,7 @@ #define _TMW_CHAT_H #include <guichan.hpp> +#include <guichan/key.hpp> #include "../resources/image.h" #include "../net/network.h" #include "window.h" @@ -169,6 +170,14 @@ class ChatWindow : public Window, public gcn::ActionListener { */ char *chat_send(std::string nick, std::string msg); + /** History */ + void update_history(const char *ptr); + void arrow_up(void); + void arrow_down(void); + + /** Called when key is pressed */ + void keyPress(const gcn::Key& key); + private : std::ofstream chatlog_file; @@ -201,6 +210,7 @@ class ChatWindow : public Window, public gcn::ActionListener { gcn::TextField *chatInput; gcn::TextBox *textOutput; ScrollArea *scrollArea; + }; #endif |