From 120e0cb592d289132f504778f471195c12a196d5 Mon Sep 17 00:00:00 2001 From: Mateusz Kaduk Date: Thu, 28 Apr 2005 20:39:57 +0000 Subject: First step to chat history --- src/gui/chat.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/gui/chat.h') 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 +#include #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 -- cgit v1.2.3-70-g09d2