SetTimelineBookmarksCommand.h header
#include <ew/core/timeline/SetTimelineBookmarksCommand.h>
Namespace ew::core::timeline
SetTimelineBookmarksCommand class
class ew::core::timeline::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::timeline::SetTimelineBookmarksCommand::SetTimelineBookmarksCommand(ew::core::project::Project &project, std::vector< TimelineBookmark > bookmarks)
Creates a command that sets project's timeline-bookmark registry to bookmarks when applied.
ew::core::timeline::SetTimelineBookmarksCommand::~SetTimelineBookmarksCommand() override
Destroys the command.
void ew::core::timeline::SetTimelineBookmarksCommand::apply() override
Records the project's current bookmarks and applies the new list.
void ew::core::timeline::SetTimelineBookmarksCommand::undo() override
Restores the previous bookmarks.
QString ew::core::timeline::SetTimelineBookmarksCommand::description() const override
Returns a short description for the undo/redo UI.
ew::core::foundation::OperationSubject ew::core::timeline::SetTimelineBookmarksCommand::subject() const override
Returns the subject this command changes. See Command::subject().