add private object to Editor for use with track drag-n-drop

This commit is contained in:
Paul Davis 2024-05-02 18:22:50 -06:00
parent d8c9c1328c
commit afa5cb0d3d
1 changed files with 31 additions and 0 deletions

View File

@ -2593,6 +2593,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;