summaryrefslogtreecommitdiffstats
path: root/src/progs/ingenuity/SubpatchModule.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/SubpatchModule.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/SubpatchModule.h')
-rw-r--r--src/progs/ingenuity/SubpatchModule.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/progs/ingenuity/SubpatchModule.h b/src/progs/ingenuity/SubpatchModule.h
index c530311e..a8e6e971 100644
--- a/src/progs/ingenuity/SubpatchModule.h
+++ b/src/progs/ingenuity/SubpatchModule.h
@@ -21,6 +21,7 @@
#include <string>
#include <libgnomecanvasmm.h>
#include "OmModule.h"
+#include "util/CountedPtr.h"
#include "PatchController.h"
using std::string; using std::list;
@@ -36,7 +37,6 @@ namespace Ingenuity {
class OmFlowCanvas;
class NodeControlWindow;
-class PatchController;
/** A module to represent a subpatch
@@ -46,7 +46,7 @@ class PatchController;
class SubpatchModule : public OmModule
{
public:
- SubpatchModule(OmFlowCanvas* canvas, PatchController* controller);
+ SubpatchModule(OmFlowCanvas* canvas, CountedPtr<PatchController> controller);
virtual ~SubpatchModule() {}
void on_double_click(GdkEventButton* ev);
@@ -55,10 +55,10 @@ public:
void browse_to_patch();
void menu_remove();
- PatchController* patch() { return m_patch; }
+ CountedPtr<PatchController> patch() { return m_patch; }
protected:
- PatchController* m_patch;
+ CountedPtr<PatchController> m_patch;
};