summaryrefslogtreecommitdiffstats
path: root/src/progs/ingenuity/PortController.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/PortController.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/PortController.h')
-rw-r--r--src/progs/ingenuity/PortController.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/progs/ingenuity/PortController.h b/src/progs/ingenuity/PortController.h
index 1a58491b..e28cd21d 100644
--- a/src/progs/ingenuity/PortController.h
+++ b/src/progs/ingenuity/PortController.h
@@ -47,7 +47,6 @@ class OmFlowCanvas;
class PortController : public GtkObjectController
{
public:
- PortController(CountedPtr<PortModel> model);
virtual ~PortController() {}
virtual void destroy();
@@ -63,9 +62,12 @@ public:
void set_path(const Path& new_path);
- CountedPtr<PortModel> port_model() const { return m_model; }
+ CountedPtr<PortModel> port_model() const { return PtrCast<PortModel>(m_model); }
private:
+ friend class ControllerFactory;
+ PortController(CountedPtr<PortModel> model);
+
OmPatchPort* m_patch_port; ///< Port on m_module
OmPortModule* m_module; ///< Port pseudo-module (for patch ports only)
OmPort* m_port; ///< Port on some other canvas module