From c8ae7295e911c62cf9dedf90187656937cc18cbb Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 30 Jul 2016 13:10:13 -0400 Subject: Add undo support --- src/server/events/Delta.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/server/events/Delta.hpp') diff --git a/src/server/events/Delta.hpp b/src/server/events/Delta.hpp index e9d1970b..b1f2d66a 100644 --- a/src/server/events/Delta.hpp +++ b/src/server/events/Delta.hpp @@ -1,6 +1,6 @@ /* This file is part of Ingen. - Copyright 2007-2015 David Robillard + Copyright 2007-2016 David Robillard Ingen is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free @@ -76,6 +76,7 @@ public: bool pre_process(); void execute(ProcessContext& context); void post_process(); + void undo(Interface& target); private: enum class SpecialType { @@ -107,6 +108,9 @@ private: ControlBindings::Key _binding; Type _type; + Resource::Properties _added; + Resource::Properties _removed; + SPtr _old_bindings; boost::optional _preset; -- cgit v1.2.1