Audacity  3.0.3
Classes | Typedefs | Enumerations | Functions
UndoManager.h File Reference
#include <vector>
#include <wx/event.h>
#include "ClientData.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  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 > >
 
using SpaceArray = std::vector< unsigned long long >
 

Enumerations

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

Functions

 wxDECLARE_EXPORTED_EVENT (AUDACITY_DLL_API, EVT_UNDO_PUSHED, wxCommandEvent)
 
 wxDECLARE_EXPORTED_EVENT (AUDACITY_DLL_API, EVT_UNDO_MODIFIED, wxCommandEvent)
 
 wxDECLARE_EXPORTED_EVENT (AUDACITY_DLL_API, EVT_UNDO_RENAMED, wxCommandEvent)
 
 wxDECLARE_EXPORTED_EVENT (AUDACITY_DLL_API, EVT_UNDO_OR_REDO, wxCommandEvent)
 
 wxDECLARE_EXPORTED_EVENT (AUDACITY_DLL_API, EVT_UNDO_RESET, wxCommandEvent)
 
 wxDECLARE_EXPORTED_EVENT (AUDACITY_DLL_API, EVT_UNDO_PURGE, wxCommandEvent)
 
UndoPush operator| (UndoPush a, UndoPush b)
 
UndoPush operator& (UndoPush a, UndoPush b)
 

Typedef Documentation

◆ SpaceArray

using SpaceArray = std::vector <unsigned long long>

Definition at line 117 of file UndoManager.h.

◆ UndoStack

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

Definition at line 115 of file UndoManager.h.

Enumeration Type Documentation

◆ UndoPush

enum UndoPush : unsigned char
strong
Enumerator
NONE 
CONSOLIDATE 
NOAUTOSAVE 

Definition at line 122 of file UndoManager.h.

122  : unsigned char {
123  NONE = 0,
124  CONSOLIDATE = 1 << 0,
125  NOAUTOSAVE = 1 << 1
126 };

Function Documentation

◆ operator&()

UndoPush operator& ( UndoPush  a,
UndoPush  b 
)
inline

Definition at line 130 of file UndoManager.h.

131 { return static_cast<UndoPush>(static_cast<int>(a) & static_cast<int>(b)); }

◆ operator|()

UndoPush operator| ( UndoPush  a,
UndoPush  b 
)
inline

Definition at line 128 of file UndoManager.h.

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

◆ wxDECLARE_EXPORTED_EVENT() [1/6]

wxDECLARE_EXPORTED_EVENT ( AUDACITY_DLL_API  ,
EVT_UNDO_MODIFIED  ,
wxCommandEvent   
)

◆ wxDECLARE_EXPORTED_EVENT() [2/6]

wxDECLARE_EXPORTED_EVENT ( AUDACITY_DLL_API  ,
EVT_UNDO_OR_REDO  ,
wxCommandEvent   
)

◆ wxDECLARE_EXPORTED_EVENT() [3/6]

wxDECLARE_EXPORTED_EVENT ( AUDACITY_DLL_API  ,
EVT_UNDO_PURGE  ,
wxCommandEvent   
)

◆ wxDECLARE_EXPORTED_EVENT() [4/6]

wxDECLARE_EXPORTED_EVENT ( AUDACITY_DLL_API  ,
EVT_UNDO_PUSHED  ,
wxCommandEvent   
)

◆ wxDECLARE_EXPORTED_EVENT() [5/6]

wxDECLARE_EXPORTED_EVENT ( AUDACITY_DLL_API  ,
EVT_UNDO_RENAMED  ,
wxCommandEvent   
)

◆ wxDECLARE_EXPORTED_EVENT() [6/6]

wxDECLARE_EXPORTED_EVENT ( AUDACITY_DLL_API  ,
EVT_UNDO_RESET  ,
wxCommandEvent   
)
UndoPush::NONE
@ NONE
UndoPush::NOAUTOSAVE
@ NOAUTOSAVE
UndoPush
UndoPush
Definition: UndoManager.h:122
UndoPush::CONSOLIDATE
@ CONSOLIDATE