diff -r cea15ef417ea -r 19db164dd20d QTfrontend/chatwidget.h --- a/QTfrontend/chatwidget.h Mon Feb 22 10:56:43 2010 +0000 +++ b/QTfrontend/chatwidget.h Mon Feb 22 22:51:21 2010 +0000 @@ -37,7 +37,16 @@ Q_OBJECT public: - HWChatWidget(QWidget* parent, QSettings * gameSettings, SDLInteraction * sdli, bool notify); + HWChatWidget(QWidget* parent, QSettings * gameSettings, SDLInteraction * sdli, bool notify); + void loadLists(const QString & nick); + void saveLists(const QString & nick); + void setShowReady(bool s); + +private: + void loadList(QStringList & list, const QString & file); + void saveList(QStringList & list, const QString & file); + void updateIcon(QListWidgetItem *item); + void updateIcons(); public slots: void onChatString(const QString& str); @@ -59,16 +68,20 @@ QGridLayout mainLayout; QTextBrowser* chatText; QStringList chatStrings; + QStringList ignoreList, friendsList; QListWidget* chatNicks; QLineEdit* chatEditLine; QAction * acInfo; QAction * acKick; QAction * acBan; QAction * acFollow; + QAction * acIgnore; + QAction * acFriend; QSettings * gameSettings; SDLInteraction * sdli; Mix_Chunk *sound[4]; bool notify; + bool showReady; private slots: void returnPressed(); @@ -76,6 +89,8 @@ void onKick(); void onInfo(); void onFollow(); + void onIgnore(); + void onFriend(); void chatNickDoubleClicked(QListWidgetItem * item); };