summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/PortImpl.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-09-29 18:19:17 +0000
committerDavid Robillard <d@drobilla.net>2008-09-29 18:19:17 +0000
commit3168e388d0a951cf665696b970eb5bb354fbb740 (patch)
treeaa2eb0c1887d2d315085944607b66ec8470a4a65 /src/libs/engine/PortImpl.hpp
parent95b1e3fe89477fbb6710d30ac183fab7d8238c14 (diff)
downloadingen-3168e388d0a951cf665696b970eb5bb354fbb740.tar.gz
ingen-3168e388d0a951cf665696b970eb5bb354fbb740.tar.bz2
ingen-3168e388d0a951cf665696b970eb5bb354fbb740.zip
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
Diffstat (limited to 'src/libs/engine/PortImpl.hpp')
-rw-r--r--src/libs/engine/PortImpl.hpp5
1 files changed, 5 insertions, 0 deletions
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<Buffer*>* _buffers;
// Dynamic polyphony