diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2008-05-01 15:58:40 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2008-05-01 15:58:40 +0000 |
commit | e4fceee69f66a62e0a706c1be4159c8953aa046d (patch) | |
tree | 2460516904571daa2dae19ec5002e2025e7496fd /gtk2_ardour/time_axis_view.h | |
parent | 77ebc1fb423e400de7448e0154f65bc73ff51cf1 (diff) |
phase two (of 3 or 4) for zoom-to-region et al
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3300 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/time_axis_view.h')
-rw-r--r-- | gtk2_ardour/time_axis_view.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk2_ardour/time_axis_view.h b/gtk2_ardour/time_axis_view.h index f064359e40..7fa138dc39 100644 --- a/gtk2_ardour/time_axis_view.h +++ b/gtk2_ardour/time_axis_view.h @@ -93,9 +93,13 @@ class TimeAxisView : public virtual AxisView uint32_t height; /* in canvas units */ uint32_t effective_height; /* in canvas units */ - double y_position; - int order; + double height_scaling_factor; /* used to zoom the track height without changing it */ + double y_position; + int order; + uint32_t current_height() const { return (uint32_t) floor (height * height_scaling_factor); } + void set_height_scaling_factor (double); + ArdourCanvas::Group *canvas_display; Gtk::VBox *control_parent; |