summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_mouse.cc
AgeCommit message (Collapse)Author
2020-05-05MIDI bindings etc. should work while in draw mode, not just internal editPaul Davis
The only real difference is in what the mouse does, so keys should work the same
2020-05-01when a MIDI region has a note selected with none previously, cancel existing ↵Paul Davis
MIDI region/note selection
2020-04-29only activate MIDI editing bindings if in actual internal edit mode.Paul Davis
Draw mode does not as internal editing for these purposes
2020-04-16changes to deal with region/note selection when changing into/out of ↵Paul Davis
internal edit mode Also, activate MIDI editing actions so that they are effective in internal edit mode
2020-04-16NOOP: use braces as per style guidePaul 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-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-09-29Allow the Cut tool to appear in Mixbus.Ben Loftis
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-04-09Another round of whitespace fixesRobin Gareus
2019-04-08NO-OP: whitespace, alignmentRobin Gareus
2019-04-08NO-OP: whitespace, indentRobin Gareus
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-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-29NO-OP: remove unused variableRobin Gareus
2019-03-27Implement multi-region AutomationRange drag/dropRobin Gareus
2019-02-28Consolidate ToggleAction cast, use new APIRobin Gareus
Furthermore we can assume that all Actions are registered and Unregistered actions will ::abort() execution.
2019-02-26Fix crash when pressing "Esc" without a sessionRobin Gareus
Ardour's UI can process a key-binding or emit the Escape() signal without a loaded session or when unloading a session.
2018-12-10use ActionManager namespace, rather than ActionMap objects, and remove all ↵Paul Davis
per-context action maps
2018-08-10Likely fix for jittery snapped-cursor when dragging a region.Ben Loftis
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-07-27new_grid: Add options for rulers_follow_grid and grid_follows_internalBen Loftis
2018-02-24NO-OP: whitespaceRobin Gareus
- remove trailing whitespace - remove space after opening brackets and before closing brackets - add space around operators - do not use '//' for multi-line comments, do not use "//" on line-start to comment-out code breaking indenting (-Wmisleading-indent) - do add a single space after comment-start /*{SPACE}... or //{SPACE}... - reserve duplicate whitespace " " for alignment, remove other duplicate whitespace - use established "TODO" and "XXX" (highlighted keywords) - remove equal-sign series "====" (those indicate merge conflicts)
2018-02-17Fix a few warningsBen Loftis
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-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-22Only add a new tempo or meter on click if the primary modifier is pressednick_m
Being able to add with any modifier can confuse a user who expected a tempo-altering drag.
2017-07-22Remove double-nested reversible command when note editingnick_m
2017-07-17Remove ArdourPrompter wrapperRobin Gareus
2017-07-01NO-OP whitespace (updated GH PR #357)Thomas Brand
2017-05-05use CoreSelection for track selectionPaul Davis
2017-02-27back to using shift-ctrl for pinch drag. set colours of affected curves.nick_m
2017-02-27highlight the tempo curve that is to be altered, modify text to suit.nick_m
2017-02-27remove tempo end drag (the control drag on the curve). a;ter tempo marker drag.nick_m
- holding down shift before initiating a tempo mark drag alters the end tempo of the previous one as before, but this is now a separate drag. - restore vertical dragging of the tempo mark to alter start/ end tempo. shift during the makrker drag alters start tempo. xontrol + shift during the drag alters end tempo.
2017-02-27rework tempo editing.nick_m
most changes are due to a new design where tempo discontinuities at the beginning of a ramped section may be set. this allows easier mapping of live performance, especially in the common case of a ramped ritard before the beginning of a new section. feature summary: holding constraint modifier (shift) while dragging the BBT ruler area drags the tempo lines by changing the start tempo (as before) holding copy modifier (control) while dragging the BBT ruler area drags the tempo lines by changing the end tempo (ahem. not quite there) dragging a tempo mark while holding constraint (shift) will change the previous end tempo to match the marker position *worth trying*. holding constraint and copy modifier (control + shift) while dragging the BBT ruler area attempts to'pinch' or twist the surrounding tempi sp that later ones are not repositioned (currently suffereng from rounding errors)
2017-02-04rework snapnick_m
snap now fills in a struct (MusicFrame) which contins a snapped frame along with a music divisor. this gives useful information wrt magnetic snap which may or may not have rounded to an exact musical position. region position may now be set musically (using quarter notes for now). this patch fixes several problems in the current code: - dragging a list of music-locked regions now maintains correct musical offsets within the list. - splitting regions using magnetic snap works correctly (#7192) - cut drag should now work correctly with magnetic snap. - musical length of split midi regions is no longer frame based.
2017-01-10avoid locate when clicking in region fade handles in smart mode+follow editsPaul Davis
2016-12-19Follow Edits => Follow RangeBen Loftis
* "Follow Edits" button had several behaviors that confused users. * "Follow Range" only has 2 behaviors: ** Click anywhere in Range mode (or Smart mode) to locate the playhead. ** When you select a Range, "Play" will play the selected range.
2016-12-13Further fixes to non-cxx11 enabled buildsTim Mayberry
Hopefully all that is necessary this time
2016-12-13Add option to Zoom to Selection on double clickTim Mayberry
Currently implemented for Region and Range selections. The new option is false/off by default to maintain existing behaviour. I'm not sure it should require another option, perhaps Zoom to Selection should be the default and accessing the region properties dialog can be via Modifier+double click, but further changes can be made on user feedback etc. Related: #7112
2016-11-23clicking on an automation line selects adjacent points correctly.nick_m
2016-09-06use moved version of reset_focus()Paul Davis
2016-08-20Amend last commit - remove some code.nick_m
2016-08-20Swap tempo/meter colours when hovering. Use entered marker for these as well.nick_m
- Note : entered_marker modifies the 'p' press, locating to the currently hovered-over marker.