diff options
author | Carl Hetherington <carl@carlh.net> | 2009-07-17 13:18:58 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-07-17 13:18:58 +0000 |
commit | 7eea227bcdfcd930458e7638502a4cc1194bae6d (patch) | |
tree | 10f917329a68de06155204c530d5586ffb8c873f /gtk2_ardour/port_matrix.cc | |
parent | 939cff515018f9a5123e90a182dec56efdd7c508 (diff) |
Use track colours in the port matrix.
git-svn-id: svn://localhost/ardour2/branches/3.0@5367 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_matrix.cc')
-rw-r--r-- | gtk2_ardour/port_matrix.cc | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/gtk2_ardour/port_matrix.cc b/gtk2_ardour/port_matrix.cc index 79256df6e0..b2c43ad35a 100644 --- a/gtk2_ardour/port_matrix.cc +++ b/gtk2_ardour/port_matrix.cc @@ -278,17 +278,17 @@ PortMatrix::setup_scrollbars () void PortMatrix::disassociate_all () { - ARDOUR::BundleList a = _ports[0].bundles (); - ARDOUR::BundleList b = _ports[1].bundles (); + PortGroup::BundleList a = _ports[0].bundles (); + PortGroup::BundleList b = _ports[1].bundles (); - for (ARDOUR::BundleList::iterator i = a.begin(); i != a.end(); ++i) { - for (uint32_t j = 0; j < (*i)->nchannels(); ++j) { - for (ARDOUR::BundleList::iterator k = b.begin(); k != b.end(); ++k) { - for (uint32_t l = 0; l < (*k)->nchannels(); ++l) { + for (PortGroup::BundleList::iterator i = a.begin(); i != a.end(); ++i) { + for (uint32_t j = 0; j < i->bundle->nchannels(); ++j) { + for (PortGroup::BundleList::iterator k = b.begin(); k != b.end(); ++k) { + for (uint32_t l = 0; l < k->bundle->nchannels(); ++l) { ARDOUR::BundleChannel c[2] = { - ARDOUR::BundleChannel (*i, j), - ARDOUR::BundleChannel (*k, l) + ARDOUR::BundleChannel (i->bundle, j), + ARDOUR::BundleChannel (k->bundle, l) }; if (get_state (c) == PortMatrixNode::ASSOCIATED) { @@ -376,13 +376,13 @@ PortMatrix::popup_channel_context_menu (int dim, uint32_t N, uint32_t t) ARDOUR::BundleChannel bc; - ARDOUR::BundleList const r = _ports[dim].bundles(); - for (ARDOUR::BundleList::const_iterator i = r.begin(); i != r.end(); ++i) { - if (N < (*i)->nchannels ()) { - bc = ARDOUR::BundleChannel (*i, N); + PortGroup::BundleList const r = _ports[dim].bundles(); + for (PortGroup::BundleList::const_iterator i = r.begin(); i != r.end(); ++i) { + if (N < i->bundle->nchannels ()) { + bc = ARDOUR::BundleChannel (i->bundle, N); break; } else { - N -= (*i)->nchannels (); + N -= i->bundle->nchannels (); } } @@ -464,14 +464,14 @@ PortMatrix::disassociate_all_on_channel (boost::weak_ptr<ARDOUR::Bundle> bundle, return; } - ARDOUR::BundleList a = _ports[1-dim].bundles (); + PortGroup::BundleList a = _ports[1-dim].bundles (); - for (ARDOUR::BundleList::iterator i = a.begin(); i != a.end(); ++i) { - for (uint32_t j = 0; j < (*i)->nchannels(); ++j) { + for (PortGroup::BundleList::iterator i = a.begin(); i != a.end(); ++i) { + for (uint32_t j = 0; j < i->bundle->nchannels(); ++j) { ARDOUR::BundleChannel c[2]; c[dim] = ARDOUR::BundleChannel (sb, channel); - c[1-dim] = ARDOUR::BundleChannel (*i, j); + c[1-dim] = ARDOUR::BundleChannel (i->bundle, j); if (get_state (c) == PortMatrixNode::ASSOCIATED) { set_state (c, false); |