mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
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:
parent
fd3d17562c
commit
511ff3290f
5 changed files with 148 additions and 2 deletions
|
|
@ -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 ()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue