SetTimelineViewPresetsCommand.h header

#include <ew/core/SetTimelineViewPresetsCommand.h>

Namespace ew::core

SetTimelineViewPresetsCommand class

class ew::core::SetTimelineViewPresetsCommand

Command that replaces the project's list of user-saved timeline view presets (used to save, rename, or delete one by pushing the new list, TL-83). Undo restores the previous list. Applying a preset's settings to the live view is a separate SetTimelineViewSettingsCommand; this command only edits the saved set.

Members

ew::core::SetTimelineViewPresetsCommand::SetTimelineViewPresetsCommand(Project &project, std::vector< TimelineViewPreset > presets)

Creates a command that sets the timeline view presets to presets when applied.

ew::core::SetTimelineViewPresetsCommand::~SetTimelineViewPresetsCommand() override

Destroys the command.

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

Records the current presets and applies the new list.

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

Restores the previous presets.

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

Returns a short description for the undo/redo UI.