19 #define GETTEXT_DOMAIN "wesnoth-editor"
34 LOG_ED <<
"Extending by " << loc <<
"\n";
41 std::set<map_location> undo_locs;
43 undo_locs.insert(loc);
67 LOG_ED <<
"Checking " << loc <<
"\n";
69 LOG_ED <<
"Extending by " << loc <<
"\n";
77 std::set<map_location> undo_locs;
80 undo_locs.insert(loc);
106 std::set<map_location> undo_locs;
107 std::set_difference(all.begin(), all.end(),
108 current.begin(), current.end(),
109 std::inserter(undo_locs, undo_locs.begin()));
void perform_without_undo(map_context &mc) const
Perform the action without creating an undo action.
void add_changed_location(const map_location &loc)
void perform_without_undo(map_context &mc) const
Perform the action without creating an undo action.
editor_action_select_inverse * clone() const
Action cloning.
editor_action * perform(map_context &mc) const
Perform the action, returning an undo action that, when performed, shall reverse any effects of this ...
editor_action_deselect * clone() const
Action cloning.
editor_action_select_none()
editor_action_deselect(const std::set< map_location > &area)
void perform_without_undo(map_context &mc) const
Perform the action without creating an undo action.
void perform_without_undo(map_context &mc) const
Perform the action without creating an undo action.
editor_action_select(const std::set< map_location > &area)
bool in_selection(const map_location &loc) const
void invert_selection()
Invert the selection, i.e.
editor_action_select_all * clone() const
Action cloning.
editor_action_select_all()
editor_map & get_map()
Map accessor.
Select the given locations.
void perform_without_undo(map_context &mc) const
Perform the action without creating an undo action.
Manage the empty-palette in the editor.
bool add_to_selection(const map_location &loc)
Add a location to the selection.
Encapsulates the map of the game.
void set_everything_changed()
This class adds extra editor-specific functionality to a normal gamemap.
Base class for all editor actions.
void clear_selection()
Clear the selection.
editor_action_select * clone() const
Action cloning.
editor_action_select_none * clone() const
Action cloning.
This class wraps around a map to provide a concise interface for the editor to work with...
const std::set< map_location > & selection() const
Return the selection set.
editor_action * perform(map_context &mc) const
Perform the action, returning an undo action that, when performed, shall reverse any effects of this ...
void extend(const editor_map &map, const std::set< map_location > &locs)
The crux of the extendable contract.
void select_all()
Select all map hexes.
editor_action_select_inverse * perform(map_context &mc) const
Perform the action, returning an undo action that, when performed, shall reverse any effects of this ...
void extend(const editor_map &map, const std::set< map_location > &locs)
The crux of the extendable contract.
editor_action_select_inverse()
editor_action_select * perform(map_context &mc) const
Perform the action, returning an undo action that, when performed, shall reverse any effects of this ...
Deselect the given locations.
std::set< map_location > area_
editor_action_select * perform(map_context &mc) const
Perform the action, returning an undo action that, when performed, shall reverse any effects of this ...
bool remove_from_selection(const map_location &loc)
Remove a location to the selection.