Comment and (hopefully) simplify Editor::region_drag_motion_callback, fixing problems with dragging regions

to and from tracks in "stacked" display mode.  As a side-effect, enable dragging of regions between layers,
though I'm not entirely sure where this is useful or desirable just yet; dragging regions between layers
currently works in the GUI but has no effect on the model.


git-svn-id: svn://localhost/ardour2/branches/3.0@4389 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2009-01-06 03:18:09 +00:00
parent 780b753639
commit f2058a3f87
15 changed files with 375 additions and 220 deletions

View file

@ -2171,8 +2171,22 @@ RouteTimeAxisView::update_rec_display ()
void
RouteTimeAxisView::set_layer_display (LayerDisplay d)
{
_view->set_layer_display (d);
if (_view) {
_view->set_layer_display (d);
}
}
LayerDisplay
RouteTimeAxisView::layer_display () const
{
if (_view) {
return _view->layer_display ();
}
/* we don't know, since we don't have a _view, so just return something */
return Overlaid;
}
boost::shared_ptr<AutomationTimeAxisView>