SetTimelineErasCommand.h header

#include <ew/core/timeline/SetTimelineErasCommand.h>

Namespace ew::core::timeline

SetTimelineErasCommand class

class ew::core::timeline::SetTimelineErasCommand

Replaces the project's timeline-era registry (TL-18) as one undoable step: apply swaps in the new list after snapshotting the previous one, undo restores it. Mirrors SetContinuityRulesCommand – the whole set is edited at once by the Manage Eras dialog.

Members

ew::core::timeline::SetTimelineErasCommand::SetTimelineErasCommand(ew::core::project::Project &project, std::vector< TimelineEra > eras)

Creates a command that sets project's timeline eras to eras when applied.

ew::core::timeline::SetTimelineErasCommand::~SetTimelineErasCommand() override

Destroys the command.

void ew::core::timeline::SetTimelineErasCommand::apply() override

Records the project's current eras and applies the new list.

void ew::core::timeline::SetTimelineErasCommand::undo() override

Restores the previous eras.

QString ew::core::timeline::SetTimelineErasCommand::description() const override

Returns a short description for the undo/redo UI.

ew::core::foundation::OperationSubject ew::core::timeline::SetTimelineErasCommand::subject() const override

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