10#ifndef __UNDO_UNDOABLE_ACTION_H__
11#define __UNDO_UNDOABLE_ACTION_H__
31 UA_TRACKLIST_SELECTIONS,
38 UA_ARRANGER_SELECTIONS,
134undoable_action_get_plugins (
UndoableAction * self, GPtrArray * arr);
int undoable_action_undo(UndoableAction *self, GError **error)
Undoes the action.
NONNULL char * undoable_action_to_string(UndoableAction *ua)
Stringizes the action to be used in Undo/Redo buttons.
NONNULL void undoable_action_set_num_actions(UndoableAction *self, int num_actions)
Sets the number of actions for this action.
void undoable_action_save_or_load_port_connections(UndoableAction *self, bool _do, PortConnectionsManager **before, PortConnectionsManager **after)
To be used by actions that save/load port connections.
NONNULL bool undoable_action_needs_pause(UndoableAction *self)
Returns whether the action requires pausing the engine.
UndoableActionType
Type of UndoableAction.
NONNULL void undoable_action_init(UndoableAction *self, UndoableActionType type)
Initializer to be used by implementing actions.
NONNULL bool undoable_action_contains_clip(UndoableAction *self, AudioClip *clip)
Checks whether the action actually contains or refers to the given audio clip.
NONNULL bool undoable_action_can_contain_clip(UndoableAction *self)
Checks whether the action can contain an audio clip.
int undoable_action_do(UndoableAction *self, GError **error)
Performs the action.
NONNULL_ARGS(1) int undo_manager_undo(UndoManager *self
Undo last action.
uint32_t sample_rate_t
Sample rate.
Audio clips for the pool.
Port connections manager.
Base struct to be inherited by implementing undoable actions.
int num_actions
Number of actions to perform.
UndoableActionType type
Undoable action type.
int stack_idx
Index in the stack.
double frames_per_tick
A snapshot of AudioEngine.frames_per_tick when the action is executed.
sample_rate_t sample_rate
Sample rate of this action.