The Battle for Wesnoth  1.19.7+dev
Namespaces | Macros | Functions | Variables
unit_recall.cpp File Reference
#include "gui/dialogs/unit_recall.hpp"
#include "serialization/markup.hpp"
#include "gui/dialogs/edit_text.hpp"
#include "gui/dialogs/message.hpp"
#include "gui/widgets/listbox.hpp"
#include "gui/widgets/button.hpp"
#include "gui/widgets/image.hpp"
#include "gui/widgets/label.hpp"
#include "gui/widgets/text_box.hpp"
#include "gui/widgets/unit_preview_pane.hpp"
#include "gui/widgets/window.hpp"
#include "help/help.hpp"
#include "game_board.hpp"
#include "gettext.hpp"
#include "replay_helper.hpp"
#include "play_controller.hpp"
#include "resources.hpp"
#include "synced_context.hpp"
#include "team.hpp"
#include "units/unit.hpp"
#include "units/ptr.hpp"
#include "units/types.hpp"
#include "utils/ci_searcher.hpp"
#include <functional>
#include "whiteboard/manager.hpp"
Include dependency graph for unit_recall.cpp:

Go to the source code of this file.

Namespaces

 gui2
 Generic file dialog.
 
 gui2::dialogs
 

Macros

#define GETTEXT_DOMAIN   "wesnoth-lib"
 
#define LOG_DP   LOG_STREAM(info, log_display)
 

Functions

template<typename T >
static void gui2::dialogs::dump_recall_list_to_console (const T &units)
 
static const std::string gui2::dialogs::maybe_inactive (const std::string &str, bool active)
 
static std::string gui2::dialogs::format_level_string (const int level, bool recallable)
 
static std::string gui2::dialogs::format_cost_string (int unit_recall_cost, const int team_recall_cost)
 
static std::string gui2::dialogs::get_title_suffix (int side_num)
 

Variables

static lg::log_domain log_display ("display")
 
static std::pair gui2::dialogs::sort_default { std::string{"sort_2"}, sort_order::type::descending }
 
static utils::optional< decltype(sort_default)> gui2::dialogs::sort_last
 
static const color_t gui2::dialogs::inactive_row_color (0x96, 0x96, 0x96)
 

Macro Definition Documentation

◆ GETTEXT_DOMAIN

#define GETTEXT_DOMAIN   "wesnoth-lib"

Definition at line 15 of file unit_recall.cpp.

◆ LOG_DP

#define LOG_DP   LOG_STREAM(info, log_display)

Definition at line 46 of file unit_recall.cpp.

Variable Documentation

◆ log_display

lg::log_domain log_display("display") ( "display"  )
static