mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 03:36:32 +01:00
Add convenience methods to test for active drags
This commit is contained in:
parent
3cecc3d26b
commit
a701882e66
3 changed files with 17 additions and 0 deletions
|
|
@ -493,6 +493,9 @@ public:
|
||||||
return _drags;
|
return _drags;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool drag_active () const;
|
||||||
|
bool preview_video_drag_active () const;
|
||||||
|
|
||||||
void maybe_autoscroll (bool, bool, bool);
|
void maybe_autoscroll (bool, bool, bool);
|
||||||
bool autoscroll_active() const;
|
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
|
bool
|
||||||
Editor::autoscroll_active () const
|
Editor::autoscroll_active () const
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -447,6 +447,8 @@ public:
|
||||||
virtual TrackViewList const & get_track_views () const = 0;
|
virtual TrackViewList const & get_track_views () const = 0;
|
||||||
|
|
||||||
virtual DragManager* drags () 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 maybe_autoscroll (bool, bool, bool from_headers) = 0;
|
||||||
virtual void stop_canvas_autoscroll () = 0;
|
virtual void stop_canvas_autoscroll () = 0;
|
||||||
virtual bool autoscroll_active() const = 0;
|
virtual bool autoscroll_active() const = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue