ardour
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
UndoHistory Class Reference

#include <undo.h>

Inheritance diagram for UndoHistory:
PBD::ScopedConnectionList

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 ()
 
virtual ~ScopedConnectionList ()
 
void add_connection (const UnscopedConnection &c)
 
void drop_connections ()
 

Public Attributes

PBD::Signal0< void > Changed
 
PBD::Signal0< void > BeginUndoRedo
 
PBD::Signal0< 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 78 of file undo.h.

Constructor & Destructor Documentation

UndoHistory::UndoHistory ( )

Definition at line 167 of file undo.cc.

UndoHistory::~UndoHistory ( )
inline

Definition at line 82 of file undo.h.

Member Function Documentation

void UndoHistory::add ( UndoTransaction ut)

Definition at line 199 of file undo.cc.

void UndoHistory::clear ( )

Definition at line 328 of file undo.cc.

void UndoHistory::clear_redo ( )

Definition at line 301 of file undo.cc.

void UndoHistory::clear_undo ( )

Definition at line 315 of file undo.cc.

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

Definition at line 337 of file undo.cc.

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

Definition at line 92 of file undo.h.

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

Definition at line 91 of file undo.h.

void UndoHistory::redo ( unsigned int  n)

Definition at line 277 of file undo.cc.

unsigned long UndoHistory::redo_depth ( ) const
inline

Definition at line 89 of file undo.h.

void UndoHistory::remove ( UndoTransaction ut)
private

Definition at line 237 of file undo.cc.

void UndoHistory::save_state ( )
void UndoHistory::set_depth ( uint32_t  d)

Definition at line 174 of file undo.cc.

void UndoHistory::undo ( unsigned int  n)

Undo some transactions.

Parameters
nNumber of transactions to undo.

Definition at line 253 of file undo.cc.

unsigned long UndoHistory::undo_depth ( ) const
inline

Definition at line 88 of file undo.h.

Member Data Documentation

bool UndoHistory::_clearing
private

Definition at line 116 of file undo.h.

uint32_t UndoHistory::_depth
private

Definition at line 117 of file undo.h.

PBD::Signal0<void> UndoHistory::BeginUndoRedo

Definition at line 112 of file undo.h.

PBD::Signal0<void> UndoHistory::Changed

Definition at line 111 of file undo.h.

PBD::Signal0<void> UndoHistory::EndUndoRedo

Definition at line 113 of file undo.h.

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

Definition at line 119 of file undo.h.

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

Definition at line 118 of file undo.h.


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