diff options
author | Hans Fugal <hans@fugal.net> | 2006-07-29 03:17:11 +0000 |
---|---|---|
committer | Hans Fugal <hans@fugal.net> | 2006-07-29 03:17:11 +0000 |
commit | 1f1c4981de73b13d0b7617d8ebe89d9f22dddec3 (patch) | |
tree | 90ab3942960de1af673d8d2b4423f0b09dd839b4 /gtk2_ardour/region_gain_line.cc | |
parent | 277b771a978b10580a46e19f19ae0cf2d8819f46 (diff) |
Compiles, but doesn't link. The link errors are mostly expected and are
tomorrow's task.
git-svn-id: svn://localhost/ardour2/branches/undo@719 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/region_gain_line.cc')
-rw-r--r-- | gtk2_ardour/region_gain_line.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gtk2_ardour/region_gain_line.cc b/gtk2_ardour/region_gain_line.cc index 2faa63151b..ebcf65cedd 100644 --- a/gtk2_ardour/region_gain_line.cc +++ b/gtk2_ardour/region_gain_line.cc @@ -1,5 +1,6 @@ #include <ardour/curve.h> #include <ardour/audioregion.h> +#include <pbd/memento_command.h> #include "region_gain_line.h" #include "regionview.h" @@ -47,7 +48,7 @@ AudioRegionGainLine::start_drag (ControlPoint* cp, float fraction) { AutomationLine::start_drag(cp,fraction); if (!rv.region.envelope_active()) { - trackview.session().add_command(MementoUndoCommand<AudioRegion>(rv.region, rv.region.get_state())); + trackview.session().add_command(new MementoUndoCommand<AudioRegion>(rv.region, rv.region.get_state())); rv.region.set_envelope_active(false); } } @@ -67,12 +68,12 @@ AudioRegionGainLine::remove_point (ControlPoint& cp) XMLNode &before = rv.region.get_state(); rv.region.set_envelope_active(true); XMLNode &after = rv.region.get_state(); - trackview.session().add_command(MementoCommand<AudioRegion>(rv.region, before, after)); + trackview.session().add_command(new MementoCommand<AudioRegion>(rv.region, before, after)); } alist.erase (mr.start, mr.end); - trackview.editor.current_session()->add_command (MementoCommand<AudioRegionGainLine>(*this, before, get_state())); + trackview.editor.current_session()->add_command (new MementoCommand<AudioRegionGainLine>(*this, before, get_state())); trackview.editor.current_session()->commit_reversible_command (); trackview.editor.current_session()->set_dirty (); } @@ -82,7 +83,7 @@ AudioRegionGainLine::end_drag (ControlPoint* cp) { if (!rv.region.envelope_active()) { rv.region.set_envelope_active(true); - trackview.session().add_command(MementoRedoCommand<AudioRegion>(rv.region, rv.region.get_state())); + trackview.session().add_command(new MementoRedoCommand<AudioRegion>(rv.region, rv.region.get_state())); } AutomationLine::end_drag(cp); } |