130 virtual const std::string&
window_id()
const override;
132 virtual void post_build(window& window)
override;
134 virtual void pre_show(window& window)
override;
136 virtual void post_show(window& window)
override;
void game_filter_keypress_callback(const SDL_Keycode key)
static std::string announcements_
bool gamelist_diff_update_
void skip_replay_changed_callback()
field_bool * filter_invert_
std::vector< int > gamelist_id_at_row_
void enter_game_by_index(const int index, JOIN_MODE mode)
Entry wrapper for enter_game, where game is located by index.
std::size_t lobby_update_timer_
Timer for updating the lobby.
Specialized field class for boolean.
This class represents the info a client has about a game on the server.
virtual void pre_show(window &window) override
Actions to be taken before showing the window.
static std::string server_information_
This class represents the collective information the client has about the players and games on the se...
virtual const std::string & window_id() const override
The id of the window to build.
bool delay_playerlist_update_
void adjust_game_row_contents(const mp::game_info &game, grid *grid, bool add_callbacks=true)
static bool logout_prompt()
void process_network_data(const config &data)
void update_selected_game()
void enter_selected_game(JOIN_MODE mode)
Enter game by index, where index is the selected game listbox row.
field_bool * filter_ignored_
void update_visible_games()
Class for a single line text area.
void enter_game_by_id(const int game_id, JOIN_MODE mode)
Entry wrapper for enter_game, where game is located by game id.
Implements a quit confirmation dialog.
void show_preferences_button_callback()
A class that represents a TCP/IP connection to the wesnothd server.
void update_gamelist_filter()
void process_gamelist_diff(const config &data)
void update_gamelist_diff()
bool delay_gamelist_update_
std::map< std::string, string_map > make_game_row_data(const mp::game_info &game)
lobby_player_list_helper player_list_
Various uncategorised dialogs.
void user_dialog_callback(const mp::user_info *info)
void network_handler()
Network polling callback.
void enter_game(const mp::game_info &game, JOIN_MODE mode)
Exits the lobby and enters the given game.
unsigned last_lobby_update_
mp_lobby(mp::lobby_info &info, wesnothd_connection &connection, int &joined_game)
std::size_t index(const std::string &str, const std::size_t index)
Codepoint index corresponding to the nth character in a UTF-8 string.
void process_gamelist(const config &data)
This class represents the information a client has about another player.
virtual void post_build(window &window) override
Actions to be taken directly after the window is build.
field_bool * filter_slots_
Abstract base class for all modal dialogs.
wesnothd_connection & network_connection_
field_bool * filter_friends_
mp::lobby_info & lobby_info_
A config object defines a single node in a WML file, with access to child nodes.
virtual void post_show(window &window) override
Actions to be taken after the window has been shown.
base class of top level items, the only item which needs to store the final canvases to draw on...
bool exit_hook(window &window)
void show_help_callback()