summaryrefslogtreecommitdiffstats
path: root/pica-client/chatwindow.h
diff options
context:
space:
mode:
authorme_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac>2013-01-20 15:42:53 +0000
committerme_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac>2013-01-20 15:42:53 +0000
commitdcec9bcedc769372f1d2a84d24755a8dda43238f (patch)
tree81eba4fddcfbe7a015052e5332b839c717d3cce3 /pica-client/chatwindow.h
parentda68f9e85db0f232656542564bd770240e28110e (diff)
downloadpica-pica-dcec9bcedc769372f1d2a84d24755a8dda43238f.tar.gz
pica-pica-dcec9bcedc769372f1d2a84d24755a8dda43238f.zip
displaying history in chatwindow
git-svn-id: svn://localhost/project_picapica/trunk@221 fb96df88-216d-11de-830c-f3023f12d8ac
Diffstat (limited to 'pica-client/chatwindow.h')
-rw-r--r--pica-client/chatwindow.h18
1 files changed, 17 insertions, 1 deletions
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 <QWidget>
#include <QTextEdit>
#include <QList>
+#include <QMenuBar>
+#include <QAction>
+#include <QMenu>
+#include "history.h"
class TextSend : public QTextEdit
{
@@ -40,14 +44,26 @@ private:
TextSend *sendtextw;
quint32 peer_id_;
QList<int> 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<History::HistoryRecord> H);
void closeEvent(QCloseEvent *e);
private slots:
void send_message();
+
+ void show_history24h();
+ void show_history1w();
+ void show_historyAll();
};
#endif // CHATWINDOW_H