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

#include <undo.h>

Inheritance diagram for UndoTransaction:
Command PBD::StatefulDestructible PBD::ScopedConnectionList PBD::Stateful PBD::Destructible

Public Member Functions

 UndoTransaction ()
 
 UndoTransaction (const UndoTransaction &)
 
UndoTransactionoperator= (const UndoTransaction &)
 
 ~UndoTransaction ()
 
void clear ()
 
bool empty () const
 
bool clearing () const
 
void add_command (Command *const)
 
void remove_command (Command *const)
 
void operator() ()
 
void undo ()
 
void redo ()
 
XMLNodeget_state ()
 
void set_timestamp (struct timeval &t)
 
const struct timeval & timestamp () const
 
- Public Member Functions inherited from Command
virtual ~Command ()
 
void set_name (const std::string &str)
 
const std::string & name () const
 
virtual int set_state (const XMLNode &, int)
 
- Public Member Functions inherited from PBD::Stateful
 Stateful ()
 
virtual ~Stateful ()
 
virtual bool apply_changes (PropertyBase const &)
 
PropertyChange apply_changes (PropertyList const &)
 
const OwnedPropertyListproperties () const
 
void add_property (PropertyBase &s)
 
void add_extra_xml (XMLNode &)
 
XMLNodeextra_xml (const std::string &str, bool add_if_missing=false)
 
void save_extra_xml (const XMLNode &)
 
const PBD::IDid () const
 
bool set_id (const XMLNode &)
 
void set_id (const std::string &)
 
void reset_id ()
 
void clear_changes ()
 
virtual void clear_owned_changes ()
 
PropertyListget_changes_as_properties (Command *) const
 
virtual void rdiff (std::vector< Command * > &) const
 
bool changed () const
 
virtual PropertyListproperty_factory (const XMLNode &) const
 
virtual void suspend_property_changes ()
 
virtual void resume_property_changes ()
 
bool property_changes_suspended () const
 
- Public Member Functions inherited from PBD::Destructible
 Destructible ()
 
virtual ~Destructible ()
 
void drop_references ()
 
- Public Member Functions inherited from PBD::ScopedConnectionList
 ScopedConnectionList ()
 
virtual ~ScopedConnectionList ()
 
void add_connection (const UnscopedConnection &c)
 
void drop_connections ()
 

Private Member Functions

void about_to_explicitly_delete ()
 

Private Attributes

std::list< Command * > actions
 
struct timeval _timestamp
 
bool _clearing
 

Friends

void command_death (UndoTransaction *, Command *)
 

Additional Inherited Members

- Public Attributes inherited from PBD::Stateful
PBD::Signal1< void, const
PropertyChange & > 
PropertyChanged
 
- Public Attributes inherited from PBD::Destructible
PBD::Signal0< void > Destroyed
 
PBD::Signal0< void > DropReferences
 
- Static Public Attributes inherited from PBD::Stateful
static int current_state_version = 0
 
static int loading_state_version = 0
 
- Protected Member Functions inherited from Command
 Command ()
 
 Command (const std::string &name)
 
- Protected Member Functions inherited from PBD::Stateful
void add_instant_xml (XMLNode &, const std::string &directory_path)
 
XMLNodeinstant_xml (const std::string &str, const std::string &directory_path)
 
void add_properties (XMLNode &)
 
PropertyChange set_values (XMLNode const &)
 
virtual void post_set (const PropertyChange &)
 
virtual void send_change (const PropertyChange &)
 
virtual void mid_thaw (const PropertyChange &)
 
- Protected Attributes inherited from Command
std::string _name
 
- Protected Attributes inherited from PBD::Stateful
XMLNode_extra_xml
 
XMLNode_instant_xml
 
PBD::PropertyChange _pending_changed
 
Glib::Threads::Mutex _lock
 
std::string _xml_node_name
 name of node to use for this object in XML More...
 
OwnedPropertyList_properties
 

Detailed Description

Definition at line 39 of file undo.h.

Constructor & Destructor Documentation

UndoTransaction::UndoTransaction ( )

Definition at line 33 of file undo.cc.

UndoTransaction::UndoTransaction ( const UndoTransaction rhs)

Definition at line 39 of file undo.cc.

UndoTransaction::~UndoTransaction ( )

Definition at line 48 of file undo.cc.

Member Function Documentation

void UndoTransaction::about_to_explicitly_delete ( )
private
void UndoTransaction::add_command ( Command * const  cmd)

Definition at line 79 of file undo.cc.

void UndoTransaction::clear ( )

Definition at line 103 of file undo.cc.

bool UndoTransaction::clearing ( ) const
inline

Definition at line 49 of file undo.h.

bool UndoTransaction::empty ( ) const
virtual

Reimplemented from Command.

Definition at line 97 of file undo.cc.

XMLNode & UndoTransaction::get_state ( void  )
virtual

Reimplemented from Command.

Definition at line 135 of file undo.cc.

void UndoTransaction::operator() ( )
virtual

Implements Command.

Definition at line 114 of file undo.cc.

UndoTransaction & UndoTransaction::operator= ( const UndoTransaction rhs)

Definition at line 69 of file undo.cc.

void UndoTransaction::redo ( )
virtual

Reimplemented from Command.

Definition at line 130 of file undo.cc.

void UndoTransaction::remove_command ( Command * const  action)

Definition at line 91 of file undo.cc.

void UndoTransaction::set_timestamp ( struct timeval &  t)
inline

Definition at line 60 of file undo.h.

const struct timeval& UndoTransaction::timestamp ( ) const
inline

Definition at line 64 of file undo.h.

void UndoTransaction::undo ( )
virtual

Implements Command.

Definition at line 122 of file undo.cc.

Friends And Related Function Documentation

void command_death ( UndoTransaction ut,
Command c 
)
friend

Definition at line 55 of file undo.cc.

Member Data Documentation

bool UndoTransaction::_clearing
private

Definition at line 71 of file undo.h.

struct timeval UndoTransaction::_timestamp
private

Definition at line 70 of file undo.h.

std::list<Command*> UndoTransaction::actions
private

Definition at line 69 of file undo.h.


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