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:
parent
78037a532c
commit
64b08a1c70
@ -342,3 +342,14 @@ AutomationRegionView::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 ();
|
||||
}
|
||||
}
|
||||
|
@ -50,6 +50,8 @@ public:
|
||||
|
||||
void init (bool wfd);
|
||||
|
||||
void set_selected (bool yn);
|
||||
|
||||
bool paste (Temporal::timepos_t const & pos,
|
||||
unsigned paste_count,
|
||||
float times,
|
||||
|
@ -66,7 +66,7 @@ public:
|
||||
|
||||
~RegionView ();
|
||||
|
||||
void set_selected (bool yn);
|
||||
virtual void set_selected (bool yn);
|
||||
|
||||
virtual void init (bool what_changed);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user