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/progs/ingenuity/LoadSubpatchWindow.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/progs/ingenuity/LoadSubpatchWindow.h') diff --git a/src/progs/ingenuity/LoadSubpatchWindow.h b/src/progs/ingenuity/LoadSubpatchWindow.h index c4696628..e33880e8 100644 --- a/src/progs/ingenuity/LoadSubpatchWindow.h +++ b/src/progs/ingenuity/LoadSubpatchWindow.h @@ -21,6 +21,8 @@ #include "PluginModel.h" #include #include +#include "util/CountedPtr.h" +#include "PatchController.h" namespace Ingenuity { @@ -39,7 +41,7 @@ class LoadSubpatchWindow : public Gtk::FileChooserDialog public: LoadSubpatchWindow(BaseObjectType* cobject, const Glib::RefPtr& xml); - void patch_controller(PatchController* pc); + void set_patch(CountedPtr pc); void set_next_module_location(double x, double y) { m_new_module_x = x; m_new_module_y = y; } @@ -56,7 +58,7 @@ private: void ok_clicked(); void cancel_clicked(); - PatchController* m_patch_controller; + CountedPtr m_patch_controller; double m_new_module_x; double m_new_module_y; -- cgit v1.2.1