basic empty skeleton for automation draw drag

This commit is contained in:
Paul Davis 2023-07-09 16:33:16 -06:00
parent 0c8fd48d6f
commit 94f413c399
2 changed files with 49 additions and 0 deletions

View File

@ -7242,3 +7242,38 @@ LollipopDrag::setup_pointer_sample_offset ()
_pointer_offset = _region->parent_rv.region()->source_beats_to_absolute_time (note->note()->time ()).distance (raw_grab_time ());
}
AutomationDrawDrag::AutomationDrawDrag (Editor* editor, ArdourCanvas::Item* i, Temporal::TimeDomain time_domain)
: Drag (editor, i, time_domain)
{
}
AutomationDrawDrag::~AutomationDrawDrag ()
{
}
void
AutomationDrawDrag::start_grab (GdkEvent*, Gdk::Cursor* c)
{
}
void
AutomationDrawDrag::motion (GdkEvent*, bool)
{
}
void
AutomationDrawDrag::finished (GdkEvent*, bool)
{
}
void
AutomationDrawDrag::aborted (bool)
{
}
void
AutomationDrawDrag::setup_pointer_sample_offset ()
{
}

View File

@ -1579,4 +1579,18 @@ class LollipopDrag : public Drag
ArdourCanvas::Lollipop* _primary;
};
class AutomationDrawDrag : public Drag
{
public:
AutomationDrawDrag (Editor*, ArdourCanvas::Item*, Temporal::TimeDomain);
~AutomationDrawDrag ();
void start_grab (GdkEvent *, Gdk::Cursor* c = 0);
void motion (GdkEvent*, bool);
void finished (GdkEvent*, bool);
void aborted (bool);
void setup_pointer_sample_offset ();
};
#endif /* __gtk2_ardour_editor_drag_h_ */