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/LoadPatchWindow.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/progs/ingenuity/LoadPatchWindow.h') diff --git a/src/progs/ingenuity/LoadPatchWindow.h b/src/progs/ingenuity/LoadPatchWindow.h index 4f72c6c1..e22b1c1a 100644 --- a/src/progs/ingenuity/LoadPatchWindow.h +++ b/src/progs/ingenuity/LoadPatchWindow.h @@ -21,6 +21,8 @@ #include #include +#include "util/CountedPtr.h" +#include "PatchController.h" namespace Ingenuity { @@ -42,7 +44,7 @@ class LoadPatchWindow : public Gtk::FileChooserDialog public: LoadPatchWindow(BaseObjectType* cobject, const Glib::RefPtr& xml); - void patch_controller(PatchController* pc); + void set_patch(CountedPtr pc); void set_replace() { m_replace = true; } void set_merge() { m_replace = false; } @@ -56,8 +58,8 @@ private: void ok_clicked(); void cancel_clicked(); - PatchController* m_patch_controller; - bool m_replace; + CountedPtr m_patch_controller; + bool m_replace; Gtk::RadioButton* m_poly_from_current_radio; Gtk::RadioButton* m_poly_from_file_radio; -- cgit v1.2.1