Audacity 3.2.0
Classes | Typedefs | Enumerations | Functions
UndoManager.h File Reference
#include <functional>
#include <memory>
#include <vector>
#include "ClientData.h"
#include "Observer.h"
Include dependency graph for UndoManager.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  UndoRedoMessage
 Type of message published by UndoManager. More...
 
class  UndoStateExtension
 Base class for extra information attached to undo/redo states. More...
 
class  UndoRedoExtensionRegistry
 
struct  UndoRedoExtensionRegistry::Entry
 Typically statically constructed. More...
 
struct  UndoState
 
class  UndoStackElem
 Holds one item with description and time range for the UndoManager. More...
 
class  UndoManager
 Maintain a non-persistent list of states of the project, to support undo and redo commands. More...
 

Typedefs

using UndoStack = std::vector< std::unique_ptr< UndoStackElem > >
 

Enumerations

enum class  UndoPush : unsigned char { NONE = 0 , CONSOLIDATE = 1 << 0 , NOAUTOSAVE = 1 << 1 }
 

Functions

UndoPush operator| (UndoPush a, UndoPush b)
 
UndoPush operator& (UndoPush a, UndoPush b)
 

Typedef Documentation

◆ UndoStack

using UndoStack = std::vector <std::unique_ptr<UndoStackElem> >

Definition at line 133 of file UndoManager.h.

Enumeration Type Documentation

◆ UndoPush

enum class UndoPush : unsigned char
strong
Enumerator
NONE 
CONSOLIDATE 
NOAUTOSAVE 

Definition at line 138 of file UndoManager.h.

138 : unsigned char {
139 NONE = 0,
140 CONSOLIDATE = 1 << 0,
141 NOAUTOSAVE = 1 << 1
142};

Function Documentation

◆ operator&()

UndoPush operator& ( UndoPush  a,
UndoPush  b 
)
inline

Definition at line 146 of file UndoManager.h.

147{ return static_cast<UndoPush>(static_cast<int>(a) & static_cast<int>(b)); }
UndoPush
Definition: UndoManager.h:138

◆ operator|()

UndoPush operator| ( UndoPush  a,
UndoPush  b 
)
inline

Definition at line 144 of file UndoManager.h.

145{ return static_cast<UndoPush>(static_cast<int>(a) | static_cast<int>(b)); }