The Battle for Wesnoth  1.15.1+dev
Namespaces | Macros | Variables
loading_screen.cpp File Reference

Screen with logo and loading status info during program-startup. More...

#include "gui/dialogs/loading_screen.hpp"
#include "cursor.hpp"
#include "gettext.hpp"
#include "gui/auxiliary/find_widget.hpp"
#include "gui/core/timer.hpp"
#include "gui/widgets/label.hpp"
#include "gui/widgets/settings.hpp"
#include "gui/widgets/window.hpp"
#include "log.hpp"
#include "preferences/general.hpp"
#include "utils/functional.hpp"
#include "video.hpp"
#include <chrono>
#include <cstdlib>
Include dependency graph for loading_screen.cpp:

Go to the source code of this file.

Namespaces

 gui2
 Generic file dialog.
 
 gui2::dialogs
 

Macros

#define GETTEXT_DOMAIN   "wesnoth-lib"
 
#define ERR_LS   LOG_STREAM(err, log_loadscreen)
 
#define WRN_LS   LOG_STREAM(warn, log_loadscreen)
 

Variables

static lg::log_domain log_loadscreen ("loadscreen")
 
static const std::map< loading_stage, std::string > stage_names
 

Detailed Description

Screen with logo and loading status info during program-startup.

Definition in file loading_screen.cpp.

Macro Definition Documentation

◆ ERR_LS

#define ERR_LS   LOG_STREAM(err, log_loadscreen)

Definition at line 39 of file loading_screen.cpp.

Referenced by gui2::dialogs::loading_screen::pre_show().

◆ GETTEXT_DOMAIN

#define GETTEXT_DOMAIN   "wesnoth-lib"

Definition at line 19 of file loading_screen.cpp.

◆ WRN_LS

#define WRN_LS   LOG_STREAM(warn, log_loadscreen)

Definition at line 40 of file loading_screen.cpp.

Referenced by gui2::dialogs::loading_screen::draw_callback().

Variable Documentation

◆ log_loadscreen

lg::log_domain log_loadscreen("loadscreen")
static

◆ stage_names

const std::map<loading_stage, std::string> stage_names
static
Initial value:
{
{ loading_stage::build_terrain, N_("Building terrain rules") },
{ loading_stage::create_cache, N_("Reading files and creating cache") },
{ loading_stage::init_display, N_("Initializing display") },
{ loading_stage::init_fonts, N_("Reinitialize fonts for the current language") },
{ loading_stage::init_teams, N_("Initializing teams") },
{ loading_stage::init_theme, N_("Initializing display") },
{ loading_stage::load_config, N_("Loading game configuration") },
{ loading_stage::load_data, N_("Loading data files") },
{ loading_stage::load_level, N_("Loading level") },
{ loading_stage::init_lua, N_("Initializing scripting engine") },
{ loading_stage::init_whiteboard, N_("Initializing planning mode") },
{ loading_stage::load_unit_types, N_("Reading unit files") },
{ loading_stage::load_units, N_("Loading units") },
{ loading_stage::refresh_addons, N_("Searching for installed add-ons") },
{ loading_stage::start_game, N_("Starting game") },
{ loading_stage::verify_cache, N_("Verifying cache") },
{ loading_stage::connect_to_server, N_("Connecting to server") },
{ loading_stage::login_response, N_("Logging in") },
{ loading_stage::waiting, N_("Waiting for server") },
{ loading_stage::redirect, N_("Connecting to redirected server") },
{ loading_stage::next_scenario, N_("Waiting for next scenario") },
{ loading_stage::download_level_data, N_("Getting game data") },
{ loading_stage::download_lobby_data, N_("Downloading lobby data") },
}
#define N_(String)
Definition: gettext.hpp:99

Definition at line 42 of file loading_screen.cpp.

Referenced by gui2::dialogs::loading_screen::loading_screen().