diff options
author | Carl Hetherington <carl@carlh.net> | 2010-01-16 00:44:56 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-01-16 00:44:56 +0000 |
commit | 5bdc03ab5ce43722e175b5bc139f768e9cb0a744 (patch) | |
tree | 33a867f5bf1aa5251bd3e692d07c237f624ba47f /gtk2_ardour/editor_summary.h | |
parent | d73d3f3652edc8f249f483f1b3bd7594842130bc (diff) |
When dragging the summary viewbox with a click outside the viewbox, clamp x and y
if the drag started below/above or to the left/right of the box, respectively.
Also scale maximum track height in the summary according to the summary's height.
git-svn-id: svn://localhost/ardour2/branches/3.0@6504 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_summary.h')
-rw-r--r-- | gtk2_ardour/editor_summary.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_summary.h b/gtk2_ardour/editor_summary.h index c59210e657..369a72fc28 100644 --- a/gtk2_ardour/editor_summary.h +++ b/gtk2_ardour/editor_summary.h @@ -70,6 +70,11 @@ private: std::pair<double, double> _start_editor_y; double _start_mouse_x; double _start_mouse_y; + enum { + IN_VIEWBOX, + BELOW_OR_ABOVE_VIEWBOX, + TO_LEFT_OR_RIGHT_OF_VIEWBOX + } _start_position; bool _move_dragging; double _x_offset; |