From ad558bdafde7e40b5de79b47d8586aec53cf3f7e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 19 Sep 2007 23:54:39 +0000 Subject: Toggling of individual node polyphonic state. git-svn-id: http://svn.drobilla.net/lad/ingen@733 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/GraphObject.hpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/libs/engine/GraphObject.hpp') diff --git a/src/libs/engine/GraphObject.hpp b/src/libs/engine/GraphObject.hpp index 1a6f0d7e..a2cfd5f0 100644 --- a/src/libs/engine/GraphObject.hpp +++ b/src/libs/engine/GraphObject.hpp @@ -31,13 +31,12 @@ using std::string; using Raul::Atom; using Raul::Path; + +namespace Raul { class Maid; } + namespace Ingen { class Patch; -class Node; -class Port; -class ObjectStore; - /** An object on the audio graph - Patch, Node, Port, etc. * @@ -52,8 +51,8 @@ class GraphObject : public Raul::Deletable public: typedef std::map MetadataMap; - GraphObject(GraphObject* parent, const string& name) - : _store(NULL), _parent(parent), _name(name) + GraphObject(GraphObject* parent, const string& name, bool polyphonic=false) + : _parent(parent), _name(name), _polyphonic(polyphonic) { assert(parent == NULL || _name.length() > 0); assert(_name.find("/") == string::npos); @@ -62,6 +61,9 @@ public: virtual ~GraphObject() {} + bool polyphonic() const { return _polyphonic; } + virtual void set_polyphonic(Raul::Maid& maid, bool p) { _polyphonic = p; } + inline GraphObject* parent() const { return _parent; } inline const string& name() const { return _name; } @@ -99,9 +101,9 @@ public: } protected: - ObjectStore* _store; GraphObject* _parent; string _name; + bool _polyphonic; private: MetadataMap _metadata; -- cgit v1.2.1