Better MidiModel command framework, ready to go for all your canvas editing needs.
[ardour.git] / libs / pbd / pbd / undo.h
index 4dfab5178fcc893122c00de0e87f3b450941e81d..5bfccf5a062fdf9bdfac4e625eb0ba9b6e001280 100644 (file)
@@ -1,5 +1,5 @@
 /* 
-   Copyright (C) 2002 Brett Viren & Paul Davis
+    Copyright (C) 2002 Brett Viren & Paul Davis
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -15,7 +15,6 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id$
 */
 
 #ifndef __lib_pbd_undo_h__
@@ -46,16 +45,11 @@ class UndoTransaction : public Command
        void add_command (Command* const);
        void remove_command (Command* const);
 
-        void operator() ();
+       void operator() ();
        void undo();
        void redo();
 
        XMLNode &get_state();
-       
-       void set_name (const std::string& str) {
-               _name = str;
-       }
-       const std::string& name() const { return _name; }
 
        void set_timestamp (struct timeval &t) {
                _timestamp = t;
@@ -68,7 +62,6 @@ class UndoTransaction : public Command
   private:
        std::list<Command*>    actions;
        struct timeval        _timestamp;
-       std::string           _name;
        bool                  _clearing;
 
        friend void command_death (UndoTransaction*, Command *);
@@ -94,8 +87,8 @@ class UndoHistory : public sigc::trackable
        void clear_undo ();
        void clear_redo ();
 
-        XMLNode &get_state(uint32_t depth = 0);
-        void save_state();
+       XMLNode &get_state(uint32_t depth = 0);
+       void save_state();
 
        sigc::signal<void> Changed;