QTfrontend/chatwidget.h
changeset 4897 11598e7aa7e6
parent 4892 b0610081ee95
child 4899 8163c9aaad0c
equal deleted inserted replaced
4896:972d418057a7 4897:11598e7aa7e6
    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);
   109   void onFollow();
   111   void onFollow();
   110   void onIgnore();
   112   void onIgnore();
   111   void onFriend();
   113   void onFriend();
   112   void chatNickDoubleClicked(QListWidgetItem * item);
   114   void chatNickDoubleClicked(QListWidgetItem * item);
   113   void chatNickSelected(int index);
   115   void chatNickSelected(int index);
       
   116   void linkClicked(const QUrl & link);
   114 };
   117 };
   115 
   118 
   116 #endif // _CHAT_WIDGET_INCLUDED
   119 #endif // _CHAT_WIDGET_INCLUDED