diff options
author | Carl Hetherington <carl@carlh.net> | 2009-01-23 21:24:11 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-01-23 21:24:11 +0000 |
commit | f6652f07ae2bfa9d7984c5b6feffd6479faec034 (patch) | |
tree | 8f02ca41d0f56eb20be3f684eefdf29e218c3a1e /gtk2_ardour/bundle_manager.cc | |
parent | 9245b7f95947ae196b8bb734ecb9767a362cccfe (diff) |
Add global port matrix dialogs.
git-svn-id: svn://localhost/ardour2/branches/3.0@4434 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/bundle_manager.cc')
-rw-r--r-- | gtk2_ardour/bundle_manager.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk2_ardour/bundle_manager.cc b/gtk2_ardour/bundle_manager.cc index 1b493348ae..42fbabbbe9 100644 --- a/gtk2_ardour/bundle_manager.cc +++ b/gtk2_ardour/bundle_manager.cc @@ -38,7 +38,7 @@ BundleEditorMatrix::BundleEditorMatrix ( PortGroupList::Mask (PortGroupList::SYSTEM | PortGroupList::OTHER) ) { - _our_bundle = bundle; + _our_bundles.push_back (bundle); } void @@ -61,7 +61,7 @@ BundleEditorMatrix::set_state ( } } -bool +PortMatrix::State BundleEditorMatrix::get_state ( boost::shared_ptr<ARDOUR::Bundle> ab, uint32_t ac, @@ -72,11 +72,11 @@ BundleEditorMatrix::get_state ( ARDOUR::Bundle::PortList const& pl = bb->channel_ports (bc); for (ARDOUR::Bundle::PortList::const_iterator i = pl.begin(); i != pl.end(); ++i) { if (!ab->port_attached_to_channel (ac, *i)) { - return false; + return NOT_ASSOCIATED; } } - return true; + return ASSOCIATED; } void @@ -89,14 +89,14 @@ BundleEditorMatrix::add_channel (boost::shared_ptr<ARDOUR::Bundle> b) return; } - _our_bundle->add_channel (d.get_name()); + _our_bundles.front()->add_channel (d.get_name()); setup (); } void BundleEditorMatrix::remove_channel (boost::shared_ptr<ARDOUR::Bundle> b, uint32_t c) { - _our_bundle->remove_channel (c); + _our_bundles.front()->remove_channel (c); setup (); } |