SetTimelineMarkersCommand.h header
#include <ew/core/SetTimelineMarkersCommand.h>
Namespace ew::core
SetTimelineMarkersCommand class
class ew::core::SetTimelineMarkersCommand
Replaces the project's timeline-marker registry (TL-19) as one undoable step: apply swaps in the new list after snapshotting the previous one, undo restores it. Mirrors SetTimelineErasCommand – the whole set is edited at once by the Manage Markers dialog.
Members
ew::core::SetTimelineMarkersCommand::SetTimelineMarkersCommand(Project &project, std::vector< TimelineMarker > markers)
Creates a command that sets project's timeline markers to markers when applied.
ew::core::SetTimelineMarkersCommand::~SetTimelineMarkersCommand() override
Defaulted.
void ew::core::SetTimelineMarkersCommand::apply() override
Applies the change; also used to re-apply the command on redo.
void ew::core::SetTimelineMarkersCommand::undo() override
Reverses the change previously applied by apply().
QString ew::core::SetTimelineMarkersCommand::description() const override
Short, human-readable description for the undo/redo UI (e.g. "Add character").