20 #define GETTEXT_DOMAIN "wesnoth-editor"
32 std::unique_ptr<editor_action> undo;
36 undo = std::make_unique<editor_action_label>(
47 undo = std::make_unique<editor_action_label_delete>(
loc_);
50 perform_without_undo(mc);
70 auto undo = std::make_unique<editor_action_label>(
81 perform_without_undo(mc);
#define IMPLEMENT_ACTION(id)
Helper macro to implement common action methods.
void perform_without_undo(map_context &mc) const override
Perform the action without creating an undo action.
const std::string category_
void perform_without_undo(map_context &mc) const override
Perform the action without creating an undo action.
const std::string team_name_
Base class for all editor actions.
This class wraps around a map to provide a concise interface for the editor to work with.
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 color_t 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="")
To store label data Class implements logic for rendering.
bool visible_in_shroud() const
bool visible_in_fog() const
const color_t & color() const
const std::string & category() const
const t_string & text() const
const std::string & team_name() const
std::string label
What to show in the filter's drop-down list.
Manage the empty-palette in the editor.