Add convenience methods to test for active drags
This commit is contained in:
@@ -493,6 +493,9 @@ public:
|
||||
return _drags;
|
||||
}
|
||||
|
||||
bool drag_active () const;
|
||||
bool preview_video_drag_active () const;
|
||||
|
||||
void maybe_autoscroll (bool, bool, bool);
|
||||
bool autoscroll_active() const;
|
||||
|
||||
|
||||
@@ -587,6 +587,18 @@ Editor::maybe_autoscroll (bool allow_horiz, bool allow_vert, bool from_headers)
|
||||
}
|
||||
}
|
||||
|
||||
bool
|
||||
Editor::drag_active () const
|
||||
{
|
||||
return _drags->active();
|
||||
}
|
||||
|
||||
bool
|
||||
Editor::preview_video_drag_active () const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool
|
||||
Editor::autoscroll_active () const
|
||||
{
|
||||
|
||||
@@ -447,6 +447,8 @@ public:
|
||||
virtual TrackViewList const & get_track_views () const = 0;
|
||||
|
||||
virtual DragManager* drags () const = 0;
|
||||
virtual bool drag_active () const = 0;
|
||||
virtual bool preview_video_drag_active () const = 0;
|
||||
virtual void maybe_autoscroll (bool, bool, bool from_headers) = 0;
|
||||
virtual void stop_canvas_autoscroll () = 0;
|
||||
virtual bool autoscroll_active() const = 0;
|
||||
|
||||
Reference in New Issue
Block a user