nick_m
a0bd6975d2
Clean up drag modifiers.
...
Button 2 drag now is constrained to initial move axis, removing
all modifiers from this op.
Remove Jump after trim mode.
TrimDrag now has:
Primary for trim anchored to fade.
Secondary for contents trim (as before)
Primary & Tertiary for "non overlap" trim
All drags have Tertiary for relative snap
2015-05-18 01:43:44 +10:00
nick_m
c359f881a1
Relative Snap -make it activated by the tertiary modifier during drag.
...
Disabled/enabled with the shift key. no config stuff at all now.
Move existing (strange) trim feature to primary + tertiary modifiers.
2015-05-17 23:47:01 +10:00
nick_m
91a34c596d
Relative snap - support magnetic mode (hackishly for now)
2015-05-17 04:26:05 +10:00
nick_m
bbafb8f137
Cleanup relative snap code.
2015-05-17 00:23:25 +10:00
nick_m
6831d8a5aa
Fix typo.
2015-05-16 06:10:02 +10:00
nick_m
c8303c8b7e
Revert incorrect region_length() definition.
2015-05-16 04:50:37 +10:00
nick_m
68a8330afc
Relative snap
2015-05-16 04:15:52 +10:00
Robin Gareus
0acdb8b74a
remove a dead variable initialization.
2015-03-29 15:23:27 +02:00
Robin Gareus
57e227fd52
it would have been too much of a good thing.
2015-03-27 20:58:41 +01:00
Robin Gareus
9242ca7a64
dropzone: honor AutoConnectMaster.
2015-03-27 19:22:21 +01:00
Robin Gareus
1fffbb554f
fix some DnD thinko & edgecases.
...
* Handle large (delta > 1) movements into the DZ
which are not due to invalid-drop positions, but
caused by laggy GUI or rapid user movements.
* ignore busses when moving out of the DZ.
2015-03-27 16:23:01 +01:00
Robin Gareus
a1258750ce
fix a few -Wsign-compare
2015-03-27 00:50:27 +01:00
Robin Gareus
70e739b29a
Another DnD fix. fix move onto (but not over) busses.
2015-03-27 00:37:47 +01:00
Robin Gareus
1dfee48139
Heuraka! Nightmarish rework of DnD code.
...
Allow to drag multiple regions from different tracks
to/from the dropzone.
Busses & Automation-lanes are ignored, as are
hidden tracks.
Any region may serve as mouse drag anchor.
fixes #6172 and #6176
2015-03-26 23:33:13 +01:00
Robin Gareus
502361c001
DnD: query mouse y-pos only once.
2015-03-26 23:30:18 +01:00
Ben Loftis
a53bd72697
remove crufty variable
2015-03-25 17:21:13 -05:00
Robin Gareus
7b1d21128b
fix dropzone region ordering
2015-03-25 22:06:05 +01:00
Robin Gareus
3c55eb1e39
DnD, only use track relationship
...
Ignore any routes or automation lanes during
region y-axis distance calculation.
2015-03-25 17:15:32 +01:00
Robin Gareus
a9b2f97395
jot down some thoughts about drop-zone dragging.
2015-03-25 15:57:16 +01:00
Robin Gareus
b90c38639a
fix drags crossing automation lanes.
2015-03-25 14:43:11 +01:00
nick_m
1580c6d635
Fix some strings incorrectly marked for translation.
...
My apologies to translators.
2015-03-25 23:31:23 +11:00
Robin Gareus
f851a0bf3a
two more drop zone checks
...
see also 6cfb6ef
2015-03-25 13:05:24 +01:00
Robin Gareus
6cfb6ef665
fix drop-zone drops
...
There is no special ‘-1’ indicator any more.
i->time_axis_view is unbound to allow relative
positioning when dragging multiple regions.
2015-03-25 12:11:49 +01:00
Robin Gareus
b637c2223f
Major rework of DnD.
...
Allow dragging multiple regions from multiple
tracks across any number of hidden tracks and
automation lanes.
fixes #6176 and #6172
2015-03-25 01:48:29 +01:00
Robin Gareus
92ba2d5780
partial fix for Canvas Region DnD & comments
...
Fixes #6172 and #6176 for single region drags.
Further work is needed if multiple regions on different tracks are dragged over hidden tracks
(see inline comment).
2015-03-24 15:25:39 +01:00
David Robillard
a5db1d588e
Fix dragging regions to/from drop zone ( #6137 ).
...
The previous code assumed that dragging up from the drop zone into the last
track is always valid. This is not true when the type of the dragged region(s)
do not match that route, which resulted in a crash and/or bizarre behaviour.
This took entirely too long to figure out, there are some real nightmares in
the region drag code...
2015-03-15 03:45:26 -04:00
Robin Gareus
80bb72bbe2
fix drag-motion over TAV w/o view()
2015-03-08 03:42:33 +01:00
Paul Davis
3f8583f8d6
stop dragged regions moving to the dropzone during autoscrolling towards the top track
2015-02-18 12:27:11 -05:00
Paul Davis
dd8f2cfe18
fixes for non-overlapping fade in/out even in regions not at zero
2015-02-16 16:27:50 -05:00
Paul Davis
236f549caa
insanely complex fixes for dragging to and from the drop zone.
...
This probably breaks some of ardour's functionality (e.g. layered mode), but seems to
be either just right or very close to it for tracks
Conflicts:
gtk2_ardour/editor_routes.cc
2015-02-13 17:00:30 -05:00
Paul Davis
8304471062
fix up recent cherry-picks from waves' tracks
2015-02-13 16:42:05 -05:00
Paul Davis
6f98f91f18
prevent fade in/fade out on audio regions from overlapping each other
2015-02-13 16:22:08 -05:00
Paul Davis
456374c995
implement axis-limited dragging
2015-02-13 16:21:57 -05:00
Paul Davis
994dff91a2
detect if drags appear to be vertical or horizontal as we cross the move threshold
...
Conflicts:
gtk2_ardour/editor_drag.cc
gtk2_ardour/editor_drag.h
2015-02-13 16:21:37 -05:00
Paul Davis
eb45b3baaa
fix behaviour of region-copy-drag when using the dropzone.
...
The copied regions all had a null playlist pointer, so they all ended up on
the same (new) track
2015-02-13 16:19:06 -05:00
Paul Davis
78d76c197e
allow normal right trimming even if the start of a range is at zero
...
Conflicts:
gtk2_ardour/editor_drag.cc
2015-02-13 16:18:24 -05:00
Paul Davis
bc2271b43e
After dragging from multiple tracks to the dropzone, create the right number of new tracks.
...
This does not address the visual flattening that occurs before the drop
is complete. Doing that is complex and there is no immediate solution
visible. The result after the drop is complete is correct, however.
2015-02-13 16:17:27 -05:00
Paul Davis
ef79d1c4d4
fix last cherry-pick
2015-02-09 14:46:20 -05:00
Paul Davis
abcd70c1d2
After dragging from multiple tracks to the dropzone, create the right number of new tracks.
...
This does not address the visual flattening that occurs before the drop
is complete. Doing that is complex and there is no immediate solution
visible. The result after the drop is complete is correct, however.
Conflicts:
gtk2_ardour/editor_drag.cc
2015-02-09 11:03:03 -05:00
Paul Davis
ec37c83507
fixup cherry-picked changes from Waves Tracks, and fix for Ardour
2015-02-05 20:26:02 -05:00
Paul Davis
7644533103
implement RangeMarkerBarDrag::abort
...
Conflicts:
gtk2_ardour/editor_drag.cc
2015-02-05 19:34:31 -05:00
Paul Davis
e6752fb729
implement MarkerDrag::abort()
2015-02-05 19:33:31 -05:00
Paul Davis
7ffc06b08d
fix issue with region dragging while mouse pointer is in rulers/marker lanes
2015-02-05 17:42:46 -05:00
nick_m
ff13ac8b4f
Clean up Session's _current_trans when aborting a drag.
2015-02-05 23:32:57 +11:00
nick_m
f9b2587458
Make redo action insensitive after new command.
...
Don't erroneously send first_move more than once after autoscroll drag.
2015-02-05 19:57:56 +11:00
Robin Gareus
47f8125b35
amend e3da18fd
2015-01-26 17:14:24 +01:00
Robin Gareus
e3da18fd2f
fix copy/drag abort.
2015-01-24 20:40:07 +01:00
Paul Davis
22435bb53d
make MouseCursors invalid cursor API be static; use to initialize default cursor value in Drag API; use C API to set canvas cursor
2015-01-24 12:26:58 -05:00
Paul Davis
90c1e0ffd2
allow use of null pointer as a valid cursor (implies using cursor of parent window)
2015-01-23 15:19:36 -05:00
Paul Davis
fe08965d91
fix indentation from prior commit
2015-01-23 13:45:21 -05:00