SetTerminologyCommand.h header
#include <ew/core/SetTerminologyCommand.h>
Namespace ew::core
SetTerminologyCommand class
class ew::core::SetTerminologyCommand
Command that replaces the project's house terminology. Undo restores the previous list.
Whole-list, matching SetCastCommand and SetVariablesCommand: a style sheet is edited as a table, and a table edit that took several undo steps to reverse would surprise the person who made it in one gesture.
Members
ew::core::style::SetTerminologyCommand::SetTerminologyCommand(project::Project &project, std::vector< TerminologyEntry > terminology)
Creates a command applying terminology to project.
ew::core::style::SetTerminologyCommand::~SetTerminologyCommand() override
Destroys the command.
void ew::core::style::SetTerminologyCommand::apply() override
Records the current terminology and applies the new list.
void ew::core::style::SetTerminologyCommand::undo() override
Restores the previous terminology.
QString ew::core::style::SetTerminologyCommand::description() const override
Returns a short description for the undo/redo UI.
ew::core::foundation::OperationSubject ew::core::style::SetTerminologyCommand::subject() const override
Returns the subject this command changes. See Command::subject().