29 #include <sigc++/bind.h>
30 #include <sigc++/slot.h>
35 #include <ardourext/misc.h>
62 std::list<PBD::Command*>::size_type
size()
const {
return actions.size(); }
81 std::list<PBD::Command*> actions;
82 struct timeval _timestamp;
95 void undo (
unsigned int n);
96 void redo (
unsigned int n);
100 return UndoList.size ();
104 return RedoList.size ();
109 return (UndoList.empty () ? std::string () : UndoList.back ()->name ());
113 return (RedoList.empty () ? std::string () : RedoList.back ()->name ());
void remove(UndoTransaction *)
PBD::Signal< void()> BeginUndoRedo
unsigned long redo_depth() const
PBD::Signal< void()> EndUndoRedo
void redo(unsigned int n)
XMLNode & get_state(int32_t depth=0)
void undo(unsigned int n)
void add(UndoTransaction *ut)
std::list< UndoTransaction * > UndoList
std::string next_undo() const
std::string next_redo() const
PBD::Signal< void()> Changed
unsigned long undo_depth() const
std::list< UndoTransaction * > RedoList
void about_to_explicitly_delete()
void remove_command(PBD::Command *const)
UndoTransaction(const UndoTransaction &)
void set_timestamp(struct timeval &t)
std::list< PBD::Command * >::size_type size() const
const struct timeval & timestamp() const
void add_command(PBD::Command *const)
XMLNode & get_state() const
sigc::slot< void > UndoAction