mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 12:16:30 +01:00
track naming patch from brian; slightly modified F11-bug workaround from brian; undo/redo items in edit menu now show operation to be undone/redone; canvas allocations now handled by an idle handler; region views respond to changes in fade/in/out curves ; undo/redo possible for some fade in/out operations; automation tracks extend to max_frames
git-svn-id: svn://localhost/ardour2/trunk@1134 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
7bbf761321
commit
2bf3ed423f
24 changed files with 254 additions and 205 deletions
|
|
@ -1818,12 +1818,13 @@ Editor::fade_in_drag_finished_callback (ArdourCanvas::Item* item, GdkEvent* even
|
|||
}
|
||||
|
||||
begin_reversible_command (_("change fade in length"));
|
||||
XMLNode &before = arv->audio_region()->get_state();
|
||||
AutomationList& alist = arv->audio_region()->fade_in();
|
||||
XMLNode &before = alist.get_state();
|
||||
|
||||
arv->audio_region()->set_fade_in_length (fade_length);
|
||||
|
||||
XMLNode &after = arv->audio_region()->get_state();
|
||||
session->add_command(new MementoCommand<ARDOUR::AudioRegion>(*arv->audio_region().get(), &before, &after));
|
||||
XMLNode &after = alist.get_state();
|
||||
session->add_command(new MementoCommand<AutomationList>(alist, &before, &after));
|
||||
commit_reversible_command ();
|
||||
fade_in_drag_motion_callback (item, event);
|
||||
}
|
||||
|
|
@ -1913,12 +1914,13 @@ Editor::fade_out_drag_finished_callback (ArdourCanvas::Item* item, GdkEvent* eve
|
|||
}
|
||||
|
||||
begin_reversible_command (_("change fade out length"));
|
||||
XMLNode &before = arv->region()->get_state();
|
||||
AutomationList& alist = arv->audio_region()->fade_out();
|
||||
XMLNode &before = alist.get_state();
|
||||
|
||||
arv->audio_region()->set_fade_out_length (fade_length);
|
||||
|
||||
XMLNode &after = arv->region()->get_state();
|
||||
session->add_command(new MementoCommand<ARDOUR::Region>(*arv->region().get(), &before, &after));
|
||||
XMLNode &after = alist.get_state();
|
||||
session->add_command(new MementoCommand<AutomationList>(alist, &before, &after));
|
||||
commit_reversible_command ();
|
||||
|
||||
fade_out_drag_motion_callback (item, event);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue