Ardour  9.0-pre0-582-g084a23a80d
PBD::UndoHistory Class Reference

#include <undo.h>

Inheritance diagram for PBD::UndoHistory:
[legend]

Public Member Functions

 UndoHistory ()
 
 ~UndoHistory ()
 
void add (UndoTransaction *ut)
 
void undo (unsigned int n)
 
void redo (unsigned int n)
 
unsigned long undo_depth () const
 
unsigned long redo_depth () const
 
std::string next_undo () const
 
std::string next_redo () const
 
void clear ()
 
void clear_undo ()
 
void clear_redo ()
 
XMLNodeget_state (int32_t depth=0)
 
void save_state ()
 
void set_depth (uint32_t)
 
- Public Member Functions inherited from PBD::ScopedConnectionList
 ScopedConnectionList ()
 
 ScopedConnectionList (const ScopedConnectionList &)=delete
 
ScopedConnectionListoperator= (const ScopedConnectionList &)=delete
 
virtual ~ScopedConnectionList ()
 
void add_connection (const UnscopedConnection &c)
 
void drop_connections ()
 

Public Attributes

PBD::Signal< void()> Changed
 
PBD::Signal< void()> BeginUndoRedo
 
PBD::Signal< void()> EndUndoRedo
 

Private Member Functions

void remove (UndoTransaction *)
 

Private Attributes

bool _clearing
 
uint32_t _depth
 
std::list< UndoTransaction * > UndoList
 
std::list< UndoTransaction * > RedoList
 

Detailed Description

Definition at line 88 of file undo.h.

Constructor & Destructor Documentation

◆ UndoHistory()

PBD::UndoHistory::UndoHistory ( )

◆ ~UndoHistory()

PBD::UndoHistory::~UndoHistory ( )
inline

Definition at line 92 of file undo.h.

Member Function Documentation

◆ add()

void PBD::UndoHistory::add ( UndoTransaction ut)

◆ clear()

void PBD::UndoHistory::clear ( )

◆ clear_redo()

void PBD::UndoHistory::clear_redo ( )

◆ clear_undo()

void PBD::UndoHistory::clear_undo ( )

◆ get_state()

XMLNode& PBD::UndoHistory::get_state ( int32_t  depth = 0)

◆ next_redo()

std::string PBD::UndoHistory::next_redo ( ) const
inline

Definition at line 111 of file undo.h.

◆ next_undo()

std::string PBD::UndoHistory::next_undo ( ) const
inline

Definition at line 107 of file undo.h.

◆ redo()

void PBD::UndoHistory::redo ( unsigned int  n)

◆ redo_depth()

unsigned long PBD::UndoHistory::redo_depth ( ) const
inline

Definition at line 102 of file undo.h.

◆ remove()

void PBD::UndoHistory::remove ( UndoTransaction )
private

◆ save_state()

void PBD::UndoHistory::save_state ( )

◆ set_depth()

void PBD::UndoHistory::set_depth ( uint32_t  )

◆ undo()

void PBD::UndoHistory::undo ( unsigned int  n)

◆ undo_depth()

unsigned long PBD::UndoHistory::undo_depth ( ) const
inline

Definition at line 98 of file undo.h.

Member Data Documentation

◆ _clearing

bool PBD::UndoHistory::_clearing
private

Definition at line 138 of file undo.h.

◆ _depth

uint32_t PBD::UndoHistory::_depth
private

Definition at line 139 of file undo.h.

◆ BeginUndoRedo

PBD::Signal<void()> PBD::UndoHistory::BeginUndoRedo

Definition at line 134 of file undo.h.

◆ Changed

PBD::Signal<void()> PBD::UndoHistory::Changed

Definition at line 133 of file undo.h.

◆ EndUndoRedo

PBD::Signal<void()> PBD::UndoHistory::EndUndoRedo

Definition at line 135 of file undo.h.

◆ RedoList

std::list<UndoTransaction*> PBD::UndoHistory::RedoList
private

Definition at line 141 of file undo.h.

◆ UndoList

std::list<UndoTransaction*> PBD::UndoHistory::UndoList
private

Definition at line 140 of file undo.h.


The documentation for this class was generated from the following file: