Zrythm v2.0.0-alpha.1
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::commands::ChangeTimebaseOverrideCommand Class Reference

Undoable command that sets or clears a TimebaseProvider's override. More...

#include <src/commands/change_timebase_override_command.h>

Inheritance diagram for zrythm::commands::ChangeTimebaseOverrideCommand:
Collaboration diagram for zrythm::commands::ChangeTimebaseOverrideCommand:

Public Member Functions

 ChangeTimebaseOverrideCommand (dsp::TimebaseProvider &provider, std::optional< dsp::Timebase > timebase)
void undo () override
void redo () override

Detailed Description

Undoable command that sets or clears a TimebaseProvider's override.

Works at any level of the provider chain (track, lane, clip). Pass a concrete Timebase to set an override, or std::nullopt to clear it (inherit from the parent provider).

Warning
Stores a raw reference to provider. The caller must ensure the provider outlives this command on the undo stack (guaranteed by the reference-counted UUID system — deleting a track keeps it alive in the registry until the delete command itself is destroyed).

Definition at line 27 of file change_timebase_override_command.h.

Constructor & Destructor Documentation

◆ ChangeTimebaseOverrideCommand()

zrythm::commands::ChangeTimebaseOverrideCommand::ChangeTimebaseOverrideCommand ( dsp::TimebaseProvider & provider,
std::optional< dsp::Timebase > timebase )
inline

Definition at line 30 of file change_timebase_override_command.h.

Member Function Documentation

◆ redo()

void zrythm::commands::ChangeTimebaseOverrideCommand::redo ( )
inlineoverride

Definition at line 46 of file change_timebase_override_command.h.

◆ undo()

void zrythm::commands::ChangeTimebaseOverrideCommand::undo ( )
inlineoverride

Definition at line 38 of file change_timebase_override_command.h.


The documentation for this class was generated from the following file: