From 660fd702af13ace2d0399e47d5e9a644a6e3a8d7 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 7 Nov 2009 20:33:41 +0000 Subject: Various tweaks to the bundle manager. git-svn-id: svn://localhost/ardour2/branches/3.0@6030 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/bundle.cc | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'libs/ardour/bundle.cc') diff --git a/libs/ardour/bundle.cc b/libs/ardour/bundle.cc index cd416c6a67..4f2198fd41 100644 --- a/libs/ardour/bundle.cc +++ b/libs/ardour/bundle.cc @@ -432,3 +432,37 @@ Bundle::connected_to (boost::shared_ptr other, AudioEngine & engine) return true; } + +/** Set the type of the ports in this Bundle. + * @param t New type. + */ +void +Bundle::set_type (DataType t) +{ + _type = t; + emit_changed (TypeChanged); +} + +void +Bundle::set_ports_are_inputs () +{ + _ports_are_inputs = true; + emit_changed (DirectionChanged); +} + +void +Bundle::set_ports_are_outputs () +{ + _ports_are_inputs = false; + emit_changed (DirectionChanged); +} + +/** Set the name. + * @param n New name. + */ +void +Bundle::set_name (string const & n) +{ + _name = n; + emit_changed (NameChanged); +} -- cgit v1.2.3