use session stripable selection API

and remove old ControlProtocol signals to talk to GUI etc.
This commit is contained in:
Paul Davis 2016-07-04 12:45:29 -04:00
parent 57ee61772b
commit 291aec468f
8 changed files with 95 additions and 36 deletions

View file

@ -495,6 +495,41 @@ BasicUI::sample_to_timecode (framepos_t sample, Timecode::Time& timecode, bool u
session->sample_to_timecode (sample, *((Timecode::Time*)&timecode), use_offset, use_subframes);
}
void
BasicUI::toggle_selection (PresentationInfo::order_t o, PresentationInfo::Flag flags)
{
boost::shared_ptr<Stripable> s = session->get_remote_nth_stripable (o, flags);
if (s) {
s->presentation_info().set_selected (!s->presentation_info().selected());
}
}
void
BasicUI::clear_stripable_selection ()
{
session->clear_stripable_selection ();
}
void
BasicUI::toggle_stripable_selection (boost::shared_ptr<Stripable> s)
{
session->toggle_stripable_selection (s);
}
void
BasicUI::add_stripable_selection (boost::shared_ptr<Stripable> s)
{
session->add_stripable_selection (s);
}
void
BasicUI::set_stripable_selection (boost::shared_ptr<Stripable> s)
{
session->set_stripable_selection (s);
}
#if 0
this stuff is waiting to go in so that all UIs can offer complex solo/mute functionality