summaryrefslogtreecommitdiffstats
path: root/src/gui/NodeModule.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-11-16 20:10:32 +0000
committerDavid Robillard <d@drobilla.net>2008-11-16 20:10:32 +0000
commit24eb14824c9346ca227a7296cb3f620bcf148410 (patch)
tree99eb4ec5f684e5d8b7a88659d1f81128f27bcb42 /src/gui/NodeModule.hpp
parent77fc40827ed8d713e9cbd8eded2db46aa47ce2d9 (diff)
downloadingen-24eb14824c9346ca227a7296cb3f620bcf148410.tar.gz
ingen-24eb14824c9346ca227a7296cb3f620bcf148410.tar.bz2
ingen-24eb14824c9346ca227a7296cb3f620bcf148410.zip
Hide subpatch module ports on destruction (fix ticket #254).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1730 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/NodeModule.hpp')
-rw-r--r--src/gui/NodeModule.hpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gui/NodeModule.hpp b/src/gui/NodeModule.hpp
index b9425a86..85ae8027 100644
--- a/src/gui/NodeModule.hpp
+++ b/src/gui/NodeModule.hpp
@@ -54,11 +54,10 @@ public:
bool human_names);
virtual ~NodeModule();
-
- boost::shared_ptr<Port> port(const std::string& port_name) {
- return boost::dynamic_pointer_cast<Ingen::GUI::Port>(
- Module::get_port(port_name));
- }
+
+ boost::shared_ptr<Port> port(boost::shared_ptr<PortModel> model);
+
+ void remove_port(SharedPtr<PortModel> port);
virtual void store_location();
void show_human_names(bool b);
@@ -81,7 +80,6 @@ protected:
void set_property(const std::string& predicate, const Raul::Atom& value);
void add_port(SharedPtr<PortModel> port, bool resize=true);
- void remove_port(SharedPtr<PortModel> port);
void value_changed(uint32_t index, const Atom& value);
void initialise_gui_values();