Allow port matrix to show both audio and midi ports at the same time, and use that facility for route IO selectors.

git-svn-id: svn://localhost/ardour2/branches/3.0@7344 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-07-01 01:14:14 +00:00
parent aad230da69
commit 92e4126617
14 changed files with 148 additions and 86 deletions

View file

@ -107,7 +107,7 @@ BundleEditorMatrix::can_add_channel (boost::shared_ptr<Bundle> b) const
}
void
BundleEditorMatrix::add_channel (boost::shared_ptr<Bundle> b)
BundleEditorMatrix::add_channel (boost::shared_ptr<Bundle> b, DataType t)
{
if (b == _bundle) {
@ -118,13 +118,12 @@ BundleEditorMatrix::add_channel (boost::shared_ptr<Bundle> b)
return;
}
/* XXX: allow user to specify type */
_bundle->add_channel (d.get_name(), DataType::AUDIO);
_bundle->add_channel (d.get_name(), t);
setup_ports (OURS);
} else {
PortMatrix::add_channel (b);
PortMatrix::add_channel (b, t);
}
}