SetTimelineMarkersCommand.h header

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

Namespace ew::core::timeline

SetTimelineMarkersCommand class

class ew::core::timeline::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::timeline::SetTimelineMarkersCommand::SetTimelineMarkersCommand(ew::core::project::Project &project, std::vector< TimelineMarker > markers)

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

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

Defaulted.

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

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

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

Restores the previous markers.

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

Returns a short description for the undo/redo UI.

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

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