summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor.cc
AgeCommit message (Collapse)Author
2018-05-08Replace the check for SnapPref, which went missing. Some functions (like ↵Ben Loftis
playhead_to_next_grid) can request GridOnly.
2018-02-27Reinstate the ability to split regions while dragging playhead. I think ↵Ben Loftis
this was unintentionally lost.
2018-02-26Switch CDFrame grid to use MinSec ruler rather than Sample ruler.Ben Loftis
2018-02-26Rename SMPTE enum back to Timecode.Ben Loftis
2018-02-26Fix a rather large naming thinko: GridTypeSamples should be CDFrames.Ben Loftis
2018-02-24Snap-to-grid should not invalidate other snap options. This was a leftover ↵Ben Loftis
behavior from prior iterations of Snap+Grid.
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-24Fix/amend a23a8ebcad7.Robin Gareus
Updated condition to check for transport_rolling to include preroll and count-in (speed is != 0 during pre-roll and count-in, but transport is not actually rolling).
2018-02-23Use transport_stopped() instead of speed check.Ben Loftis
2018-02-23Do not interpolate playhead when stopped.Ben Loftis
This fixes a bug where, for a few seconds after transport stops, the users zoom+panning would get hijacked by the follow_playhead behavior, because the playhead was still "hunting".
2018-02-19Add drop-shadow decorators to menu bar and transport toolbar.Ben Loftis
Allow status bar to fill available width.
2018-02-17Tweak packing to line-up button edges with transport toolbar.Ben Loftis
2018-02-17GTKOSX is not a valid check. Use __APPLE__Ben Loftis
2018-02-17Fix a few warningsBen Loftis
2018-02-14Revert TRIANGLE_WIDTH for mac. Must be a pango/cairo issue on mac.Ben Loftis
2018-02-13COMBO_TRIANGLE_WIDTH should be an odd value.Ben Loftis
2018-02-12Re-pack Editor Toolbar:Ben Loftis
Move zoom tools to right of toolbar. Tweak numeric (mode) keybindings to more closely match the order they appear in the UI. Add some new default keybindings.
2018-02-12Timecode instead of SMPTE.Ben Loftis
2018-02-12Tweak combo-box sizing to match actual triangle size. Tweak size of ↵Ben Loftis
grid_type_selector.
2018-02-11Fix potential crash in snap_to_grid (grid-mark list is empty).Ben Loftis
2018-02-11SoloSelection: gui part.Ben Loftis
2018-02-10Copy+Paste thinko: use passed-in variable instead of member variable. Maybe ↵Ben Loftis
fix potential crash.
2018-02-09Fix potential crash with EditAtSelectedMarker, when no marker is selected.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-21Tweak 842d758e: selection & move into viewRobin Gareus
Use separate editor + mixer flags for moving selected tracks into view. Changing selection in the Editor will only pan the mixer-view and vice- versa. This fixes an issue with the track that is being clicked-on to be moved out of view (due to groups)
2017-10-01These are "Frames" :)Robin Gareus
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-09-11Fix crash when hiding multiple tracksRobin Gareus
Editor::hide_track_in_display() -> EditorRoutes::hide_track_in_display() and ensuing calls to sync the treeview may modify the selection (de-select hidden tracks) and invalidate selection->tracks
2017-08-26Editor zoom: add zoom_to_extents()Ben Loftis
2017-08-26Editor zooming: Initialize leftmost_frame, for sessions that start at high ↵Ben Loftis
timecodes.
2017-08-09Add Lua bindings to set toggle-actionsRobin Gareus
2017-08-06Update Selection API to include all StripablesRobin Gareus
2017-07-27Fix pasting automation at 0Robin Gareus
2017-07-23Initialize some uninitialized variablesRobin Gareus
Editor::redisplay_tempo() is called early on, before Editor::set_timecode_ruler_scale() and Editor::compute_bbt_ruler_scale () are called. That is a bug which needs fixing (initial tempo+grid display) . Still, uninitialized vars are not good.
2017-07-19tweak "visible track count", take automation lanes into account.Robin Gareus
2017-07-18Editor Summary: Changes to behaviorBen Loftis
* Remove up/down buttons. * Allow the summary to shrink smaller. * Vertical drag results in zoom. * Scroll-wheel results in zoom. * Tweak mouse cursor to better indicate behaviors. * ToDo: refactor the zooming code.
2017-07-17Move more Gtkmm2ext widgets into libwidgetRobin Gareus
2017-07-17Remove unused sources & includesRobin Gareus
2017-07-17Separate Ardour UI widgets into dedicated libraryRobin Gareus
2017-07-01Remove unused variable (amend 79384339e)Robin Gareus
2017-07-01Correctly display region name in context menuThomas Brand
2017-07-01NO-OP whitespace (updated GH PR #357)Thomas Brand
2017-06-29Don't interpolate&smooth playhead pos during export.Robin Gareus
2017-06-28Add explicit VideoTimeline change-type, follow up on f73ce2dRobin Gareus
2017-06-28Reset idle_handler_id (fixes idle zoom -- bug in 265f52535a7)Robin Gareus
If pending_visual_change.pending was zero when calling idle_visual_changer the handler_id was never reset. and the idle-handler was never called again.
2017-06-26Changes to Editor::visual_changer to support Item/Canvas::prepare_for_renderTim Mayberry
This is necessary to allow calculation of correct intersection of visible canvas area and items for the new Item::prepare_for_render() API. samples_per_pixel must be set first to calculate the new horizontal canvas position in Editor::set_horizontal_position and then WaveView::set_samples_per_pixel will eventually call WaveView::prepare_for_render for those items that are visible on the new canvas position at the new position. Or if there is not a change to zoom state then call Canvas::prepare_for_render explicitly. Also changes so that each method is only called once during Editor::visual_changer
2017-06-26Coalesce visual changes to canvas/items and allow canvas to renderTim Mayberry
First visual change will be processed as normal and then blocked until the canvas renders the change. If further visual changes need processing then Editor::pre_render callback will schedule another expose/redraw/render. This prevents an issue where idle_visual_changer is called many times in response to events(keys/motion/etc) but the canvas does not get a chance to render any but the last one which results in a big pause/jump. This results in a more responsive canvas and in particular a smoother and more predictable zooming experience.