The Battle for Wesnoth  1.15.1+dev
Classes | Namespaces | Macros | Functions
statistics_dialog.cpp File Reference
#include "gui/dialogs/statistics_dialog.hpp"
#include "actions/attack.hpp"
#include "font/constants.hpp"
#include "font/text_formatting.hpp"
#include "formatter.hpp"
#include "formula/string_utils.hpp"
#include "gettext.hpp"
#include "gui/auxiliary/find_widget.hpp"
#include "gui/widgets/label.hpp"
#include "gui/widgets/listbox.hpp"
#include "gui/widgets/menu_button.hpp"
#include "gui/widgets/settings.hpp"
#include "gui/widgets/window.hpp"
#include "team.hpp"
#include "units/types.hpp"
#include "utils/functional.hpp"
#include <iomanip>
#include <iostream>
#include <memory>
Include dependency graph for statistics_dialog.cpp:

Go to the source code of this file.

Classes

struct  gui2::dialogs::hitrate_table_element
 

Namespaces

 gui2
 Generic file dialog.
 
 gui2::dialogs
 

Macros

#define GETTEXT_DOMAIN   "wesnoth-lib"
 

Functions

static std::string get_probability_string (const double prob)
 
static std::ostream & gui2::dialogs::write_actual_and_expected (std::ostream &str, const long long actual, const double expected)
 
static hitrate_table_element gui2::dialogs::tally (const statistics::stats::hitrate_map &by_cth, const bool more_is_better)
 

Macro Definition Documentation

◆ GETTEXT_DOMAIN

#define GETTEXT_DOMAIN   "wesnoth-lib"

Definition at line 14 of file statistics_dialog.cpp.

Function Documentation

◆ get_probability_string()

static std::string get_probability_string ( const double  prob)
static

Definition at line 39 of file statistics_dialog.cpp.

References REGISTER_DIALOG.