From dcec9bcedc769372f1d2a84d24755a8dda43238f Mon Sep 17 00:00:00 2001 From: me_desk Date: Sun, 20 Jan 2013 15:42:53 +0000 Subject: displaying history in chatwindow git-svn-id: svn://localhost/project_picapica/trunk@221 fb96df88-216d-11de-830c-f3023f12d8ac --- pica-client/chatwindow.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'pica-client/chatwindow.h') diff --git a/pica-client/chatwindow.h b/pica-client/chatwindow.h index 1babd31..4036e43 100644 --- a/pica-client/chatwindow.h +++ b/pica-client/chatwindow.h @@ -4,6 +4,10 @@ #include #include #include +#include +#include +#include +#include "history.h" class TextSend : public QTextEdit { @@ -40,14 +44,26 @@ private: TextSend *sendtextw; quint32 peer_id_; QList undelivered_msgs; - + History hist; + QMenuBar *menu; + QAction *hist24h; + QAction *hist1week; + QAction *histAll; + QString peer_name_; + QString my_name_; void put_message(QString msg, quint32 id, bool is_me); + int draw_message(QString msg, QString nickname, QString datetime, QString color, bool is_delivered); + void print_history(QList H); void closeEvent(QCloseEvent *e); private slots: void send_message(); + + void show_history24h(); + void show_history1w(); + void show_historyAll(); }; #endif // CHATWINDOW_H -- cgit v1.2.1