refactor horizontal scrolling to use same code/modifiers in Editor and PianorollMidiView

This commit is contained in:
Paul Davis 2025-11-24 11:22:50 -07:00
parent 3a337b97ea
commit 71ff8ba3e0
5 changed files with 69 additions and 60 deletions

View file

@ -123,6 +123,11 @@ class EditingContext : public ARDOUR::SessionHandlePtr, public AxisViewProvider,
virtual void stop_canvas_autoscroll () = 0;
virtual bool autoscroll_active() const = 0;
void scroll_left_step ();
void scroll_right_step ();
void scroll_left_half_page ();
void scroll_right_half_page ();
virtual void redisplay_grid (bool immediate_redraw) = 0;
virtual Temporal::timecnt_t get_nudge_distance (Temporal::timepos_t const & pos, Temporal::timecnt_t& next) const = 0;