From b15864870d34a1188eda93ad215734275037278e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 11 Sep 2006 11:10:35 +0000 Subject: Switched homebrew CountedPtr to boost::shared_ptr. Factories for patch windows, controller. Robustness updated in many places. Tons of cleanups, rewrites, bugfixes, etc. git-svn-id: http://svn.drobilla.net/lad/ingen@128 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/client/PatchModel.h | 4 +++- 1 file changed, 3 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 c15f7746..db444de2 100644 --- a/src/libs/client/PatchModel.h +++ b/src/libs/client/PatchModel.h @@ -40,7 +40,7 @@ class PatchModel : public NodeModel { public: PatchModel(const string& patch_path, uint poly) - : NodeModel(patch_path), + : NodeModel("ingen:patch", patch_path), m_enabled(false), m_poly(poly) {} @@ -50,6 +50,8 @@ public: virtual void set_path(const Path& path); + void add_child(CountedPtr c); + CountedPtr get_node(const string& node_name); void add_node(CountedPtr nm); void remove_node(const string& name); -- cgit v1.2.1