Add editor selection state to session history via a SelectionMemento, which combines selection related editor properties with the current editor selection

Multimedia / Ardour - nick_m [gmail.com] - 18 December 2014 10:03 UTC

Add editor selection state to session history via a SelectionMemento, which combines selection related editor properties with the current editor selection.

The related editor properties are: mouse mode, zoom setting, left frame of the canvas, y origin of the canvas.

Selection state now includes region views (storing the underlying region id) and time.

This patch also fixes a region mute undo bug.

9af9e17 Add editor selection state to session history via a SelectionMemento, which combines selection related editor properties with the current editor selection.
gtk2_ardour/audio_region_view.cc | 4 +-
gtk2_ardour/automation_line.cc | 14 ++--
gtk2_ardour/automation_region_view.cc | 6 +-
gtk2_ardour/automation_time_axis.cc | 9 +-
gtk2_ardour/crossfade_edit.cc | 4 +-
gtk2_ardour/editor.cc | 62 +++++++++++++-
gtk2_ardour/editor.h | 9 +-
gtk2_ardour/editor_drag.cc | 36 ++++----
gtk2_ardour/editor_locations.cc | 2 +-
gtk2_ardour/editor_markers.cc | 10 ++-
gtk2_ardour/editor_mouse.cc | 5 +-
gtk2_ardour/editor_ops.cc | 149 +++++++++++++++++++--------------
gtk2_ardour/location_ui.cc | 13 +--
gtk2_ardour/midi_region_view.cc | 4 +-
gtk2_ardour/public_editor.h | 8 ++
gtk2_ardour/region_editor.cc | 21 ++---
gtk2_ardour/region_gain_line.cc | 4 +-
gtk2_ardour/region_selection.cc | 1 +
gtk2_ardour/region_selection.h | 1 +
gtk2_ardour/rhythm_ferret.cc | 4 +-
gtk2_ardour/selection.cc | 52 +++++++++++-
gtk2_ardour/selection_memento.cc | 95 +++++++++++++++++++++
gtk2_ardour/selection_memento.h | 34 ++++++++
gtk2_ardour/wscript | 1 +
24 files changed, 414 insertions(+), 134 deletions(-)

  • Share