36 , mouse_action_(nullptr)
54 ERR_ED <<
"No brushes defined!";
56 brushes_[0].add_relative_location(0, 0);
75 std::make_shared<mouse_action_starting_position>(
key_, *
palette_manager_->location_palette_.get()));
88 if (menu.items().size() == 1) {
92 i->second->set_toolbar_button(&menu);
114 ERR_ED <<
"Invalid hotkey command ("
115 <<
static_cast<int>(command) <<
") passed to set_mouse_action";
Class that keeps track of all the keys on the keyboard.
A config object defines a single node in a WML file, with access to child nodes.
void invalidate_game_status()
Function to invalidate the game status displayed on the sidebar.
map_location hex_clicked_on(int x, int y) const
given x,y co-ordinates of an onscreen pixel, will return the location of the hex that this pixel corr...
The brush class represents a single brush – a set of relative locations around a "hotspot",...
map_fragment & get_clipboard()
void clear_mouseover_hex_overlay()
void update_brush_highlights(editor_display &disp, const map_location &hex)
Unconditionally update the brush highlights for the current tool when hex is the center location.
common_palette & get_palette()
Getter for the associated palette.
virtual void set_mouse_overlay(editor_display &disp)
Set the mouse overlay for this action.
A class grating read only view to a vector of config objects, viewed as one config with all children ...
const std::vector< menu > & menus() const
Definitions for the interface to Wesnoth Markup Language (WML).
Manage the empty-palette in the editor.
Game configuration data as global variables.
const hotkey_command & get_hotkey_command(const std::string &command)
returns the hotkey_command with the given name
@ HOTKEY_EDITOR_TOOL_VILLAGE
@ HOTKEY_EDITOR_TOOL_LABEL
@ HOTKEY_EDITOR_CLIPBOARD_PASTE
@ HOTKEY_EDITOR_TOOL_PAINT
@ HOTKEY_EDITOR_TOOL_FILL
@ HOTKEY_EDITOR_TOOL_UNIT
@ HOTKEY_EDITOR_TOOL_STARTING_POSITION
@ HOTKEY_EDITOR_TOOL_SELECT
@ HOTKEY_EDITOR_TOOL_ITEM
point get_mouse_location()
Returns the current mouse location in draw space.
std::string::const_iterator iterator
HOTKEY_COMMAND command
The command associated with this hotkey.
Encapsulates the map of the game.