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 "SelectedRegion.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 145 of file UndoManager.h.

Enumeration Type Documentation

◆ UndoPush

enum class UndoPush : unsigned char
strong
Enumerator
NONE 
CONSOLIDATE 
NOAUTOSAVE 

Definition at line 150 of file UndoManager.h.

150 : unsigned char {
151 NONE = 0,
152 CONSOLIDATE = 1 << 0,
153 NOAUTOSAVE = 1 << 1
154};

Function Documentation

◆ operator&()

UndoPush operator& ( UndoPush  a,
UndoPush  b 
)
inline

Definition at line 158 of file UndoManager.h.

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

◆ operator|()

UndoPush operator| ( UndoPush  a,
UndoPush  b 
)
inline

Definition at line 156 of file UndoManager.h.

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