equal
deleted
inserted
replaced
22 #include <QWidget> |
22 #include <QWidget> |
23 #include <QListWidget> |
23 #include <QListWidget> |
24 #include <QString> |
24 #include <QString> |
25 #include <QGridLayout> |
25 #include <QGridLayout> |
26 |
26 |
|
27 #include "SDLs.h" |
|
28 |
27 class QTextBrowser; |
29 class QTextBrowser; |
28 class QLineEdit; |
30 class QLineEdit; |
29 class QListWidget; |
31 class QListWidget; |
30 class QSettings; |
32 class QSettings; |
31 class SDLInteraction; |
33 class SDLInteraction; |
33 class HWChatWidget : public QWidget |
35 class HWChatWidget : public QWidget |
34 { |
36 { |
35 Q_OBJECT |
37 Q_OBJECT |
36 |
38 |
37 public: |
39 public: |
38 // HWChatWidget(QWidget* parent=0); |
40 HWChatWidget(QWidget* parent, QSettings * gameSettings, SDLInteraction * sdli, bool notify); |
39 HWChatWidget(QWidget* parent, QSettings * gameSettings, SDLInteraction * sdli); |
|
40 |
41 |
41 public slots: |
42 public slots: |
42 void onChatString(const QString& str); |
43 void onChatString(const QString& str); |
43 void onServerMessage(const QString& str); |
44 void onServerMessage(const QString& str); |
44 void nickAdded(const QString& nick); |
45 void nickAdded(const QString& nick); |
64 QAction * acKick; |
65 QAction * acKick; |
65 QAction * acBan; |
66 QAction * acBan; |
66 QAction * acFollow; |
67 QAction * acFollow; |
67 QSettings * gameSettings; |
68 QSettings * gameSettings; |
68 SDLInteraction * sdli; |
69 SDLInteraction * sdli; |
69 |
70 Mix_Chunk *sound; |
|
71 bool notify; |
70 |
72 |
71 private slots: |
73 private slots: |
72 void returnPressed(); |
74 void returnPressed(); |
73 void onBan(); |
75 void onBan(); |
74 void onKick(); |
76 void onKick(); |