From 228279d6717e69ffd2d2a886244179635ac27c2b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 11 Jun 2006 03:17:16 +0000 Subject: Got store working directly through SigClientInterface git-svn-id: http://svn.drobilla.net/lad/grauph@22 a436a847-0d15-0410-975c-d299462d15a1 --- src/progs/gtk/PatchController.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/progs/gtk/PatchController.h') diff --git a/src/progs/gtk/PatchController.h b/src/progs/gtk/PatchController.h index de4af5e4..d9491571 100644 --- a/src/progs/gtk/PatchController.h +++ b/src/progs/gtk/PatchController.h @@ -20,6 +20,8 @@ #include #include #include "NodeController.h" +#include "PatchModel.h" +template class CountedPtr; namespace LibOmClient { class PatchModel; @@ -57,11 +59,13 @@ class NodeController; class PatchController : public NodeController { public: - PatchController(PatchModel* model); + PatchController(CountedPtr model); virtual ~PatchController(); + /* virtual void add_to_store(); virtual void remove_from_store(); + */ virtual void destroy(); @@ -101,7 +105,7 @@ public: void enable(); void disable(); - PatchModel* patch_model() const { return (PatchModel*)m_model; } + CountedPtr patch_model() const { return m_patch_model; } void enable_controls_menuitem(); void disable_controls_menuitem(); @@ -112,6 +116,8 @@ private: PatchWindow* m_window; ///< Window currently showing this patch PatchView* m_patch_view; ///< View (canvas) of this patch + CountedPtr m_patch_model; + /** Invisible bin used to store patch view when not shown by a patch window */ Gtk::Alignment m_patch_view_bin; -- cgit v1.2.1