![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include <QGlobalStatic>#include <cstdarg>#include "fcintl.h"#include "fcthread.h"#include "featured_text.h"#include "packets.h"#include "chatline.h"#include "chatline_common.h"#include "client_main.h"
Include dependency graph for chatline_common.cpp:Go to the source code of this file.
Functions | |
| Q_GLOBAL_STATIC (QMutex, ow_mutex) | |
| int | send_chat (const char *message) |
| Send the message as a chat to the server. More... | |
| int | send_chat_printf (const char *format,...) |
| Send the message as a chat to the server. More... | |
| void | fc_allocate_ow_mutex () |
| Allocate output window mutex. More... | |
| void | fc_release_ow_mutex () |
| Release output window mutex. More... | |
| void | fc_init_ow_mutex () |
| Initialize output window mutex. More... | |
| void | fc_destroy_ow_mutex () |
| Destroy output window mutex. More... | |
| void | output_window_append (const struct ft_color color, const char *featured_text) |
| Add a line of text to the output ("chatline") window, like puts() would do it in the console. More... | |
| void | output_window_vprintf (const struct ft_color color, const char *format, va_list args) |
| Add a line of text to the output ("chatline") window. More... | |
| void | output_window_printf (const struct ft_color color, const char *format,...) |
| Add a line of text to the output ("chatline") window. More... | |
| void | output_window_event (const char *plain_text, const struct text_tag_list *tags) |
| Add a line of text to the output ("chatline") window from server event. More... | |
| void | chat_welcome_message (bool gui_has_copying_mitem) |
| Standard welcome message. More... | |
| void chat_welcome_message | ( | bool | gui_has_copying_mitem | ) |
Standard welcome message.
Definition at line 157 of file chatline_common.cpp.
Referenced by fc_client::fc_main().
| void fc_allocate_ow_mutex | ( | ) |
Allocate output window mutex.
Definition at line 63 of file chatline_common.cpp.
Referenced by fc_client::fc_main(), output_window_append(), and output_window_event().
| void fc_destroy_ow_mutex | ( | ) |
Destroy output window mutex.
Definition at line 78 of file chatline_common.cpp.
Referenced by at_exit().
| void fc_init_ow_mutex | ( | ) |
Initialize output window mutex.
Definition at line 73 of file chatline_common.cpp.
Referenced by client_main().
| void fc_release_ow_mutex | ( | ) |
Release output window mutex.
Definition at line 68 of file chatline_common.cpp.
Referenced by fc_client::fc_main(), output_window_append(), and output_window_event().
| void output_window_append | ( | const struct ft_color | color, |
| const char * | featured_text | ||
| ) |
Add a line of text to the output ("chatline") window, like puts() would do it in the console.
Definition at line 84 of file chatline_common.cpp.
Referenced by chat_widget::anchor_clicked(), trade_generator::calculate(), chat_welcome_message(), client_start_server(), disconnect_from_server(), error_on_socket(), handle_game_info(), handle_player_info(), handle_single_want_hack_reply(), fc_client::load_modpack(), races_dialog::ok_pressed(), option_save_output_window_callback(), output_window_vprintf(), map_view::shortcut_pressed(), and page_network::slot_connect().
| void output_window_event | ( | const char * | plain_text, |
| const struct text_tag_list * | tags | ||
| ) |
Add a line of text to the output ("chatline") window from server event.
Definition at line 146 of file chatline_common.cpp.
Referenced by handle_event().
| void output_window_printf | ( | const struct ft_color | color, |
| const char * | format, | ||
| ... | |||
| ) |
Add a line of text to the output ("chatline") window.
The text is constructed in printf style.
Definition at line 133 of file chatline_common.cpp.
Referenced by api_client_chat_base(), client_conn_close_callback(), handle_server_join_reply(), and start_autoconnecting_to_server().
| void output_window_vprintf | ( | const struct ft_color | color, |
| const char * | format, | ||
| va_list | args | ||
| ) |
Add a line of text to the output ("chatline") window.
The text is constructed in printf style.
Definition at line 120 of file chatline_common.cpp.
Referenced by output_window_printf().
| Q_GLOBAL_STATIC | ( | QMutex | , |
| ow_mutex | |||
| ) |
| int send_chat | ( | const char * | message | ) |
Send the message as a chat to the server.
Definition at line 35 of file chatline_common.cpp.
Referenced by client_kill_server(), handle_game_load(), chat_listener::send_chat_message(), send_save_game(), set_ruleset(), page_pregame::slot_pregame_observe(), top_bar_widget::someSlot(), and fc_client::start_from_file().
| int send_chat_printf | ( | const char * | format, |
| ... | |||
| ) |
Send the message as a chat to the server.
Message is constructed in printf style.
Definition at line 44 of file chatline_common.cpp.
Referenced by pregame_options::ailevel_change(), desired_settable_option_send(), send_save_game(), fc_client::start_from_file(), and plr_report::toggle_ai_mode().