From 0b1c17f08f8eab4ada52ee98ba7353ec0260d3eb Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 11 Jun 2006 23:33:00 +0000 Subject: New nodes in gtk client working through Store signal interface git-svn-id: http://svn.drobilla.net/lad/grauph@26 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/client/PatchModel.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/libs/client/PatchModel.h') diff --git a/src/libs/client/PatchModel.h b/src/libs/client/PatchModel.h index 12871933..15677c50 100644 --- a/src/libs/client/PatchModel.h +++ b/src/libs/client/PatchModel.h @@ -21,7 +21,9 @@ #include #include #include +#include #include "NodeModel.h" +#include "util/CountedPtr.h" using std::list; using std::string; using std::map; @@ -49,7 +51,7 @@ public: virtual void set_path(const Path& path); NodeModel* get_node(const string& node_name); - void add_node(NodeModel* nm); + void add_node(CountedPtr nm); void remove_node(const string& name); void rename_node(const Path& old_path, const Path& new_path); @@ -68,6 +70,9 @@ public: void enabled(bool b) { m_enabled = b; } bool polyphonic() const; + // Signals + sigc::signal > new_node_sig; + private: // Prevent copies (undefined) PatchModel(const PatchModel& copy); -- cgit v1.2.1