equal
deleted
inserted
replaced
24 #include <QListWidget> |
24 #include <QListWidget> |
25 #include <QString> |
25 #include <QString> |
26 #include <QGridLayout> |
26 #include <QGridLayout> |
27 #include <QRegExp> |
27 #include <QRegExp> |
28 |
28 |
29 #include "SDLs.h" |
29 #include "SDLInteraction.h" |
30 |
30 |
31 #include "SmartLineEdit.h" |
31 #include "SmartLineEdit.h" |
32 |
32 |
33 class ListWidgetNickItem; |
33 class ListWidgetNickItem; |
34 class QTextBrowser; |
34 class QTextBrowser; |
35 class QLineEdit; |
35 class QLineEdit; |
36 class QListWidget; |
36 class QListWidget; |
37 class QSettings; |
37 class QSettings; |
38 class SDLInteraction; |
|
39 |
38 |
40 // this class is for custom nick sorting |
39 /// This class is for custom nickname sorting |
41 class ListWidgetNickItem : public QListWidgetItem |
40 class ListWidgetNickItem : public QListWidgetItem |
42 { |
41 { |
43 public: |
42 public: |
44 ListWidgetNickItem(const QString& nick, bool isFriend, bool isIgnored); |
43 ListWidgetNickItem(const QString& nick, bool isFriend, bool isIgnored); |
45 bool operator<(const QListWidgetItem & other) const; |
44 bool operator<(const QListWidgetItem & other) const; |
56 class HWChatWidget : public QWidget |
55 class HWChatWidget : public QWidget |
57 { |
56 { |
58 Q_OBJECT |
57 Q_OBJECT |
59 |
58 |
60 public: |
59 public: |
61 HWChatWidget(QWidget* parent, QSettings * gameSettings, SDLInteraction * sdli, bool notify); |
60 HWChatWidget(QWidget* parent, QSettings * gameSettings, bool notify); |
62 void loadLists(const QString & nick); |
61 void loadLists(const QString & nick); |
63 void saveLists(const QString & nick); |
62 void saveLists(const QString & nick); |
64 void setShowReady(bool s); |
63 void setShowReady(bool s); |
65 void setShowFollow(bool enabled); |
64 void setShowFollow(bool enabled); |
66 void addLine(const QString & cssClass, QString line); |
65 void addLine(const QString & cssClass, QString line); |
103 QAction * acBan; |
102 QAction * acBan; |
104 QAction * acFollow; |
103 QAction * acFollow; |
105 QAction * acIgnore; |
104 QAction * acIgnore; |
106 QAction * acFriend; |
105 QAction * acFriend; |
107 QSettings * gameSettings; |
106 QSettings * gameSettings; |
108 SDLInteraction * sdli; |
107 QString helloSound; |
109 Mix_Chunk *sound[4]; |
|
110 bool notify; |
108 bool notify; |
111 bool showReady; |
109 bool showReady; |
112 |
110 |
113 private slots: |
111 private slots: |
114 void returnPressed(); |
112 void returnPressed(); |