25 #include <SDL2/SDL_keycode.h>
59 virtual const std::string&
window_id()
const override;
87 std::vector<savegame::save_info>
games_;
A config object defines a single node in a WML file, with access to child nodes.
A class grating read only view to a vector of config objects, viewed as one config with all children ...
This shows the dialog to select and load a savegame file.
std::vector< std::string > last_words_
void browse_button_callback()
void display_savegame_internal(const savegame::save_info &game)
Part of display_savegame that might throw a config::error if the savegame data is corrupt.
field_bool * show_replay_
game_load(const game_config_view &cache_config, savegame::load_game_metadata &data)
void key_press_callback(const SDL_Keycode key)
void evaluate_summary_string(std::stringstream &str, const config &cfg_summary)
void set_save_dir_list(menu_button &dir_list)
void delete_button_callback()
field_bool * cancel_orders_
const game_config_view & cache_config_
static bool execute(const game_config_view &cache_config, savegame::load_game_metadata &data)
virtual void pre_show(window &window) override
Actions to be taken before showing the window.
std::shared_ptr< savegame::save_index_class > & save_index_manager_
std::vector< savegame::save_info > games_
void populate_game_list()
Update (both internally and visually) the list of games.
void filter_text_changed(const std::string &text)
virtual const std::string & window_id() const override
The ID of the window to build.
field_bool * change_difficulty_
Abstract base class for all modal dialogs.
Specialized field class for boolean.
base class of top level items, the only item which needs to store the final canvases to draw on.
Filename and modification date for a file list.
Various uncategorised dialogs.