summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_mouse.cc
AgeCommit message (Collapse)Author
2015-01-13when the mouse tool changes, smart mode should have no effect on clearing ↵Ben Loftis
selections
2015-01-11Fix AutomationTrackItem rubberband click thinking it was unhandled.nick_m
Fix several other cases where a single mouse click could cause several (not nested) selection ops. Fix missing selection memento for midi notes and midi commands. Rename some variables. Fix random style issues.
2015-01-02Separate selection operations into their own temporary history mechanism.nick_m
The user can now replay *all* earlier selection operations until the next session undo/redo command, or the completion of a new operation. Nothing relating to selection ops is stored, and selection operation history is begun on first idle. Selection operation history is fundamentally different from the history of operations which act on a selection in terms of both their viewport and the amount of information required to replay them. WRT undo, the user of a selection op doesn't care about the viewport state at the beginning of an op, but rather that at the end of the previous one.
2014-12-30Fix smart mode cursor on audio regions.David Robillard
2014-12-28Fix potential pop of empty enter stack.David Robillard
2014-12-25Context menu for applying edits to note selection.David Robillard
2014-12-24Fix sticky snap mode/type selectors.David Robillard
2014-12-23Fix cursor update on nested entry.David Robillard
For example, if you're in a note and something about the mode changes, it's the underlying region context that needs to change. So, seems we need a stack of entry contexts to deal with this sort of thing. Switching in/out of smart mode still doesn't update immediately because we don't have the y-coordinate needed to update it.
2014-12-22move all (G)UI related configuration parameters into UIConfiguration, not ↵Paul Davis
RCConfiguration
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-18Remove mouse mode toggling.David Robillard
2014-12-18Restore snap when switching to/from internal.David Robillard
2014-12-18Enforce internal/external selection exclusivity.Ben Loftis
2014-12-18Make tools toggle-like by switching to last mode.David Robillard
2014-12-18Remove internal edit mode and add "content" tool.David Robillard
2014-12-18Add editor selection state to session history via a SelectionMemento, whichnick_m
combines selection related editor properties with the current editor selection. The related editor properties are: mouse mode, zoom setting, left frame of the canvas, y origin of the canvas. Selection state now includes region views (storing the underlying region id) and time. This patch also fixes a region mute undo bug.
2014-12-17Remove unused variables.David Robillard
2014-12-14fix up requested color names everywhere.Paul Davis
Thank <deity> for emacs ... space-uncamelcase-word-at-point FTW
2014-12-14initial pass to replace all UIConfiguration::get_XXXXXX() calls with ↵Paul Davis
UIConfiguration::color(name). IMPORTANT: names have not been downcased and spaced yet, so many colors are not found
2014-12-09update_time_selection_display should work when in smart modeBen Loftis
2014-12-07Don't switch to internal when switching to draw.David Robillard
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-12-07Fix and simplify step_mouse_mode.David Robillard
2014-12-07Make draw tool add points to track automation.David Robillard
2014-12-05Make scroll work on MIDI regions when internal.David Robillard
For some reason, grabbing the magic keyboard focus makes scroll stop working regardless of what MRV::canvas_group_event() returns. I can't figure out any reason to grab the keyboard in this case anyway, so I just removed it. Also simlify MRV event handling code in general.
2014-12-05working compilation for new color codePaul Davis
2014-11-16Use an enum for RoundMode instead of magic numbers.David Robillard
No functional changes in this one (for easier auditing), but towards having round up/down only if necessary modes, rather than kludging around that situation with a double round as we do currently.
2014-11-14add abort() to non-reached codeRobin Gareus
This cleans up a lot of false-positives in static analysis and also helps compilers to optimize code paths in general. (tagging the fatal stingstream operator as ‘noreturn’ is far less trivial)
2014-11-14Fix various sticky/broken cursor issues.David Robillard
This still isn't quite right, but it's a lot less broken than before, at least.
2014-10-28don't show x-fade menu when right-clicking on frame handlesRobin Gareus
Fix crash with midi-regions (they have a frame-handle but no x-fade). fixes 2nd part of #5992 (backtrace 20141021-B) This is nicer in one way: When the cursor is "trim" the x-fade context menu is no longer accessible. And a bit worse: The x-fade context menu is only accessible on the small fade-handles (boxes) and on the x-fade itself.
2014-10-21remove "canvasvar_" from all functions related to obtaining values from ↵Paul Davis
ARDOUR_UI::config()
2014-10-21remove mouse zoom mode; bind z to zoom-to-rangePaul Davis
2014-10-21fix stuck key-grab/scrolling.Robin Gareus
Problem: mouse-scrolling over a MIDI region in internal edit mode never released “magic widget focus” (mod keys and global scrolls after that were ignored). -> added to leave_notify. Also, the MouseModeChanged signal needs to be emitted when internal edit, mode changes in order to trigger MidiRegionView::mouse_mode_changed(), which in turn releases the magic focus while still hovering over a MIDI region.
2014-09-19use new ARDOUR::Location signals in GUIPaul Davis
Conflicts: gtk2_ardour/editor_markers.cc
2014-09-17shift-drag on range marker bar creates skip ranges, for nowPaul Davis
2014-09-16escape should reset focus as well as abort drags/clear selectionPaul Davis
2014-08-06More fixes for range-based automation editing.Ben Loftis
-Remove redundant start_grab calls. -Show gain curves in Range mode, so you can see the curves you are selecting
2014-08-05Initial steps towards usable range-based automation editing.Ben Loftis
TODO: needs undo. only works in top quarter of automation lane. selection model feels weird sometimes. needs to show gain curve when you are using Range tool
2014-07-14(Mixbus profile only) tentatively remove the Zoom and Cut tools, to save ↵Ben Loftis
space in the toolbar and reduce some highly redundant functions
2014-07-08cut ops can start on automation tracks tooPaul Davis
2014-07-08cut ops can start with the mouse pointer not over a regionPaul 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 Canvas::re_enter() after changing mouse mode so we get the right cursor ↵Paul Davis
no matter what item we're over; fix return value for button press in cut mode; never change selection in cut mode
2014-07-07add functionality for cut toolPaul Davis
2014-07-07add basics of Cut mouse mode, no functionality yet. Icon images are still ↵Paul Davis
required
2014-07-03fix the naming and behavior of always-play-range to match the button, which ↵Ben Loftis
is follow-edits. when you select a range, the playhead should jump to the start of the range and begin to play the selection. BUT (unlike previous implementation) if the user wants to relocate the playhead, then that should be allowed. The user should always remain in charge of the playhead location. NOTE: your previous config setting will be invalidated. You must re-save a session to overwrite with the new config variable
2014-07-02reinstate same logic, slightly differently implementedm, for choosing ↵Paul Davis
range/object mode when pointer is in smart mode and in a track but not in a region
2014-07-01Merge branch 'ripple-mode-cc' into cairocanvasColin Fletcher
Fix up merge conflicts in gtk2_ardour/editor_mouse.cc gtk2_ardour/editor_ops.cc Also fix up compile errors.
2014-06-30(hopefully) fix smart-mode breakage of xfade operationsPaul Davis
We needed to set the selected regionview from a click when clicking on xfade items, but I also removed duplicate logic for some similar items
2014-06-30context click over a trim handle is semantically equivalent to a context ↵Paul Davis
click on the xfade