Implement TriggerStrip selection

This also changes TriggerBox Selection to act on release
(like all other selection). Otherwise strip selection will
de-select the TriggerBox on mouse-release.
This commit is contained in:
Robin Gareus 2022-02-03 05:39:48 +01:00
parent fd3d17562c
commit 511ff3290f
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
5 changed files with 148 additions and 2 deletions

View file

@ -403,6 +403,22 @@ TriggerStrip::route_property_changed (const PropertyChange& what_changed)
}
}
void
TriggerStrip::set_selected (bool yn)
{
AxisView::set_selected (yn);
if (selected()) {
global_frame.set_shadow_type (Gtk::SHADOW_ETCHED_OUT);
global_frame.set_name ("MixerStripSelectedFrame");
} else {
global_frame.set_shadow_type (Gtk::SHADOW_IN);
global_frame.set_name ("MixerStripFrame");
}
global_frame.queue_draw ();
}
void
TriggerStrip::route_color_changed ()
{