Freeciv-3.1
|
#include <QApplication>
#include <QCheckBox>
#include <QCompleter>
#include <QGridLayout>
#include <QKeyEvent>
#include <QPainter>
#include <QScrollBar>
#include <QStyleFactory>
#include <QTextBlock>
#include <QTextLayout>
#include <QTextBrowser>
#include "chat.h"
#include "audio.h"
#include "climap.h"
#include "climisc.h"
#include "connectdlg_common.h"
#include "control.h"
#include "game.h"
#include "chatline.h"
#include "colors.h"
#include "fc_client.h"
#include "gui_main.h"
#include "qtg_cxxside.h"
Go to the source code of this file.
Functions | |
static bool | is_plain_public_message (QString s) |
QString | apply_tags (QString str, const struct text_tag_list *tags, QColor bg_color) |
void | qtg_real_output_window_append (const char *astring, const struct text_tag_list *tags, int conn_id) |
void | log_output_window (void) |
void | clear_output_window (void) |
void | qtg_version_message (const char *vertext) |
QString apply_tags | ( | QString | str, |
const struct text_tag_list * | tags, | ||
QColor | bg_color | ||
) |
Applies tags to text
Definition at line 557 of file chatline.cpp.
Referenced by chatwdg::chat_message_received(), and fc_client::chat_message_received().
void clear_output_window | ( | void | ) |
Clear all text from the output window.
Definition at line 789 of file chatline.cpp.
|
static |
Helper function to determine if a given client input line is intended as a "plain" public message.
Definition at line 694 of file chatline.cpp.
void log_output_window | ( | void | ) |
Get the text of the output window, and call write_chatline_content() to log it.
Definition at line 780 of file chatline.cpp.
void qtg_real_output_window_append | ( | const char * | astring, |
const struct text_tag_list * | tags, | ||
int | conn_id | ||
) |
Appends the string to the chat output window. The string should be inserted on its own line, although it will have no newline.
Definition at line 740 of file chatline.cpp.
Referenced by real_luaconsole_append(), and setup_gui_funcs().
void qtg_version_message | ( | const char * | vertext | ) |
Got version message from metaserver thread.
Definition at line 808 of file chatline.cpp.
Referenced by server_scan_error(), and setup_gui_funcs().