summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_drag.h
AgeCommit message (Collapse)Author
2016-05-28Allow non-musical snap when dragging bbt ruler.nick_m
- probably not what the user wants, unless snapping beats to timecode frames.
2016-05-28Force snap when dragging meters.nick_m
2016-05-28Dragging a meter sets editor snap type to bars during drag.nick_m
2016-05-27Tempo ramps - more bbt dragging work.nick_m
- display prev tempo and tempo at mouse while dragging - simplify ramp dilation somewhat.
2016-05-27Tempo ramps - more bbt ruler dragging work.nick_m
2016-05-27Tempo ramps - add visualtempo curve, dragging bbt or music rulers with ↵nick_m
constraint modifier dilates previous tempo.
2016-05-27Tempo ramps - allow constraint-drag of first tempo.nick_m
2016-05-27Tempo ramps - pressing constraint modifier keys during tempo drag changes ↵nick_m
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-27Tempo ramps - rework mouse dragging of tempo marks, derive beat_at_tempo() ↵nick_m
and tempo_at_beat().
2016-05-27Tempo ramps - allow live updating of tempo markers.nick_m
- all a bit slow, but should be ok once we can lock markers to frames.
2015-11-14Fix #6673 - another prematurely closed undo transaction.nick_m
- 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-10-25Markers use the selection change stack.nick_m
2015-10-24ResizeNoteDrag selection click behaves as NoteDrag's does.nick_m
2015-10-05NOOP, remove trailing tabs/whitespace.Robin Gareus
2015-09-08Allow to override A/V-lock (when moving audio)Robin Gareus
2015-08-20fix "locked" + "locked to video" bug.Robin Gareus
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-07-23rename Marker classRobin Gareus
Classes are in the global namespace. OSX has a flat namespace and OSX32bit/Carbon has a Marker too.
2015-07-16merge fixBen Loftis
2015-06-29make editor_drag.h fully self-contained as a header file (it was missing ↵Paul Davis
more than a dozen necessary fwd decls etc) Conflicts: gtk2_ardour/editor_drag.h
2015-06-18Rework last commit, clicking on an automation line no longer adds history.nick_m
- fixes a crash when clicking on automation lines repeatedly.
2015-06-18Don't add history by clicking a control point, fix control point selection.nick_m
- also make set_selected_control_point_from_click () return something useful.
2015-05-24Fix bug where inserting notes in MouseContent mode disallowed resizing.nick_m
2015-05-23Fix inverted logic of SnapOff with snap modifiers pressed.nick_m
- also clean up, rename and comment some previous hanges.
2015-05-22Small cleanupnick_m
2015-05-22Clean up a bit - should be a no-opnick_m
2015-05-21Allow all drag -related modifiers to be set, re-instate "jump after trim"nick_m
- 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-18Clean up drag modifiers.nick_m
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-17Relative Snap -make it activated by the tertiary modifier during drag.nick_m
Disabled/enabled with the shift key. no config stuff at all now. Move existing (strange) trim feature to primary + tertiary modifiers.
2015-05-17Relative snap - support magnetic mode (hackishly for now)nick_m
2015-05-17Cleanup relative snap code.nick_m
2015-05-16Relative snapnick_m
2015-03-26Heuraka! Nightmarish rework of DnD code.Robin Gareus
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-25remove crufty variableBen Loftis
2015-03-25DnD, only use track relationshipRobin Gareus
Ignore any routes or automation lanes during region y-axis distance calculation.
2015-03-25Major rework of DnD.Robin Gareus
Allow dragging multiple regions from multiple tracks across any number of hidden tracks and automation lanes. fixes #6176 and #6172
2015-02-13fix up recent cherry-picks from waves' tracksPaul Davis
2015-02-13implement axis-limited draggingPaul Davis
2015-02-13detect if drags appear to be vertical or horizontal as we cross the move ↵Paul Davis
threshold Conflicts: gtk2_ardour/editor_drag.cc gtk2_ardour/editor_drag.h
2015-02-05implement RangeMarkerBarDrag::abortPaul Davis
Conflicts: gtk2_ardour/editor_drag.cc
2015-01-24make MouseCursors invalid cursor API be static; use to initialize default ↵Paul Davis
cursor value in Drag API; use C API to set canvas cursor
2015-01-23fix indentation from prior commitPaul Davis
2015-01-23[Summary] Fixed bug 45163: Trim range from right corner of timeline leads ↵GZharun
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-13Fix automation range drag and implement for MIDI.David Robillard
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.
2014-12-20Fix various cursor problems.David Robillard
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-07Unify gain and draw tools.David Robillard
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-11-25Remove dead code.David Robillard
2014-11-24when dragging on the canvas, use x,y pointer coordinates to decide if motion ↵Paul Davis
has occured. Using _last_pointer_frame breaks when dragging to the left of the canvas, because we clamp the value of the frame to >= 0. Motion would step once the pointer crossed the left edge of the canvas because the frame value would always be zero. This is not a problem when using the pointer x,y values which end up appropriately negative under all conditions.
2014-09-17new code to support creating skip markersPaul Davis
2014-07-07some code shuffling to make sure that cut mode always operates at the mouse ↵Paul Davis
location, with (maybe) the right regions
2014-07-07use an EditorCursor when dragging in cut mode to indicate cut positionPaul Davis