The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Namespaces | Macros | Variables
menu_item.cpp File Reference

Definitions for a class that implements WML-defined (right-click) menu items. More...

#include "menu_item.hpp"
#include "global.hpp"
#include "conditional_wml.hpp"
#include "handlers.hpp"
#include "manager.hpp"
#include "pump.hpp"
#include "actions/undo.hpp"
#include "game_config.hpp"
#include "game_data.hpp"
#include "log.hpp"
#include "mouse_handler_base.hpp"
#include "hotkey/hotkey_command.hpp"
#include "hotkey/hotkey_handler.hpp"
#include "play_controller.hpp"
#include "preferences.hpp"
#include "replay.hpp"
#include "replay_helper.hpp"
#include "resources.hpp"
#include "synced_context.hpp"
#include "terrain/filter.hpp"
Include dependency graph for menu_item.cpp:

Go to the source code of this file.

Namespaces

 game_events
 Domain specific events.
 

Macros

#define ERR_NG   LOG_STREAM(err, log_engine)
 
#define LOG_NG   LOG_STREAM(info, log_engine)
 
#define STR(X)   #X
 Causes the event associated with this item to fire. More...
 

Variables

static lg::log_domain log_engine ("engine")
 

Detailed Description

Definitions for a class that implements WML-defined (right-click) menu items.

Definition in file menu_item.cpp.

Macro Definition Documentation

#define ERR_NG   LOG_STREAM(err, log_engine)

Definition at line 45 of file menu_item.cpp.

Referenced by game_events::wml_menu_item::to_config().

#define LOG_NG   LOG_STREAM(info, log_engine)

Definition at line 46 of file menu_item.cpp.

Referenced by game_events::wml_menu_item::update_command().

#define STR (   X)    #X

Causes the event associated with this item to fire.

Also records the event. This includes recording the previous select event, if applicable. The undo stack will be cleared if the event mutated the gamestate.

Parameters
[in]event_hexThe location of the event (where the menu was opened).
[in]last_selectThe location of the most recent "select" event.

Definition at line 202 of file menu_item.cpp.

Variable Documentation

lg::log_domain log_engine("engine")
static