};
void notify_presentation_info_change ();
- void clear_stripable_selection ();
- void toggle_stripable_selection (boost::shared_ptr<Stripable>);
- void add_stripable_selection (boost::shared_ptr<Stripable>);
- void set_stripable_selection (boost::shared_ptr<Stripable>);
template<class T> void foreach_route (T *obj, void (T::*func)(Route&), bool sort = true);
template<class T> void foreach_route (T *obj, void (T::*func)(boost::shared_ptr<Route>), bool sort = true);
boost::shared_ptr<Route> monitor_out() const { return _monitor_out; }
boost::shared_ptr<Route> master_out() const { return _master_out; }
- boost::weak_ptr<Route> get_editor_mixer() const { return _editor_mixer; }
- void set_editor_mixer (boost::weak_ptr<Route> r) { _editor_mixer = r; EditorMixerChanged(); }
- static PBD::Signal0<void> EditorMixerChanged;
void globally_add_internal_sends (boost::shared_ptr<Route> dest, Placement p, bool);
void globally_set_send_gains_from_track (boost::shared_ptr<Route> dest);
boost::shared_ptr<Route> _master_out;
boost::shared_ptr<Route> _monitor_out;
- boost::weak_ptr<Route> _editor_mixer;
void auto_connect_master_bus ();
}
pthread_mutex_unlock (&_auto_connect_mutex);
}
-
-void
-Session::clear_stripable_selection ()
-{
- StripableList sl;
- get_stripables (sl);
-
- for (StripableList::iterator si = sl.begin(); si != sl.end(); ++si) {
- (*si)->presentation_info().set_selected (false);
- }
-
-}
-
-void
-Session::toggle_stripable_selection (boost::shared_ptr<Stripable> s)
-{
- s->presentation_info().set_selected (!s->presentation_info().selected());
-}
-
-void
-Session::add_stripable_selection (boost::shared_ptr<Stripable> s)
-{
- if (!s->presentation_info().selected ()) {
- s->presentation_info().set_selected (true);
- }
-}
-
-void
-Session::set_stripable_selection (boost::shared_ptr<Stripable> s)
-{
- StripableList sl;
- bool change = false;
-
- get_stripables (sl);
-
- for (StripableList::iterator si = sl.begin(); si != sl.end(); ++si) {
- if ((*si)->presentation_info().selected()) {
- change = true;
- }
-
- (*si)->presentation_info().set_selected (false);
- }
-
- if (!s->presentation_info().selected()) {
- change = true;
- s->presentation_info().set_selected (true);
- }
-
- if (change) {
- // PresentationInfo::SelectionChange (); /* EMIT SIGNAL */
- }
-}