Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
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...
 

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 UndoManagerundo_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 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)
 

Variables

GError ** error
 

Detailed Description

Undo manager.

Definition in file undo_manager.h.