57 HWChatWidget(QWidget* parent, QSettings * gameSettings, SDLInteraction * sdli, bool notify); |
57 HWChatWidget(QWidget* parent, QSettings * gameSettings, SDLInteraction * sdli, bool notify); |
58 void loadLists(const QString & nick); |
58 void loadLists(const QString & nick); |
59 void saveLists(const QString & nick); |
59 void saveLists(const QString & nick); |
60 void setShowReady(bool s); |
60 void setShowReady(bool s); |
61 void setShowFollow(bool enabled); |
61 void setShowFollow(bool enabled); |
|
62 static const char* STYLE; |
62 |
63 |
63 private: |
64 private: |
64 void loadList(QStringList & list, const QString & file); |
65 void loadList(QStringList & list, const QString & file); |
65 void saveList(QStringList & list, const QString & file); |
66 void saveList(QStringList & list, const QString & file); |
66 void updateNickItem(QListWidgetItem *item); |
67 void updateNickItem(QListWidgetItem *item); |
67 void updateNickItems(); |
68 void updateNickItems(); |
68 |
69 |
69 public slots: |
70 public slots: |
70 void onChatString(const QString& str); |
71 void onChatString(const QString& str); |
|
72 void onChatString(const QString& nick, const QString& str); |
71 void onServerMessage(const QString& str); |
73 void onServerMessage(const QString& str); |
72 void nickAdded(const QString& nick, bool notifyNick); |
74 void nickAdded(const QString& nick, bool notifyNick); |
73 void nickRemoved(const QString& nick); |
75 void nickRemoved(const QString& nick); |
74 void clear(); |
76 void clear(); |
75 void setReadyStatus(const QString & nick, bool isReady); |
77 void setReadyStatus(const QString & nick, bool isReady); |