18 #include <QTextBrowser>
32 QString
apply_tags(QString str,
const struct text_tag_list *tags,
50 const struct text_tag_list *);
69 explicit chat_input(QWidget *parent =
nullptr);
87 : QTextBrowser(parent)
107 void append(
const QString &str);
130 const struct text_tag_list *tags)
override;
142 const text_tag_list *tags);
void real_output_window_append(const QString &astring, const text_tag_list *tags)
Appends the string to the chat output window.
void version_message(const QString &vertext)
Got version message from metaserver.
void set_chat_colors(const QHash< QString, QString > &colors)
Sets color substitution map.
QString apply_tags(QString str, const struct text_tag_list *tags, QColor bg_color)
Applies tags to text.
static const int HISTORY_END
QString forward_in_history()
Goes forward one position in history, and returns the message at the new position.
void send_chat_message(const QString &message)
Sends commands to server, but first searches for custom keys, if it finds then it makes custom action...
void reset_history_position()
Go to the end of the history.
QString back_in_history()
Goes back one position in history, and returns the message at the new position.
static QStringList history
chat_listener()
Constructor.
virtual void chat_message_received(const QString &, const struct text_tag_list *)
Called whenever a message is received.
void mouseDoubleClickEvent(QMouseEvent *event) override
text_browser_dblclck(QWidget *parent=nullptr)