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

#include <undo.h>

Inheritance diagram for PBD::UndoTransaction:
[legend]

Public Member Functions

 UndoTransaction ()
 
 UndoTransaction (const UndoTransaction &)
 
UndoTransactionoperator= (const UndoTransaction &)
 
 ~UndoTransaction ()
 
void clear ()
 
bool empty () const
 
bool clearing () const
 
void add_command (PBD::Command *const)
 
void remove_command (PBD::Command *const)
 
std::list< PBD::Command * >::size_type size () const
 
void operator() ()
 
void undo ()
 
void redo ()
 
XMLNodeget_state () const
 
void set_timestamp (struct timeval &t)
 
const struct timeval & timestamp () const
 
- Public Member Functions inherited from PBD::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_change (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 (PBD::Command *) const
 
virtual void rdiff (std::vector< PBD::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
virtual ~Destructible ()
 
virtual void drop_references ()
 
- 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 ()
 

Private Member Functions

void about_to_explicitly_delete ()
 

Private Attributes

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

Additional Inherited Members

- Public Attributes inherited from PBD::Stateful
PBD::Signal< void(const PropertyChange &)> PropertyChanged
 
- Public Attributes inherited from PBD::Destructible
PBD::Signal< void()> Destroyed
 
PBD::Signal< void()> DropReferences
 
- Static Public Attributes inherited from PBD::Stateful
static int current_state_version
 
static int loading_state_version
 
- Protected Member Functions inherited from PBD::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 &) const
 
PropertyChange set_values (XMLNode const &)
 
virtual void post_set (const PropertyChange &)
 
virtual void send_change (const PropertyChange &)
 
virtual void mid_thaw (const PropertyChange &)
 
bool regenerate_xml_or_string_ids () const
 
- Protected Attributes inherited from PBD::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 45 of file undo.h.

Constructor & Destructor Documentation

◆ UndoTransaction() [1/2]

PBD::UndoTransaction::UndoTransaction ( )

◆ UndoTransaction() [2/2]

PBD::UndoTransaction::UndoTransaction ( const UndoTransaction )

◆ ~UndoTransaction()

PBD::UndoTransaction::~UndoTransaction ( )

Member Function Documentation

◆ about_to_explicitly_delete()

void PBD::UndoTransaction::about_to_explicitly_delete ( )
private

◆ add_command()

void PBD::UndoTransaction::add_command ( PBD::Command * const  )

◆ clear()

void PBD::UndoTransaction::clear ( )

◆ clearing()

bool PBD::UndoTransaction::clearing ( ) const
inline

Definition at line 55 of file undo.h.

◆ empty()

bool PBD::UndoTransaction::empty ( ) const
virtual

Reimplemented from PBD::Command.

◆ get_state()

XMLNode& PBD::UndoTransaction::get_state ( ) const
virtual

Reimplemented from PBD::Command.

◆ operator()()

void PBD::UndoTransaction::operator() ( )
virtual

Implements PBD::Command.

◆ operator=()

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

◆ redo()

void PBD::UndoTransaction::redo ( )
virtual

Reimplemented from PBD::Command.

◆ remove_command()

void PBD::UndoTransaction::remove_command ( PBD::Command * const  )

◆ set_timestamp()

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

Definition at line 70 of file undo.h.

◆ size()

std::list<PBD::Command*>::size_type PBD::UndoTransaction::size ( ) const
inline

Definition at line 62 of file undo.h.

◆ timestamp()

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

Definition at line 75 of file undo.h.

◆ undo()

void PBD::UndoTransaction::undo ( )
virtual

Implements PBD::Command.

Member Data Documentation

◆ _clearing

bool PBD::UndoTransaction::_clearing
private

Definition at line 83 of file undo.h.

◆ _timestamp

struct timeval PBD::UndoTransaction::_timestamp
private

Definition at line 81 of file undo.h.

◆ actions

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

Definition at line 81 of file undo.h.


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