mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 21:55:43 +01:00
a variety of changes to make timeline-region editing-in-pianoroll to start to work
This also removes the useless "new pianoroll window" menu option and action
This commit is contained in:
parent
f052c3ae15
commit
ab39c26f68
16 changed files with 112 additions and 48 deletions
|
|
@ -317,10 +317,19 @@ MidiView::region_going_away ()
|
|||
{
|
||||
_midi_region.reset ();
|
||||
_model.reset ();
|
||||
|
||||
clear_events ();
|
||||
|
||||
connections_requiring_model.drop_connections();
|
||||
region_connections.drop_connections ();
|
||||
}
|
||||
|
||||
void
|
||||
MidiView::set_show_source (bool yn)
|
||||
{
|
||||
_show_source = yn;
|
||||
}
|
||||
|
||||
void
|
||||
MidiView::set_region (std::shared_ptr<MidiRegion> mr)
|
||||
{
|
||||
|
|
@ -334,6 +343,9 @@ MidiView::set_region (std::shared_ptr<MidiRegion> mr)
|
|||
_midi_region->DropReferences.connect (region_connections, invalidator (*this), std::bind (&MidiView::region_going_away, this), gui_context());
|
||||
_midi_region->PropertyChanged.connect (region_connections, invalidator (*this), std::bind (&MidiView::region_resized, this, _1), gui_context());
|
||||
|
||||
size_start_rect ();
|
||||
size_end_rect ();
|
||||
|
||||
set_model (_midi_region->midi_source (0)->model());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue