Make fade edits and trim possible on stacked regions.

git-svn-id: svn://localhost/ardour2/branches/3.0@5589 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2009-08-25 21:53:21 +00:00
parent bc18abeba9
commit 33328b868d
4 changed files with 15 additions and 2 deletions

View File

@ -1360,3 +1360,12 @@ AudioRegionView::set_fade_visibility (bool yn)
}
}
}
void
AudioRegionView::update_coverage_frames (LayerDisplay d)
{
RegionView::update_coverage_frames (d);
fade_in_handle->raise_to_top ();
fade_out_handle->raise_to_top ();
}

View File

@ -107,6 +107,7 @@ class AudioRegionView : public RegionView
void reset_fade_out_shape_width (nframes_t);
void set_fade_visibility (bool);
void update_coverage_frames (LayerDisplay);
virtual void entered ();
virtual void exited ();

View File

@ -459,7 +459,7 @@ RegionView::region_sync_changed ()
/* points set below */
sync_mark = new ArdourCanvas::Polygon (*group);
sync_mark = new ArdourCanvas::Polygon (*group);
sync_mark->property_fill_color_rgba() = fill_color;
sync_line = new ArdourCanvas::Line (*group);
@ -647,4 +647,7 @@ RegionView::update_coverage_frames (LayerDisplay d)
/* finish off the last rectangle */
cr->property_x2() = trackview.editor().frame_to_pixel (end - position);
}
frame_handle_start->raise_to_top ();
frame_handle_end->raise_to_top ();
}

View File

@ -87,7 +87,7 @@ class RegionView : public TimeAxisViewItem
virtual void exited () {}
void enable_display(bool yn) { _enable_display = yn; }
void update_coverage_frames (LayerDisplay);
virtual void update_coverage_frames (LayerDisplay);
static sigc::signal<void,RegionView*> RegionViewGoingAway;