SetEntityAliasesCommand.h header

#include <ew/core/SetEntityAliasesCommand.h>

Namespace ew::core

SetEntityAliasesCommand class

class ew::core::SetEntityAliasesCommand

Command that replaces an entity's set of aliases (its Entity::aliases) – the alternative names/nicknames used for link resolution and spell-check, as produced by the codex inspector's alias editor. Undo restores the previous set and redo re-applies.

Members

ew::core::SetEntityAliasesCommand::SetEntityAliasesCommand(Entity &entity, std::set< QString > aliases)

Creates a command that sets entity's alias set to aliases when applied.

ew::core::SetEntityAliasesCommand::~SetEntityAliasesCommand() override

Destroys the command.

void ew::core::SetEntityAliasesCommand::apply() override

Records the entity's current alias set and applies the new one.

void ew::core::SetEntityAliasesCommand::undo() override

Restores the previous alias set.

QString ew::core::SetEntityAliasesCommand::description() const override

Returns a short description for the undo/redo UI.