summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_summary.h
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2017-07-18 10:37:35 -0500
committerBen Loftis <ben@harrisonconsoles.com>2017-07-18 10:37:35 -0500
commitea05241771816e69857759f59d6ae0d0d2d8bf38 (patch)
tree9e8d78ba066b9cef100367c6fa5f73a9f359b306 /gtk2_ardour/editor_summary.h
parent8c6d78c188298369e28adc19e577664d9f15567c (diff)
Editor Summary: Changes to behavior
* Remove up/down buttons. * Allow the summary to shrink smaller. * Vertical drag results in zoom. * Scroll-wheel results in zoom. * Tweak mouse cursor to better indicate behaviors. * ToDo: refactor the zooming code.
Diffstat (limited to 'gtk2_ardour/editor_summary.h')
-rw-r--r--gtk2_ardour/editor_summary.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_summary.h b/gtk2_ardour/editor_summary.h
index 7e6b5a0bdd..d237746b9e 100644
--- a/gtk2_ardour/editor_summary.h
+++ b/gtk2_ardour/editor_summary.h
@@ -95,9 +95,12 @@ private:
std::pair<double, double> _start_editor_x;
double _start_mouse_x;
+ double _start_mouse_y;
Position _start_position;
+ bool _begin_dragging;
+
bool _move_dragging;
bool _moved;
std::pair<double, double> _view_rectangle_x;
@@ -107,8 +110,11 @@ private:
std::pair<double, double> _pending_editor_y;
bool _pending_editor_changed;
+ bool _zoom_trim_dragging;
+ Position _zoom_trim_position;
+
bool _zoom_dragging;
- Position _zoom_position;
+ double _zoom_last_y;
bool _old_follow_playhead;
cairo_surface_t* _image;