4#ifndef __UNDO_CHORD_ACTION_H__
5#define __UNDO_CHORD_ACTION_H__
85chord_action_do (
ChordAction * self, GError ** error);
88chord_action_undo (
ChordAction * self, GError ** error);
WARN_UNUSED_RESULT UndoableAction * chord_action_new(const ChordDescriptor **chords_before, const ChordDescriptor **chords_after, const ChordDescriptor *chord, const int chord_idx, GError **error)
Creates a new action.
bool chord_action_perform(const ChordDescriptor **chords_before, const ChordDescriptor **chords_after, const ChordDescriptor *chord, const int chord_idx, GError **error)
Wrapper to create action and perform it.
ChordActionType
Type of chord action.
@ CHORD_ACTION_SINGLE
Change single chord.
@ CHORD_ACTION_ALL
Change all chords.
Action for chord pad changes.
ChordDescriptor ** chords_after
Chords after the change.
ChordDescriptor ** chords_before
Chords before the change.
A ChordDescriptor describes a chord and is not linked to any specific object by itself.
Base struct to be inherited by implementing undoable actions.