diff options
Diffstat (limited to 'libs/pbd/pbd/command.h')
-rw-r--r-- | libs/pbd/pbd/command.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libs/pbd/pbd/command.h b/libs/pbd/pbd/command.h index 5a7290bc89..c6c3c8d3fd 100644 --- a/libs/pbd/pbd/command.h +++ b/libs/pbd/pbd/command.h @@ -22,10 +22,12 @@ #ifndef __lib_pbd_command_h__ #define __lib_pbd_command_h__ +#include <string> + +#include "pbd/signals.h" #include "pbd/statefuldestructible.h" -#include <boost/utility.hpp> -class Command : public PBD::StatefulDestructible, public boost::noncopyable +class Command : public PBD::StatefulDestructible, public PBD::ScopedConnectionList { public: virtual ~Command() { /* NOTE: derived classes must call drop_references() */ } @@ -34,7 +36,7 @@ public: void set_name (const std::string& str) { _name = str; } const std::string& name() const { return _name; } - + virtual void undo() = 0; virtual void redo() { (*this)(); } |