19 #define GETTEXT_DOMAIN "wesnoth-editor"
35 std::unique_ptr<editor_action> undo;
46 return undo.release();
62 std::unique_ptr<editor_action> undo;
66 if (!deleted)
return nullptr;
72 return undo.release();
const std::string team_name_
editor_action_label_delete * clone() const
Action cloning.
void perform_without_undo(map_context &mc) const
Perform the action without creating an undo action.
editor_action_label_delete(map_location loc)
editor_action * perform(map_context &mc) const
Perform the action, returning an undo action that, when performed, shall reverse any effects of this ...
map_labels & get_labels()
const terrain_label * set_label(const map_location &loc, const t_string &text, const int creator=-1, const std::string &team="", const SDL_Color color=font::NORMAL_COLOR, const bool visible_in_fog=true, const bool visible_in_shroud=false, const bool immutable=false, const std::string &category="", const t_string &tooltip="")
const std::string & team_name() const
const SDL_Color & color() const
const t_string & text() const
const std::string & category() const
const std::string category_
editor_action_label(map_location loc, const std::string &text, const std::string &team_name, SDL_Color color, bool visible_fog, bool visible_shroud, bool immutable, std::string category)
Manage the empty-palette in the editor.
void perform_without_undo(map_context &mc) const
Perform the action without creating an undo action.
const terrain_label * get_label(const map_location &loc, const std::string &team_name) const
editor_action_label * clone() const
Action cloning.
bool visible_in_shroud() const
Base class for all editor actions.
bool visible_in_fog() const
This class wraps around a map to provide a concise interface for the editor to work with...
To store label data Class implements logic for rendering.
editor_action * perform(map_context &mc) const
Perform the action, returning an undo action that, when performed, shall reverse any effects of this ...