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/NodeController.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/progs/gtk/NodeController.h') diff --git a/src/progs/gtk/NodeController.h b/src/progs/gtk/NodeController.h index ed2a6d59..7d732d2f 100644 --- a/src/progs/gtk/NodeController.h +++ b/src/progs/gtk/NodeController.h @@ -21,14 +21,16 @@ #include #include "util/Path.h" #include "GtkObjectController.h" +#include "NodeModel.h" using std::string; using Om::Path; using namespace LibOmClient; +template class CountedPtr; + namespace LibOmClient { class MetadataModel; - class NodeModel; class PortModel; } @@ -48,13 +50,13 @@ class OmFlowCanvas; class NodeController : public GtkObjectController { public: - NodeController(NodeModel* model); + NodeController(CountedPtr model); virtual ~NodeController(); virtual void destroy(); - virtual void add_to_store(); - virtual void remove_from_store(); + /*virtual void add_to_store(); + virtual void remove_from_store();*/ virtual void metadata_update(const string& key, const string& value); @@ -73,7 +75,7 @@ public: void bridge_port(PortController* port) { m_bridge_port = port; } PortController* as_port() { return m_bridge_port; } - NodeModel* node_model() { return (NodeModel*)m_model; } + CountedPtr node_model() { return CountedPtr((NodeModel*)m_model.get()); } NodeControlWindow* control_window() { return m_control_window; } void control_window(NodeControlWindow* cw) { m_control_window = cw; } -- cgit v1.2.1