nick_m
4eba9b8638
Resolve potential ambiguity between the constraint modifier and the copy modifier when beginning a drag.
2016-08-14 03:04:54 +10:00
140258d8ab
remove reference "const int32_t&" -> const int32_t"
...
this simplifies lua-bindings and also let's the compiler worry about
constant primitive types.
2016-07-10 15:30:41 +02:00
nick_m
93c24e4433
Paste uses exact beats. rework _start_beats calculation in copy-with-offset ctor.
2016-07-10 02:18:36 +10:00
nick_m
2d5238d875
Make some musical operations on music-locked regions operate in beats.
...
- use exact beats to determine frame position.
- see comments in tempo.cc for more.
- this hasn't been done for split yet, but dragging and
trimming are supported.
2016-07-10 02:18:36 +10:00
nick_m
a924e938aa
Allow non-musical snap when dragging bbt ruler.
...
- probably not what the user wants,
unless snapping beats to timecode frames.
2016-05-28 06:50:22 +10:00
nick_m
1c51cbcc82
Force snap when dragging meters.
2016-05-28 02:57:53 +10:00
nick_m
b9f70334b6
Dragging a meter sets editor snap type to bars during drag.
2016-05-28 00:48:18 +10:00
nick_m
5ccfeea5bc
Tempo ramps - more bbt dragging work.
...
- display prev tempo and tempo at mouse while dragging
- simplify ramp dilation somewhat.
2016-05-27 23:38:16 +10:00
nick_m
abac4ce854
Tempo ramps - more bbt ruler dragging work.
2016-05-27 23:38:16 +10:00
nick_m
86b0268e8b
Tempo ramps - add visualtempo curve, dragging bbt or music rulers with constraint modifier dilates previous tempo.
2016-05-27 23:38:16 +10:00
nick_m
a64e46a6b3
Tempo ramps - allow constraint-drag of first tempo.
2016-05-27 23:38:12 +10:00
nick_m
69b6379b23
Tempo ramps - pressing constraint modifier keys during tempo drag changes tempo with vertical movement, incorporating beat constraint (if present).
...
- makes it easy to find suitable accelerandos for hit points in conjunction
with playhead position, beat-locked tempos and initial meter frame.
2016-05-27 23:38:12 +10:00
nick_m
452e484faf
Tempo ramps - rework mouse dragging of tempo marks, derive beat_at_tempo() and tempo_at_beat().
2016-05-27 23:38:11 +10:00
nick_m
340bd42c62
Tempo ramps - allow live updating of tempo markers.
...
- all a bit slow, but should be ok once we can lock
markers to frames.
2016-05-27 23:38:09 +10:00
nick_m
024adf3a4d
Fix #6673 - another prematurely closed undo transaction.
...
- add_midi_region used to commit, resulting in
_region->set_position() adding a command when there was
no current transaction. The sub-bug here was that repeatedly
calling set_position() on the new region resulted in nonsensical
automation movement after the drag.
2015-11-14 03:14:23 +11:00
nick_m
e78a44d4e5
Markers use the selection change stack.
2015-10-25 05:26:44 +11:00
nick_m
c9864b71a0
ResizeNoteDrag selection click behaves as NoteDrag's does.
2015-10-24 01:19:00 +11:00
22b07e0233
NOOP, remove trailing tabs/whitespace.
2015-10-05 16:17:49 +02:00
c315c6f140
Allow to override A/V-lock (when moving audio)
2015-09-08 02:51:58 +02:00
89b0817f83
fix "locked" + "locked to video" bug.
...
previously if some audio region was locked and locked to video,
the audio-region always stayed put and the video could only be
moved forward.
TODO: add an "unlock all" option.
2015-08-20 02:24:27 +02:00
e1f168de11
rename Marker class
...
Classes are in the global namespace.
OSX has a flat namespace and OSX32bit/Carbon has a Marker too.
2015-07-23 17:58:40 +02:00
46c8369328
merge fix
2015-07-16 16:13:24 -05:00
aefd089b88
make editor_drag.h fully self-contained as a header file (it was missing more than a dozen necessary fwd decls etc)
...
Conflicts:
gtk2_ardour/editor_drag.h
2015-06-29 14:18:13 -04:00
nick_m
16109ebcc8
Rework last commit, clicking on an automation line no longer adds history.
...
- fixes a crash when clicking on automation lines repeatedly.
2015-06-18 06:27:37 +10:00
nick_m
639750f815
Don't add history by clicking a control point, fix control point selection.
...
- also make set_selected_control_point_from_click () return
something useful.
2015-06-18 03:48:39 +10:00
nick_m
b86c3f97b0
Fix bug where inserting notes in MouseContent mode disallowed resizing.
2015-05-24 04:04:37 +10:00
nick_m
88477ace25
Fix inverted logic of SnapOff with snap modifiers pressed.
...
- also clean up, rename and comment some previous hanges.
2015-05-23 03:09:48 +10:00
nick_m
37ee083931
Small cleanup
2015-05-22 04:48:34 +10:00
nick_m
7edf0e17bc
Clean up a bit - should be a no-op
2015-05-22 03:09:29 +10:00
nick_m
ae0759ae88
Allow all drag -related modifiers to be set, re-instate "jump after trim"
...
- Copy modifier still doesn't save
- Testers please edit the Extra section of ~/.ardourN/config to allow
defaults to "take"
- Note that the current defaults overlap.
- warning - absolute snap modifier has no default and will be always
"on" unless you set it!
2015-05-21 01:30:57 +10:00
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
68a8330afc
Relative snap
2015-05-16 04:15:52 +10:00
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
a53bd72697
remove crufty variable
2015-03-25 17:21:13 -05:00
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
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
8304471062
fix up recent cherry-picks from waves' tracks
2015-02-13 16:42:05 -05:00
456374c995
implement axis-limited dragging
2015-02-13 16:21:57 -05:00
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
7644533103
implement RangeMarkerBarDrag::abort
...
Conflicts:
gtk2_ardour/editor_drag.cc
2015-02-05 19:34:31 -05:00
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
fe08965d91
fix indentation from prior commit
2015-01-23 13:45:21 -05:00
GZharun
6976a78100
[Summary] Fixed bug 45163: Trim range from right corner of timeline leads Tracks to crash
...
[Details] Crash was provoked because of an attempt to add commands to the session reversible command, but when autoscroll started and trim began with autoscroll the session reversible command was not created for for Trim Drag.
2015-01-23 13:43:52 -05:00
d39d4c1c11
Fix automation range drag and implement for MIDI.
...
Range select rect sticks around now after switching to the draw tool, but
disappears if a note selection is made. Not sure if draw is really the most
appropriate tool here (particularly if we ever implement actual pencil-like
drawing); edit contents seems more appropriate but that would probably cause
more selection issues, so here we are.
2015-01-13 23:30:37 -05:00
David Robillard
670938c8c4
Fix various cursor problems.
...
Add a new scoped cursor system that makes it much harder to screw up and end up
with stick cursors and so on.
2014-12-20 01:13:25 -05:00
603748d68a
Unify gain and draw tools.
...
There might be a few special cases lingering around from attempts at magic tool
business, but this seems to work fine as far as I can tell.
2014-12-07 20:37:46 -05:00
ea5876b836
Remove dead code.
2014-11-25 02:11:44 -05:00