Audacity  2.3.1
Classes | Typedefs | Enumerations | Functions
UndoManager.h File Reference
#include "MemoryX.h"
#include <vector>
#include <wx/event.h>
#include <wx/string.h>
#include "ondemand/ODTaskThread.h"
#include "SelectedRegion.h"

Go to the source code of this file.

Classes

struct  UndoState
 
class  UndoManager
 Works with HistoryWindow to provide the Undo functionality. More...
 

Typedefs

using UndoStack = std::vector< std::unique_ptr< UndoStackElem >>
 
using SpaceArray = std::vector< unsigned long long >
 

Enumerations

enum  UndoPush : unsigned char { UndoPush::MINIMAL = 0, UndoPush::CONSOLIDATE = 1 << 0, UndoPush::AUTOSAVE = 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_RESET, wxCommandEvent)
 
UndoPush operator| (UndoPush a, UndoPush b)
 
UndoPush operator& (UndoPush a, UndoPush b)
 

Typedef Documentation

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

Definition at line 91 of file UndoManager.h.

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

Definition at line 89 of file UndoManager.h.

Enumeration Type Documentation

enum UndoPush : unsigned char
strong
Enumerator
MINIMAL 
CONSOLIDATE 
AUTOSAVE 

Definition at line 96 of file UndoManager.h.

96  : unsigned char {
97  MINIMAL = 0,
98  CONSOLIDATE = 1 << 0,
99  AUTOSAVE = 1 << 1
100 };

Function Documentation

UndoPush operator& ( UndoPush  a,
UndoPush  b 
)
inline

Definition at line 104 of file UndoManager.h.

105 { return static_cast<UndoPush>(static_cast<int>(a) & static_cast<int>(b)); }
UndoPush
Definition: UndoManager.h:96
UndoPush operator| ( UndoPush  a,
UndoPush  b 
)
inline

Definition at line 102 of file UndoManager.h.

103 { return static_cast<UndoPush>(static_cast<int>(a) | static_cast<int>(b)); }
UndoPush
Definition: UndoManager.h:96
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_RESET  ,
wxCommandEvent   
)