summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_drag.h
AgeCommit message (Collapse)Author
2016-11-22filter events in HitCreateDrag, remove some code.nick_m
2016-11-21Show cursor in Cut mode on button press at cutting positionTim Mayberry
Previously it would be shown at the mouse cursor position even though the Region is cut/split at the snap/quantize point if no motion occurred.
2016-11-21clean up HitCreateDrag. should be a no-op.nick_m
2016-11-21fix compilation, rename PercussiveCreateDrag -> HitCreateDragnick_m
2016-11-20make it clear that there is no drag threshold for NoteCreateDrag.nick_m
2016-11-18fix incorrect subdivision when dragging/trimming regions using magnetic snap.nick_m
- amends d2d2308588e84
2016-11-11Add option to zoom using button press in the time rulers and dragging verticallyTim Mayberry
This is a common operation used for zooming in other DAWs like Ableton Live and Cubase. To support such a usage pattern without changing the existing behaviour of the ruler area I've made it an option that is false by default. The behaviour of RulerDragZoom is intentionally different than a CursorDrag that occurs in the rest of the ruler area in that it doesn't follow the snap to grid setting and no locate related stuff occurs until button release. There are some issues with responsiveness with more than a few hundred regions or a large amount of MIDI events/notes. Implements feature #6768
2016-11-11remove public pulse methods from TempoMap.nick_m
- the only object whose musical position is not expressed in quarter notes is MetricSection. there is now no need to expose this.
2016-11-11clamp setting tempo via vertical drag.nick_m
- a bit suboptimal. we really need the opposite of _trackview_only to prevent jumping to track canvas scrolled coordinates in the first place.
2016-08-14Resolve potential ambiguity between the constraint modifier and the copy ↵nick_m
modifier when beginning a drag.
2016-07-10remove reference "const int32_t&" -> const int32_t"Robin Gareus
this simplifies lua-bindings and also let's the compiler worry about constant primitive types.
2016-07-10Paste uses exact beats. rework _start_beats calculation in copy-with-offset ↵nick_m
ctor.
2016-07-10Make some musical operations on music-locked regions operate in beats.nick_m
- 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-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