SetContinuityRulesCommand.h header

#include <ew/core/SetContinuityRulesCommand.h>

Namespace ew::core

SetContinuityRulesCommand class

class ew::core::SetContinuityRulesCommand

Command that replaces the project's continuity-rule registry – the user-authored assertions the timeline validator checks (see ContinuityRule) – as produced by the rules manager when a rule is added, edited, or removed by pushing the new list. Undo restores the previous registry and redo re-applies the new one.

Members

ew::core::SetContinuityRulesCommand::SetContinuityRulesCommand(Project &project, std::vector< ContinuityRule > rules)

Creates a command that sets project's continuity rules to rules when applied.

ew::core::SetContinuityRulesCommand::~SetContinuityRulesCommand() override

Destroys the command.

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

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

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

Restores the previous rules.

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

Returns a short description for the undo/redo UI.