Zrythm
a highly automated and intuitive digital audio workstation
|
Undo manager. More...
Go to the source code of this file.
Data Structures | |
struct | UndoManager |
Undo manager. More... | |
Macros | |
#define | UNDO_MANAGER (PROJECT->undo_manager) |
#define | UNDO_MANAGER_PERFORM_AND_PROPAGATE_ERR(action, err, ...) |
Second and last argument given must be a GError **. | |
Functions | |
NONNULL void | undo_manager_init_loaded (UndoManager *self) |
Inits the undo manager by populating the undo/redo stacks. | |
WARN_UNUSED_RESULT UndoManager * | undo_manager_new (void) |
Inits the undo manager by creating the undo/redo stacks. | |
NONNULL_ARGS (1) int undo_manager_undo(UndoManager *self | |
Undo last action. | |
int | undo_manager_perform (UndoManager *self, UndoableAction *action, GError **error) |
Performs the action and pushes it to the undo stack. | |
NONNULL bool | undo_manager_contains_clip (UndoManager *self, AudioClip *clip) |
Returns whether the given clip is used by any stack. | |
NONNULL void | undo_manager_get_plugins (UndoManager *self, GPtrArray *arr) |
Returns all plugins in the undo stacks. | |
NONNULL UndoableAction * | undo_manager_get_last_action (UndoManager *self) |
Returns the last performed action, or NULL if the stack is empty. | |
NONNULL void | undo_manager_clear_stacks (UndoManager *self, bool free) |
Clears the undo and redo stacks. | |
NONNULL UndoManager * | undo_manager_clone (const UndoManager *src) |
NONNULL void | undo_manager_free (UndoManager *self) |
Variables | |
GError ** | error |
Undo manager.
Definition in file undo_manager.h.