Freeciv-3.1
|
#include <SDL2/SDL.h>
#include "fcintl.h"
#include "log.h"
#include "game.h"
#include "packets.h"
#include "client_main.h"
#include "clinet.h"
#include "connectdlg_common.h"
#include "colors.h"
#include "dialogs.h"
#include "graphics.h"
#include "gui_id.h"
#include "gui_main.h"
#include "gui_tilespec.h"
#include "mapview.h"
#include "messagewin.h"
#include "pages.h"
#include "themespec.h"
#include "utf8string.h"
#include "widget.h"
#include "chatline.h"
Go to the source code of this file.
Data Structures | |
struct | CONNLIST |
Functions | |
static void | popup_conn_list_dialog (void) |
static void | add_to_chat_list (char *msg, size_t n_alloc) |
static int | move_load_game_dlg_callback (struct widget *pwindow) |
void | popdown_load_game_dialog (void) |
static int | exit_load_dlg_callback (struct widget *pwidget) |
static int | load_selected_game_callback (struct widget *pwidget) |
static void | popup_load_game_dialog (void) |
static int | inputline_return_callback (struct widget *pwidget) |
void | popup_input_line (void) |
void | 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) |
static int | conn_dlg_callback (struct widget *pwindow) |
static int | disconnect_conn_callback (struct widget *pwidget) |
static int | input_edit_conn_callback (struct widget *pwidget) |
static int | start_game_callback (struct widget *pwidget) |
static int | select_nation_callback (struct widget *pwidget) |
static int | load_game_callback (struct widget *pwidget) |
void | real_conn_list_dialog_update (void *unused) |
bool | popdown_conn_list_dialog (void) |
void | version_message (const char *vertext) |
Variables | |
struct CONNLIST * | conn_dlg = NULL |
struct advanced_dialog * | load_dialog |
|
static |
Handle chat messages when connection dialog open.
Definition at line 444 of file chatline.c.
Referenced by real_output_window_append().
void clear_output_window | ( | void | ) |
Clear all text from the output window.
Definition at line 412 of file chatline.c.
|
static |
User did something to connection list dialog.
Definition at line 422 of file chatline.c.
Referenced by popup_conn_list_dialog().
|
static |
User selected to get back from connection list dialog.
Definition at line 430 of file chatline.c.
Referenced by popup_conn_list_dialog().
|
static |
User clicked load game dialog close-button.
Definition at line 127 of file chatline.c.
Referenced by popup_load_game_dialog().
|
static |
User interacted with connection dialog input field.
Definition at line 505 of file chatline.c.
Referenced by popup_conn_list_dialog().
|
static |
Sent msg/command from input dlg to server
Definition at line 343 of file chatline.c.
Referenced by popup_input_line().
|
static |
User interacted with Load Game button.
Definition at line 559 of file chatline.c.
Referenced by popup_conn_list_dialog().
|
static |
User selected file to load.
Definition at line 143 of file chatline.c.
Referenced by popup_load_game_dialog().
void log_output_window | ( | void | ) |
Get the text of the output window, and call write_chatline_content() to log it.
Definition at line 404 of file chatline.c.
|
static |
User event to load game dialog window.
Definition at line 89 of file chatline.c.
Referenced by popup_load_game_dialog().
bool popdown_conn_list_dialog | ( | void | ) |
Close connection list dialog.
Definition at line 875 of file chatline.c.
Referenced by disconnect_conn_callback(), real_conn_list_dialog_update(), and real_set_client_page().
void popdown_load_game_dialog | ( | void | ) |
Close load game dialog
Definition at line 101 of file chatline.c.
Referenced by exit_load_dlg_callback(), load_selected_game_callback(), and real_set_client_page().
|
static |
Open connection list dialog
Definition at line 667 of file chatline.c.
Referenced by real_conn_list_dialog_update().
void popup_input_line | ( | void | ) |
This function is main chat/command client input.
Definition at line 358 of file chatline.c.
Referenced by main_key_down_handler().
|
static |
Open load game dialog
Definition at line 167 of file chatline.c.
Referenced by load_game_callback(), and real_conn_list_dialog_update().
void real_conn_list_dialog_update | ( | void * | unused | ) |
Update the connected users list at pregame state.
Definition at line 574 of file chatline.c.
void 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 384 of file chatline.c.
|
static |
User interacted with Select Nation button.
Definition at line 536 of file chatline.c.
Referenced by popup_conn_list_dialog().
|
static |
User interacted with Start Game button.
Definition at line 524 of file chatline.c.
Referenced by popup_conn_list_dialog().
void version_message | ( | const char * | vertext | ) |
Got version message from metaserver thread.
Definition at line 905 of file chatline.c.
struct CONNLIST * conn_dlg = NULL |
struct advanced_dialog* load_dialog |
Definition at line 84 of file chatline.c.
Referenced by move_load_game_dlg_callback(), popdown_load_game_dialog(), and popup_load_game_dialog().