SetBeatSheetCommand.h header
#include <ew/core/SetBeatSheetCommand.h>
Namespace ew::core
SetBeatSheetCommand class
class ew::core::SetBeatSheetCommand
Command that replaces the project's applied beat sheet – the chosen structure template and the scene mapped to each of its beats – as produced by the Beat Sheet dock when the writer picks a template or assigns/clears a beat. Undo restores the previous beat sheet and redo re-applies the new one.
Members
ew::core::SetBeatSheetCommand::SetBeatSheetCommand(Project &project, BeatSheet beatSheet)
Creates a command that sets project's applied beat sheet to beatSheet when applied.
ew::core::SetBeatSheetCommand::~SetBeatSheetCommand() override
Destroys the command.
void ew::core::SetBeatSheetCommand::apply() override
Records the project's current beat sheet and applies the new one.
void ew::core::SetBeatSheetCommand::undo() override
Restores the previous beat sheet.
QString ew::core::SetBeatSheetCommand::description() const override
Returns a short description for the undo/redo UI.