PBD::Signal1<void,MixerStrip*> MixerStrip::CatchDeletion;
MixerStrip::MixerStrip (Mixer_UI& mx, Session* sess, bool in_mixer)
- : AxisView(sess)
+ : SessionHandlePtr (sess)
, RouteUI (sess)
, _mixer(mx)
, _mixer_owned (in_mixer)
}
MixerStrip::MixerStrip (Mixer_UI& mx, Session* sess, boost::shared_ptr<Route> rt, bool in_mixer)
- : AxisView(sess)
+ : SessionHandlePtr (sess)
, RouteUI (sess)
, _mixer(mx)
, _mixer_owned (in_mixer)
}
_route->comment_changed.connect (route_connections, invalidator (*this), boost::bind (&MixerStrip::setup_comment_button, this), gui_context());
- _route->PropertyChanged.connect (route_connections, invalidator (*this), boost::bind (&MixerStrip::property_changed, this, _1), gui_context());
_route->gain_control()->MasterStatusChange.connect (route_connections,
invalidator (*this),
PropertyList* plist = new PropertyList();
- plist->add (Properties::gain, true);
- plist->add (Properties::mute, true);
- plist->add (Properties::solo, true);
+ plist->add (Properties::group_gain, true);
+ plist->add (Properties::group_mute, true);
+ plist->add (Properties::group_solo, true);
group_menu = new RouteGroupMenu (_session, plist);
}
}
void
-MixerStrip::property_changed (const PropertyChange& what_changed)
+MixerStrip::route_property_changed (const PropertyChange& what_changed)
{
- RouteUI::property_changed (what_changed);
-
if (what_changed.contains (ARDOUR::Properties::name)) {
name_changed ();
}
}
}
+bool
+MixerStrip::is_selected () const
+{
+ if (!_route) {
+ return false;
+ }
+
+ return _route->presentation_info().selected();
+}
+
Gdk::Color
MixerStrip::color () const
{