From e71fcaa92d803a83d00171706bc070d9c6e8ae35 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 2 May 2024 18:22:50 -0600 Subject: [PATCH] add private object to Editor for use with track drag-n-drop --- gtk2_ardour/editor.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gtk2_ardour/editor.h b/gtk2_ardour/editor.h index bbc9300f97..7c6842f6df 100644 --- a/gtk2_ardour/editor.h +++ b/gtk2_ardour/editor.h @@ -2598,6 +2598,37 @@ private: friend class Drag; friend class RegionCutDrag; friend class RegionDrag; + + struct TrackDrag { + RouteTimeAxisView* track; + Gtk::EventBox* spacer; + GdkCursor* drag_cursor; + GdkCursor* predrag_cursor; + TimeAxisView* bump_track; + int spacer_order; + double start; + double current; + double previous; + bool have_predrag_cursor; + int direction; + + TrackDrag (RouteTimeAxisView* rtav) + : track (rtav) + , spacer (nullptr) + , drag_cursor (nullptr) + , predrag_cursor (nullptr) + , bump_track (nullptr) + , spacer_order (-1) + , start (-1.) + , current (0.) + , previous (0.) + , have_predrag_cursor (false) + , direction (0) + {} + + }; + TrackDrag* track_drag; + friend class RegionMoveDrag; friend class TrimDrag; friend class MappingTwistDrag;