Add global port matrix dialogs.

git-svn-id: svn://localhost/ardour2/branches/3.0@4434 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington
2009-01-23 21:24:11 +00:00
parent 9245b7f959
commit f6652f07ae
20 changed files with 434 additions and 153 deletions

View File

@@ -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 ();
}