summaryrefslogtreecommitdiffstats
path: root/src/gui/NodeModule.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-06-07 02:44:16 +0000
committerDavid Robillard <d@drobilla.net>2011-06-07 02:44:16 +0000
commitd42b83ffe581651886ca0874b6b75dcbb6127aea (patch)
tree0fd2f18a1c7748fc2f2287cd19d6e546100b6ce3 /src/gui/NodeModule.hpp
parent92de17413f62e973b21447a6001371ca98e025e0 (diff)
downloadingen-d42b83ffe581651886ca0874b6b75dcbb6127aea.tar.gz
ingen-d42b83ffe581651886ca0874b6b75dcbb6127aea.tar.bz2
ingen-d42b83ffe581651886ca0874b6b75dcbb6127aea.zip
Remove use of smart pointers in FlowCanvas entirely.
Since FlowCanvas's containers own their children, there is no real benefit to using smart pointers for objects, though there is overhead. There are no longer any add or remove methods for containers, simply create (new) and destroy (delete) objects and things should work as expected. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3366 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/NodeModule.hpp')
-rw-r--r--src/gui/NodeModule.hpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/NodeModule.hpp b/src/gui/NodeModule.hpp
index 7a62b87f..7bf6f996 100644
--- a/src/gui/NodeModule.hpp
+++ b/src/gui/NodeModule.hpp
@@ -1,4 +1,5 @@
-/* This file is part of In* Copyright 2007-2011 David Robillard <http://drobilla.net>
+/* This file is part of Ingen
+ * Copyright 2007-2011 David Robillard <http://drobilla.net>
*
* Ingen is free software; you can redistribute it and/or modify it under the
* terms of the GNU General Public License as published by the Free Software
@@ -55,9 +56,9 @@ public:
virtual ~NodeModule();
- boost::shared_ptr<Port> port(boost::shared_ptr<const PortModel> model);
+ Port* port(boost::shared_ptr<const PortModel> model);
- void remove_port(SharedPtr<const PortModel> port);
+ void delete_port_view(SharedPtr<const PortModel> port);
virtual void store_location();
void show_human_names(bool b);
@@ -78,7 +79,7 @@ protected:
void rename();
void property_changed(const Raul::URI& predicate, const Raul::Atom& value);
- void add_port(SharedPtr<const PortModel> port, bool resize=true);
+ void new_port_view(SharedPtr<const PortModel> port, bool resize=true);
void value_changed(uint32_t index, const Raul::Atom& value);
void plugin_changed();