summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_mouse.cc
AgeCommit message (Collapse)Author
2016-02-22remove all tearoffs except the monitor section.Paul Davis
We don't need this functionality anymore as we build on 15 years experience plus the new tabbed structure
2016-01-14Change handling of Midi note selection to eliminate signal emission/delays.Tim Mayberry
Each MidiRegionView(MRV) is connected to the Selection::ClearMidiNoteSelection signal that is used to notify the all MRV instances to clear their note selection. The MRV class also has a private static SelectionCleared signal that is used to signal other MRV instances when their selection has been cleared. When the Selection::ClearMidiNoteSelection signal is emitted it causes each MRV to also emit the SelectionCleared signal. So the emission takes quadratic time. With 1500 MRV instances emission takes about 2.2 seconds on my machine, and some operations like track selection cause it to be emitted 3 times(another issue). The Selection class in the Editor knows which MRV instances have note selections, as it is notified by MidiRegionView whenever the selection count becomes zero or becomes non-zero. Clearing the Note selection should then just be O(N) and direct calls can be used rather than signals. This change removes both the signals and uses the existing references between Selection and MRV class to control note selection. There should be no behavioural changes in Midi note selection with this change.
2015-11-01Clarify context menu for midi notes.nick_m
- right click on a note selects it if unselected or selection empty. - note_context_menu is shown as described in #6348
2015-10-30"End" -> "end" in end point trim command name.nick_m
2015-10-20Select the control point about to be deleted when using shift + right click.nick_m
- fixes incorrect selection changes when doing this.
2015-10-20Allow adding / toggling rubber band selection of automation control points.nick_m
2015-10-20Show verbose cursor control point values in MouseContent mode as well.nick_m
2015-10-20Region gain point selection behaves as per track automation.nick_m
2015-10-20Make control point selection more consistent.nick_m
- disallow simultaneous events via ControlList::editor_add () - clicking on an automation line selects the points that define it. - don't 'flash' a region selection when using mousedraw mode. - cp click selection resembles region selection. - region gain points respect snap modifier (a la automation points).
2015-10-18disable follow-edits with external sync #6577Robin Gareus
2015-10-05NOOP, remove trailing tabs/whitespace.Robin Gareus
2015-10-04globally remove all trailing whitespace from ardour code base.Paul Davis
Paul Davis was responsible for introducing almost all of this.
2015-09-16Remove ardour_ui.h header inclusionTim Mayberry
2015-09-16Move UIConfiguration Singleton into UIConfiguration headerTim Mayberry
This removes the direct dependence on ardour_ui.h from 39 files
2015-08-14Fix bug #6337, clicking in canvas without session loaded causes crashTim Mayberry
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-06-21Automation selection fixes.nick_m
- display selected comtrol points in region gain lines - display selected points in internal edit mode - allow dragging of region gain lines in MouseContent mode
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-06-17Unbreak region brush drag wrt undo, avoid some dangling commands in the guinick_m
- also allow moving of automation lines in internal mouse mode. - this is also a first pass at ensuring that if an operation does nothing, avoid an undo entry.
2015-06-01Fix some visual loopholes when switching tools inside a region:Ben Loftis
switching to Grab should show the fade handles... ...switching away from grab should hide them. Also, change "always show gain" preference to show lines, but not control points.
2015-03-25Fix some strings incorrectly marked for translation.nick_m
My apologies to translators.
2015-03-17fix very unlikely null pointer dereference.Robin Gareus
2015-03-14Don't set the following dialogs to be transients for the editor:nick_m
Control point dialog Edit note dialog Both types of tempo dialog Both types of meter dialog.
2015-02-05ContentEdit drag on empty MIDI track should not create new midi regionsBen Loftis
2015-01-26ignore context menu click events, notably during drag but also for a couple ↵Paul Davis
of other purposes Conflicts: gtk2_ardour/editor_canvas_events.cc
2015-01-18Fix some ignored region selection changes (probably others).nick_m
Fix ignored right click track selection change.
2015-01-15Reduce selection loss when changing mouse modes.nick_m
Never change selection when smart mode toggled.
2015-01-15A test for less brutall deselection on mouse mode change.nick_m
Mostly stops toggling smart mode from doing anything to the selection.
2015-01-14toggling smart mode is just an option.Ben Loftis
it should not force mouse-mode to Object it should not clear the current object selection
2015-01-13Remove drag code from automation region view.David Robillard
Let the editor handle it like (almost) everything else.
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.
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