a highly automated and intuitive digital audio workstation
No Matches
undo_manager.h File Reference

Undo manager. More...

#include "actions/undo_stack.h"
#include "zix/sem.h"
Include dependency graph for undo_manager.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  UndoManager
 Undo manager. More...


#define UNDO_MANAGER   (PROJECT->undo_manager)
 Second and last argument given must be a GError **.


NONNULL void undo_manager_init_loaded (UndoManager *self)
 Inits the undo manager by populating the undo/redo stacks.
WARN_UNUSED_RESULT UndoManagerundo_manager_new (void)
 Inits the undo manager by creating the undo/redo stacks.
int undo_manager_undo (UndoManager *self, GError **error)
 Undo last action.
int undo_manager_redo (UndoManager *self, GError **error)
 Redo last undone 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 UndoableActionundo_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 UndoManagerundo_manager_clone (const UndoManager *src)
NONNULL void undo_manager_free (UndoManager *self)

Detailed Description

Undo manager.

Definition in file undo_manager.h.