SetTimelineBookmarksCommand.h header

#include <ew/core/SetTimelineBookmarksCommand.h>

Namespace ew::core

SetTimelineBookmarksCommand class

class ew::core::SetTimelineBookmarksCommand

Replaces the project's timeline-bookmark registry (TL-41) as one undoable step: apply swaps in the new list after snapshotting the previous one, undo restores it. Mirrors SetTimelineMarkersCommand – the whole set is edited at once by the Manage Bookmarks dialog or by saving the current span.

Members

ew::core::SetTimelineBookmarksCommand::SetTimelineBookmarksCommand(Project &project, std::vector< TimelineBookmark > bookmarks)

Creates a command that sets project's timeline-bookmark registry to bookmarks when applied.

ew::core::SetTimelineBookmarksCommand::~SetTimelineBookmarksCommand() override

Destroys the command.

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

Applies the change; also used to re-apply the command on redo.

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

Reverses the change previously applied by apply().

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

Short, human-readable description for the undo/redo UI (e.g. "Add character").