mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
refactor rubberband drags to take a functor for the no-drag condition
Also move code for adding automation line control points into automation line, rather than in AutomationTimeAxisView (some work still required to finalize this)
This commit is contained in:
parent
e6c0fcf98f
commit
2afdeb519f
11 changed files with 116 additions and 121 deletions
|
|
@ -549,7 +549,7 @@ MidiCueEditor::button_press_handler_1 (ArdourCanvas::Item* item, GdkEvent* event
|
|||
switch (mouse_mode) {
|
||||
case Editing::MouseContent:
|
||||
/* rubberband drag to select automation points */
|
||||
_drags->set (new EditorRubberbandSelectDrag (*this, item), event);
|
||||
_drags->set (new RubberbandSelectDrag (*this, item, [&](GdkEvent* ev, timepos_t const & pos) { return view->automation_rb_click (ev, pos); }), event);
|
||||
break;
|
||||
case Editing::MouseDraw:
|
||||
_drags->set (new AutomationDrawDrag (*this, nullptr, *static_cast<ArdourCanvas::Rectangle*>(item), false, Temporal::BeatTime), event);
|
||||
|
|
@ -1653,8 +1653,3 @@ MidiCueEditor::selectable_owners()
|
|||
return std::list<SelectableOwner*> ();
|
||||
}
|
||||
|
||||
bool
|
||||
MidiCueEditor::rb_click (GdkEvent*, timepos_t const &)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue