From 3168e388d0a951cf665696b970eb5bb354fbb740 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 29 Sep 2008 18:19:17 +0000 Subject: More context extension work. Clicking the input port on bang in ingen while in edit mode will now send a message to the bang plugin in the message context. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1537 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/PortImpl.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/libs/engine/PortImpl.hpp') diff --git a/src/libs/engine/PortImpl.hpp b/src/libs/engine/PortImpl.hpp index ca21bb4c..be96a910 100644 --- a/src/libs/engine/PortImpl.hpp +++ b/src/libs/engine/PortImpl.hpp @@ -26,6 +26,7 @@ #include "GraphObjectImpl.hpp" #include "interface/DataType.hpp" #include "Buffer.hpp" +#include "Context.hpp" namespace Raul { class Maid; class Atom; } @@ -107,6 +108,9 @@ public: void raise_set_by_user_flag() { _set_by_user = true; } + Context::ID context() const { return _context; } + void set_context(Context::ID c) { _context = c; } + protected: PortImpl(NodeImpl* node, const std::string& name, @@ -130,6 +134,7 @@ protected: bool _set_by_user; Sample _last_broadcasted_value; + Context::ID _context; Raul::Array* _buffers; // Dynamic polyphony -- cgit v1.2.1