13
0

when a parent (audio/MIDI) regionview is selected, raise matching AutomationRegionView

Currently, we only use AutomationRegionView to show MIDI CC data
This commit is contained in:
Paul Davis 2023-06-28 13:40:49 -06:00
parent 78037a532c
commit 64b08a1c70
3 changed files with 14 additions and 1 deletions

View File

@ -342,3 +342,14 @@ AutomationRegionView::exited ()
_line->track_exited(); _line->track_exited();
} }
} }
void
AutomationRegionView::set_selected (bool yn)
{
/* don't call RegionView::set_selected() because for automation
* regionviews, we don't use visual "clues" to indicate selection.
*/
if (yn && _parameter.type() == ARDOUR::MidiCCAutomation) {
group->raise_to_top ();
}
}

View File

@ -50,6 +50,8 @@ public:
void init (bool wfd); void init (bool wfd);
void set_selected (bool yn);
bool paste (Temporal::timepos_t const & pos, bool paste (Temporal::timepos_t const & pos,
unsigned paste_count, unsigned paste_count,
float times, float times,

View File

@ -66,7 +66,7 @@ public:
~RegionView (); ~RegionView ();
void set_selected (bool yn); virtual void set_selected (bool yn);
virtual void init (bool what_changed); virtual void init (bool what_changed);