461
|
1 |
#ifndef _CHAT_WIDGET_INCLUDED
|
|
2 |
#define _CHAT_WIDGET_INCLUDED
|
|
3 |
|
|
4 |
#include <QWidget>
|
|
5 |
#include <QString>
|
|
6 |
#include <QGridLayout>
|
|
7 |
|
|
8 |
class QListWidget;
|
|
9 |
class QLineEdit;
|
|
10 |
|
|
11 |
class HWChatWidget : public QWidget
|
|
12 |
{
|
|
13 |
Q_OBJECT
|
|
14 |
|
|
15 |
public:
|
|
16 |
HWChatWidget(QWidget* parent=0);
|
|
17 |
|
|
18 |
public slots:
|
|
19 |
void onChatStringFromNet(const QStringList& str);
|
|
20 |
|
|
21 |
signals:
|
|
22 |
void chatLine(const QString& str);
|
|
23 |
|
|
24 |
private:
|
|
25 |
QGridLayout mainLayout;
|
|
26 |
QListWidget* chatText;
|
462
|
27 |
QListWidget* chatNicks;
|
461
|
28 |
QLineEdit* chatEditLine;
|
|
29 |
|
|
30 |
private slots:
|
|
31 |
void returnPressed();
|
|
32 |
};
|
|
33 |
|
|
34 |
#endif // _CHAT_WIDGET_INCLUDED
|