actions/undoable_action.h file

Undoable actions.

Contents

Classes

struct UndoableAction
Base struct to be inherited by implementing undoable actions.

Enums

enum UndoableActionType { UA_TRACKLIST_SELECTIONS, UA_CHANNEL_SEND, UA_MIXER_SELECTIONS, UA_ARRANGER_SELECTIONS, UA_MIDI_MAPPING, UA_PORT_CONNECTION, UA_PORT, UA_RANGE, UA_TRANSPORT }
Type of UndoableAction.

Typedefs

using UndoableActionType = enum UndoableActionType
Type of UndoableAction.
using UndoableAction = struct UndoableAction
Base struct to be inherited by implementing undoable actions.

Functions

auto undoable_action_init(UndoableAction* self, UndoableActionType type) -> NONNULL void
Initializer to be used by implementing actions.
auto undoable_action_needs_pause(UndoableAction* self) -> NONNULL bool
Returns whether the action requires pausing the engine.
auto undoable_action_can_contain_clip(UndoableAction* self) -> NONNULL bool
Checks whether the action can contain an audio clip.
auto undoable_action_contains_clip(UndoableAction* self, AudioClip* clip) -> NONNULL bool
Checks whether the action actually contains or refers to the given audio clip.
auto undoable_action_set_num_actions(UndoableAction* self, int num_actions) -> NONNULL void
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.
auto undoable_action_do(UndoableAction* self, GError** error) -> int
Performs the action.
auto undoable_action_undo(UndoableAction* self, GError** error) -> int
Undoes the action.
auto undoable_action_to_string(UndoableAction* ua) -> NONNULL char*
Stringizes the action to be used in Undo/Redo buttons.