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

Edits the ChordDescriptor of one or more ChordObjects. More...

#include <src/commands/edit_chord_object_command.h>

Inheritance diagram for zrythm::commands::EditChordObjectCommand:
Collaboration diagram for zrythm::commands::EditChordObjectCommand:

Public Member Functions

 EditChordObjectCommand (structure::arrangement::ChordObject *chord_object, const dsp::ChordDescriptor &new_descriptor)
int id () const override
bool mergeWith (const QUndoCommand *other) override
void undo () override
void redo () override

Detailed Description

Edits the ChordDescriptor of one or more ChordObjects.

Captures the descriptor state by value at construction time and tracks the ChordObject via QPointer, so undo/redo remain safe even if the model rebuilds or resets during the operation.

Definition at line 22 of file edit_chord_object_command.h.

Constructor & Destructor Documentation

◆ EditChordObjectCommand()

zrythm::commands::EditChordObjectCommand::EditChordObjectCommand ( structure::arrangement::ChordObject * chord_object,
const dsp::ChordDescriptor & new_descriptor )
inline

Definition at line 25 of file edit_chord_object_command.h.

Member Function Documentation

◆ id()

int zrythm::commands::EditChordObjectCommand::id ( ) const
inlineoverride

Definition at line 36 of file edit_chord_object_command.h.

◆ mergeWith()

bool zrythm::commands::EditChordObjectCommand::mergeWith ( const QUndoCommand * other)
inlineoverride

Definition at line 38 of file edit_chord_object_command.h.

◆ redo()

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

Definition at line 57 of file edit_chord_object_command.h.

◆ undo()

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

Definition at line 51 of file edit_chord_object_command.h.


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