SetCastCommand.h header

#include <ew/core/SetCastCommand.h>

Namespace ew::core

SetCastCommand class

class ew::core::SetCastCommand

Command that replaces the project's voice cast. Undo restores the previous cast.

Whole-cast rather than per member, matching SetVariablesCommand: the cast 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::voice::SetCastCommand::SetCastCommand(project::Project &project, std::vector< CastMember > cast)

Creates a command applying cast to project.

ew::core::voice::SetCastCommand::~SetCastCommand() override

Destroys the command.

void ew::core::voice::SetCastCommand::apply() override

Records the current cast and applies the new one.

void ew::core::voice::SetCastCommand::undo() override

Restores the previous cast.

QString ew::core::voice::SetCastCommand::description() const override

Returns a short description for the undo/redo UI.

ew::core::foundation::OperationSubject ew::core::voice::SetCastCommand::subject() const override

Returns the subject this command changes. See Command::subject().