mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
more MIDI editing tweaks ; flip mouse mode buttons around for MIDI so that "object" mode is the most likely mode for both region \& region editing ; frame handle events (from lincoln's region trimming patch) are now handled more explicitly
git-svn-id: svn://localhost/ardour2/branches/3.0@5600 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
710ba02c70
commit
e7e071db1a
14 changed files with 218 additions and 91 deletions
|
|
@ -235,7 +235,8 @@ CanvasNoteEvent::on_event(GdkEvent* ev)
|
|||
|
||||
case GDK_LEAVE_NOTIFY:
|
||||
//Keyboard::magic_widget_drop_focus();
|
||||
if (! selected()) {
|
||||
_region.note_left (this);
|
||||
if (!selected()) {
|
||||
hide_velocity();
|
||||
}
|
||||
//_region.get_canvas_group()->grab_focus();
|
||||
|
|
@ -255,7 +256,7 @@ CanvasNoteEvent::on_event(GdkEvent* ev)
|
|||
|
||||
switch (_state) {
|
||||
case Pressed: // Drag begin
|
||||
if (editor.current_mouse_mode() == Editing::MouseRange && _region.mouse_state() != MidiRegionView::SelectTouchDragging) {
|
||||
if (editor.current_mouse_mode() == Editing::MouseObject && _region.mouse_state() != MidiRegionView::SelectTouchDragging) {
|
||||
_item->grab(GDK_POINTER_MOTION_MASK | GDK_BUTTON_RELEASE_MASK,
|
||||
Gdk::Cursor(Gdk::FLEUR), ev->motion.time);
|
||||
_state = Dragging;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue