diff options
author | Carl Hetherington <carl@carlh.net> | 2009-06-15 01:21:30 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-06-15 01:21:30 +0000 |
commit | ea5827b51cb12a33ca910f6082675a078ae0d486 (patch) | |
tree | 6d1be14c1cb1b58008cf2fca08639e96ab7ff4b8 /gtk2_ardour/editor_summary.h | |
parent | 131a16d96dbab9cf61c8d562b2894ae32551ad23 (diff) |
Allow dragging of the horizontal extents of the summary view box using PrimaryModifier-drag.
git-svn-id: svn://localhost/ardour2/branches/3.0@5194 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_summary.h')
-rw-r--r-- | gtk2_ardour/editor_summary.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_summary.h b/gtk2_ardour/editor_summary.h index e77fdaaa0e..0a279262c1 100644 --- a/gtk2_ardour/editor_summary.h +++ b/gtk2_ardour/editor_summary.h @@ -44,10 +44,25 @@ private: int _height; ///< pixmap height double _pixels_per_frame; ///< pixels per frame for the x axis of the pixmap double _vertical_scale; - bool _dragging; + + bool _move_dragging; double _x_offset; double _y_offset; bool _moved; + + bool _zoom_dragging; + double _mouse_x_start; + double _width_start; + double _zoom_start; + nframes64_t _frames_start; + + enum ZoomPosition { + LEFT, + RIGHT, + NONE + }; + + ZoomPosition _zoom_position; }; #endif |