mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 03:36:32 +01:00
basic empty skeleton for automation draw drag
This commit is contained in:
parent
0c8fd48d6f
commit
94f413c399
2 changed files with 49 additions and 0 deletions
|
|
@ -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 ()
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue