summaryrefslogtreecommitdiffstats
path: root/src/progs/ingenuity/NewSubpatchWindow.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-09-11 11:10:35 +0000
committerDavid Robillard <d@drobilla.net>2006-09-11 11:10:35 +0000
commitb15864870d34a1188eda93ad215734275037278e (patch)
tree224a1669a29091ea4198425d4a002e448cde8b30 /src/progs/ingenuity/NewSubpatchWindow.h
parent22bf43352ddfc48452d776f10ad4d12161255049 (diff)
downloadingen-b15864870d34a1188eda93ad215734275037278e.tar.gz
ingen-b15864870d34a1188eda93ad215734275037278e.tar.bz2
ingen-b15864870d34a1188eda93ad215734275037278e.zip
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
Diffstat (limited to 'src/progs/ingenuity/NewSubpatchWindow.h')
-rw-r--r--src/progs/ingenuity/NewSubpatchWindow.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/progs/ingenuity/NewSubpatchWindow.h b/src/progs/ingenuity/NewSubpatchWindow.h
index 46fa9e1c..32560dde 100644
--- a/src/progs/ingenuity/NewSubpatchWindow.h
+++ b/src/progs/ingenuity/NewSubpatchWindow.h
@@ -14,13 +14,14 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-
#ifndef NEWSUBPATCHWINDOW_H
#define NEWSUBPATCHWINDOW_H
#include "PluginModel.h"
#include <libglademm/xml.h>
#include <gtkmm.h>
+#include "util/CountedPtr.h"
+#include "PatchController.h"
namespace Ingenuity {
@@ -39,7 +40,7 @@ class NewSubpatchWindow : public Gtk::Window
public:
NewSubpatchWindow(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& xml);
- void patch_controller(PatchController* pc);
+ void set_patch(CountedPtr<PatchController> pc);
void set_next_module_location(double x, double y)
{ m_new_module_x = x; m_new_module_y = y; }
@@ -49,7 +50,7 @@ private:
void ok_clicked();
void cancel_clicked();
- PatchController* m_patch_controller;
+ CountedPtr<PatchController> m_patch_controller;
double m_new_module_x;
double m_new_module_y;