summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_mouse.cc
AgeCommit message (Collapse)Author
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.
2016-08-14Resolve potential ambiguity between the constraint modifier and the copy ↵nick_m
modifier when beginning a drag.
2016-07-14enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.hPaul Davis
2016-07-10Edit note dialog fixes.nick_m
- position display is session-relative - Add missing undo to note edit.
2016-07-10Exact beat - provide audio->music mapping for region split.nick_m
- for those not in the know, this series provides a way to remove the temporal distortion introduced when using an audio frame-based gui for music-locked objects. In short, the gui uses an audio frame representation to move objects. It displays the object using frame_at_beat(), quantizing the time value to audio frames. This is fine until the user selects that frame but expects it to be interpreted as a beat. Thus beat_at_frame() would not produce the user-expected beat (temporal quantization error of up to 0.5 audio samples). This is one method of mapping audio time to music time accurately.
2016-06-02various safety checks for the result of dynamic_cast-ing a TimeAxisView to ↵Paul Davis
RouteTimeAxisView Now that we have VCATimeAxisView, this needed to be done, but it also potentially applied with automation
2016-05-28Allow user to have the snap modifier pressed when using the constraint ↵nick_m
modifier to initiate a bbt ruler drah.
2016-05-27Tempo ramps - add visualtempo curve, dragging bbt or music rulers with ↵nick_m
constraint modifier dilates previous tempo.
2016-05-27Tempo ramps - add gui dilation of tempos.nick_m
- a meter can be dragged using the constraint modifier, which sets the previous tempo accordingly. This could be added to the bbt ruler to allow direct dragging of beats and bars, but the exact behavior of that is still undecided. comments? - also preliminary work on the necessary tempos locked to audio-locked meters.
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-03-15change API for CairoWidget::focus_handlerPaul Davis
This functor/closure is responsible for stealing focus from any existing text entry (or whatever else may have focus) when clicking on a CairoWidget or derived class. The old implementation just gave focus back to the editor canvas. The new version walks up the widget packing heirarchy to find a focusable parent (from the CairoWidget for which it is invoked). If no focusable parent is found, it cancels keyboard focus in the toplevel window containing the CairoWidget
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