From 12cbe6d5023c0a994998feb0177be8b699356848 Mon Sep 17 00:00:00 2001 From: Nick Mainsbridge Date: Sat, 4 Oct 2008 10:38:20 +0000 Subject: Improve scrolling performance for sessions containing hundreds of regions over many tracks by hiding offscreen tracks (scroll faster by making tracks larger, exposing fewer of them). Use distance from screen edges to drive autoscrolling distance. Avoid using canvas coordinates for displacement calculations where possible. Don't redisplay tempo in the colour handler. git-svn-id: svn://localhost/ardour2/branches/3.0@3854 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/time_axis_view.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gtk2_ardour/time_axis_view.h') diff --git a/gtk2_ardour/time_axis_view.h b/gtk2_ardour/time_axis_view.h index 9d0c536a8f..277e4dba44 100644 --- a/gtk2_ardour/time_axis_view.h +++ b/gtk2_ardour/time_axis_view.h @@ -143,6 +143,8 @@ class TimeAxisView : public virtual AxisView, public PBD::Stateful */ virtual guint32 show_at (double y, int& nth, Gtk::VBox *parent); + void clip_to_viewport (); + bool touched (double top, double bot); /** Hides this TrackView */ -- cgit v1.2.3