summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_drag.cc
AgeCommit message (Collapse)Author
2020-05-05do not clear a MIDI region's note selection when drag-creating a notePaul Davis
2020-05-01Fix contents-drag (ignore snap) #8073Robin Gareus
The "new" snap-to-visual-grid mechanism is not useful for Contents-trim. That would require a relative grid.
2020-04-16use new API to get selected MIDI regions and clear current note selection in ↵Paul Davis
a MIDI region
2020-04-16Fix another typo #8016Robin Gareus
2020-04-14Quick and dirty dropping support for rippling across tracksJohannes Mueller
Ripple editing will be reworked some point after 6.0
2020-04-14Fix #8012 to some extent.Johannes Mueller
As soon as we ripple drag the selected region out of the original track, ::remove_unselected_from_views() is called and the rippled regions on the original track are not covered when ::remove_selected_from_views() is called again in ::finished(). Therefore we need to shift the regions remaining on the original track back and forth again, in order to have them properly in the undo history.
2020-04-13Fix #7007: ::clear_owned_changes() on rippled Playlist before commitJohannes Mueller
RegionMoveDrag::finished_no_copy() calls ::clear_changes() on every selected Region and then sets their positions again before committing the command to the UndoHistory. By doing that no changes from the previous transaction spill over into the current transaction. This needs to be done in a similar way by in RegionRippleDrag::finished() because otherwise a following undo action would also undo the changes of the previous transaction for all the non selected rippled regions. RegionRippleDrags across tracks are still borked, though.
2020-04-05Fix end vs. length bug when creating regions - #7978Robin Gareus
set_length() includes the end. A Region starting at 0 and ending at 0, has a length of 1 (think counting fence-posts, or video-frames).
2020-04-01Remove unused variableRobin Gareus
2020-03-25set Editor::_pending_locate_request to true before sending locate request.Paul Davis
2020-03-25remove accumulated debug outputPaul Davis
2020-03-25more playhead-drag/click locate debuggingPaul Davis
2020-03-25more playhead-drag/click locate debuggingPaul Davis
2020-03-25more playhead-drag/click locate debuggingPaul Davis
2020-03-25more playhead-drag/click locate debuggingPaul Davis
2020-03-25Suppress debug output in optimized buildsRobin Gareus
2020-03-24debug outputPaul Davis
2020-03-24debug outputPaul Davis
2020-01-18rename DoTheRightThing to RollIfAppropriatePaul Davis
2020-01-18Session::request_locate() takes a tri-valued second argument for ↵Paul Davis
"roll-after-locate" This allows callers to defer logic about auto-play/current rolling state and more to TransportFSM where it can be cnentralized and is less ambiguous
2019-11-09Fix endless loop when drag/copy locked regionRobin Gareus
2019-11-09Preview video frame when draggingRobin Gareus
2019-10-10remove two unused variablesPaul Davis
2019-09-05Use Fixed-length when drawing percussive eventsRobin Gareus
Previously adding percussive-hits created sustained notes using the current grid as duration. This allowed to create overlapping notes with the overlap not being visible. Most hardware MIDI drumkits do send an immediate note-off event after each hit (if they send note-offs at all). Ardour now follows suit and does the same when using the draw/edit tool.
2019-08-20Fix uninitialized argument valueRobin Gareus
TrimDrag::aborted() -> TrimDrag::finished() -> TrimDrag::motion () uses event->button.state
2019-08-03Update GPL boilerplate and (C)Robin Gareus
Copyright-holder and year information is extracted from git log. git history begins in 2005. So (C) from 1998..2005 is lost. Also some (C) assignment of commits where the committer didn't use --author.
2019-04-13NO-OP: whitespaceRobin Gareus
This fixes mostly <tab> after <space> and similar <tab> not used for indenting as well as some related code alignment issues.
2019-03-30AutomationRangeDrag tweaks for stacked layer viewRobin Gareus
Use y-pos and height of given TAV *layer* where the drag was initiated.
2019-03-30Remove unused variableRobin Gareus
2019-03-30cont'd AutomationRangeDrag updateRobin Gareus
Properly adding guard-points for all lanes, not just the first found for each range.
2019-03-29cont'd AutomationRangeDrag updates -- safety commitRobin Gareus
This is work in progress towards fixing stacked region's region-gain and multiple discontinuous regions spanning multiple tracks. AutomationRangeDrag::setup() still does not collect all AutomationLine points for certain overlap scenarios. There's more to come...
2019-03-27Implement multi-region AutomationRange drag/dropRobin Gareus
2019-03-19Update GUI, use Session::playlists() getter (2/2)Robin Gareus
2019-02-12Fix for automation-line edits using the Range+Draw tool, when no line is ↵Ben Loftis
already present.
2019-02-12Session-range behavior (gtk2 part)Ben Loftis
* Both the session-start and session-end point should follow the is-free option * Rename the end-is-free option to session-range-is-free, to reflect that change * This fixes the problem: recording before the start marker would move the Start, even if the user had already fixed the End marker.
2018-11-28NO-OP: Clarify function nameRobin Gareus
2018-11-28Use central method to check for engine where requiredRobin Gareus
These are generally places where tracks/busses are created or port connections change.
2018-11-27GUI limitation: Require engine to add/remove tracks/bussesRobin Gareus
2018-07-27new_grid: The Return of the snap_to_X functions.Ben Loftis
We no longer assume that Snap always uses the visible ruler lines. If you want to snap to the grid, and ignore the users zoom scale, use SnapPref::SnapToGrid_Unscaled This fixes 2 (known) oversights: "snap region(s) to grid" and "regions whose start are left of the canvas edge".
2018-02-27Remove some redundant calls to snap_to(). get_preferred_edit_position() ↵Ben Loftis
already did it.
2018-02-11SoloSelection: gui part.Ben Loftis
2018-02-09new_grid: Rewrite of Snap and Grid. (squashed commit)Ben Loftis
Separate Snap from Grid. Lots of naming changes. Multiple simultaneous snap options allowed. Grid is one of the possible Snap options. Grid uses the same data as the rulers. Replace complicated tempo_lines with simple grid_lines. The Grid is zoom-scale-sensitive along with the rulers. If you are zoomed out, grid becomes coarser.
2018-02-09new_snap: Snapped Cursor ( squashed commit )Ben Loftis
Snapped Cursor is a line that follows the edit point, and indicates where the operation will occur. This replaces and extends the line that appears with the Cut tool. New associated preferences: snap_threshold and show_snap_cursor.
2017-10-26remove unused variablesPaul Davis
2017-09-24convert codebase to use Temporal for various time typesPaul Davis
2017-09-18globally change all use of "frame" to refer to audio into "sample".Paul Davis
Generated by tools/f2s. Some hand-editing will be required in a few places to fix up comments related to timecode and video in order to keep the legible
2017-09-18no more per-track varispeedPaul Davis
2017-07-22Calculate clamped tempo stretch ratios using the correct (musical) domainnick_m
2017-07-22Remove redundant beat arg from TempoMap::add_meternick_m
BBT time should be enough to determine the beat.
2017-07-22Disable tempo end/twist drag for meter-locked tempinick_m
It was assumed that the drag takes place within an area of musical time. This is not true for the space before any non-initial meter-locked tempo. In the case of the initial tempo, there is no previous section to perform an end-drag on.