QTfrontend/chatwidget.h
changeset 461 105af110b0e6
child 462 91baab07b79a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/QTfrontend/chatwidget.h	Tue Feb 20 17:50:59 2007 +0000
@@ -0,0 +1,33 @@
+#ifndef _CHAT_WIDGET_INCLUDED
+#define _CHAT_WIDGET_INCLUDED
+
+#include <QWidget>
+#include <QString>
+#include <QGridLayout>
+
+class QListWidget;
+class QLineEdit;
+
+class HWChatWidget : public QWidget
+{
+  Q_OBJECT
+
+ public:
+  HWChatWidget(QWidget* parent=0);
+
+ public slots:
+  void onChatStringFromNet(const QStringList& str);
+
+ signals:
+  void chatLine(const QString& str);
+
+ private:
+  QGridLayout mainLayout;
+  QListWidget* chatText;
+  QLineEdit* chatEditLine;
+
+ private slots:
+  void returnPressed();
+};
+
+#endif // _CHAT_WIDGET_INCLUDED