The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Namespaces | Macros | Functions | Variables
command_executor.cpp File Reference
#include "command_executor.hpp"
#include "hotkey_item.hpp"
#include "gui/dialogs/lua_interpreter.hpp"
#include "gui/dialogs/message.hpp"
#include "gui/dialogs/screenshot_notification.hpp"
#include "gui/dialogs/transient_message.hpp"
#include "gui/widgets/window.hpp"
#include "wml_separators.hpp"
#include "filesystem.hpp"
#include "construct_dialog.hpp"
#include "gettext.hpp"
#include "log.hpp"
#include "preferences.hpp"
#include "game_end_exceptions.hpp"
#include "display.hpp"
#include "quit_confirmation.hpp"
#include "utils/functional.hpp"
#include <cassert>
Include dependency graph for command_executor.cpp:

Go to the source code of this file.

Namespaces

 hotkey
 Keyboard shortcuts for game actions.
 

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())
 
#define ERR_CF   LOG_STREAM(err, log_config)
 

Functions

static void hotkey::event_execute (const SDL_Event &event, command_executor *executor)
 
void hotkey::mbutton_event (const SDL_Event &event, command_executor *executor)
 
void hotkey::jbutton_event (const SDL_Event &event, command_executor *executor)
 
void hotkey::jhat_event (const SDL_Event &event, command_executor *executor)
 
void hotkey::key_event (const SDL_Event &event, command_executor *executor)
 
void hotkey::execute_command (const hotkey_command &command, command_executor *executor, int index, bool press)
 

Variables

static lg::log_domain log_config ("config")
 

Macro Definition Documentation

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

Definition at line 41 of file command_executor.cpp.

Referenced by hotkey::execute_command().

#define ERR_CF   LOG_STREAM(err, log_config)

Definition at line 42 of file command_executor.cpp.

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

Definition at line 38 of file command_executor.cpp.

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

Definition at line 40 of file command_executor.cpp.

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

Definition at line 39 of file command_executor.cpp.

Variable Documentation

lg::log_domain log_config("config")
static