The Battle for Wesnoth  1.19.0-dev
Macros | Functions | Variables
hotkey_handler.cpp File Reference
#include "hotkey/hotkey_handler.hpp"
#include "font/standard_colors.hpp"
#include "formula/string_utils.hpp"
#include "game_display.hpp"
#include "game_events/wmi_manager.hpp"
#include "preferences/game.hpp"
#include "game_state.hpp"
#include "hotkey/hotkey_command.hpp"
#include "hotkey/hotkey_item.hpp"
#include "log.hpp"
#include "map/map.hpp"
#include "play_controller.hpp"
#include "savegame.hpp"
#include "whiteboard/manager.hpp"
#include <boost/algorithm/string/predicate.hpp>
#include "units/unit.hpp"
Include dependency graph for hotkey_handler.cpp:

Go to the source code of this file.

Macros

#define ERR_G   LOG_STREAM(err, lg::general())
 
#define WRN_G   LOG_STREAM(warn, lg::general())
 
#define LOG_G   LOG_STREAM(info, lg::general())
 
#define DBG_G   LOG_STREAM(debug, lg::general())
 

Functions

template<typename T >
static void trim_items (std::vector< T > &newitems)
 
template<typename F >
static void foreach_autosave (int turn, saved_game &sg, F func)
 

Variables

static const std::string quickload_prefix = "quickload:"
 
static const std::string quickreplay_prefix = "quickreplay:"
 

Macro Definition Documentation

◆ DBG_G

#define DBG_G   LOG_STREAM(debug, lg::general())

Definition at line 42 of file hotkey_handler.cpp.

◆ ERR_G

#define ERR_G   LOG_STREAM(err, lg::general())

Definition at line 39 of file hotkey_handler.cpp.

◆ LOG_G

#define LOG_G   LOG_STREAM(info, lg::general())

Definition at line 41 of file hotkey_handler.cpp.

◆ WRN_G

#define WRN_G   LOG_STREAM(warn, lg::general())

Definition at line 40 of file hotkey_handler.cpp.

Function Documentation

◆ foreach_autosave()

template<typename F >
static void foreach_autosave ( int  turn,
saved_game sg,
func 
)
static

◆ trim_items()

template<typename T >
static void trim_items ( std::vector< T > &  newitems)
static

Variable Documentation

◆ quickload_prefix

const std::string quickload_prefix = "quickload:"
static

◆ quickreplay_prefix

const std::string quickreplay_prefix = "quickreplay:"
static