Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

tellpage.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2002 by Yann Hodique                                    *
00003  *   Yann.Hodique@lifl.fr                                                  *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  ***************************************************************************/
00010 
00011 #ifndef _TELLPAGE_H_
00012 #define _TELLPAGE_H_
00013 
00014 #include <qwidget.h>
00015 #include <qaction.h>
00016 #include <qstringlist.h>
00017 
00018 #include "page.h"
00019 #include "master.h"
00020 
00021 class QTextEdit;
00022 class MtpBrowser;
00023 class QGridLayout;
00024 
00029 class TellPage : public Page {
00030     Q_OBJECT
00031 
00032 public:
00033     TellPage(QWidget *parent, const char *name, Master * session);
00034     ~TellPage();
00035     virtual void append(const QString & msg);
00036     void setPrefix(const QString&);
00037     QTextEdit* chat_edit;
00038     MtpBrowser* chat_view;
00039 
00040 public slots:
00041     virtual void returnPressed();
00042     void slotHistoryUp();
00043     void slotHistoryDown();
00044     void slotNewLine();
00045 
00046 
00047 protected:
00048     QGridLayout* TellPageBaseLayout;
00049 
00050 protected slots:
00051     virtual void languageChange();
00052 
00053 private:
00054     QString prefix;
00055     QAction *history_up, *history_down, *new_line;
00056     QStringList history;
00057     QStringList::Iterator history_iterator;
00058 
00059 };
00060 
00061 #endif

Generated on Sat May 10 15:09:28 2003 for qnet by doxygen1.3