Rework port matrix to use Gtk notebook tabs to select visible groups.

git-svn-id: svn://localhost/ardour2/branches/3.0@6117 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2009-11-18 13:35:31 +00:00
parent ef92349187
commit 73a0cd56f8
16 changed files with 407 additions and 602 deletions

View file

@ -58,7 +58,7 @@ PortMatrixBody::~PortMatrixBody ()
bool
PortMatrixBody::on_expose_event (GdkEventExpose* event)
{
if (_matrix->columns()->empty() || _matrix->rows()->empty()) {
if (_matrix->visible_columns()->bundles().empty() || _matrix->visible_rows()->bundles().empty()) {
/* nothing to connect */
@ -446,7 +446,7 @@ PortMatrixBody::highlight_associated_channels (int dim, ARDOUR::BundleChannel h)
_row_labels->add_channel_highlight (bc[dim]);
}
PortGroup::BundleList const b = _matrix->ports(1 - dim)->bundles ();
PortGroup::BundleList const b = _matrix->visible_ports(1 - dim)->bundles ();
for (PortGroup::BundleList::const_iterator i = b.begin(); i != b.end(); ++i) {
for (uint32_t j = 0; j < i->bundle->nchannels(); ++j) {