summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor.cc
AgeCommit message (Collapse)Author
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.
2017-06-22Remove LocaleGuards from Editor classTim Mayberry
All float <=> string conversions are now done using locale independent PBD::to_string/string_to() via XMLNode::get/set_property
2017-06-17Use Stripable::Sorter in GUI consistently.Robin Gareus
2017-06-09Fix incorrect positioning of tempo line subdivisions if first meter is non-zeronick_m
Commit cebefe6 assumed that frame 0 was the music origin. Silly me.
2017-06-09Delete tempo lines when session goes awaynick_m
2017-06-07cut buffer must not mess around with libardour selectionPaul Davis
Fixes range mode selection/cut/copy that would previously clear track selection
2017-05-05Editor::axis_view_by_control() needs to explore child tracks, now that ↵Paul Davis
Selection is relying on it
2017-05-05use CoreSelection for track selectionPaul Davis
2017-05-05fix ruler scaling -- #7226Robin Gareus
2017-04-19Use XMLNode::get/set_property API in Editor classTim Mayberry
2017-04-19Use ID::to_s() in gtk2_ardour instead of ID::print()Tim Mayberry
2017-04-03don't set region selection on loading a session 1 by 1, but just once after ↵Paul Davis
they should all exist
2017-04-01Fix crash when dragging playhead or mouse in ruler areaTim Mayberry
This can be hard to reproduce and I have not been able to work out the steps to reproduce reliably, but as it is still occuring work around the issue by just checking the variable is valid before dereferencing it. Resolves: #7304
2017-03-31Reset Playhead interpolation when looping and locatingRobin Gareus
2017-03-30NO-OP, semantic tweakRobin Gareus
2017-03-26make selection of tracks/busses after adding them slightly more efficientPaul Davis
2017-03-23Improve playhead updates, reduce jitter for follow PH, stationary PHRobin Gareus
* resolve rounding mistakes * extrapolate and filter position using GUI timing * track engine's position
2017-03-20Editor: forward unmap events to widgetsRobin Gareus
2017-03-10Save/Restore TimeInfoBox clock modesRobin Gareus
The clocks are not transient, so ARDOUR_UI::store_clock_modes takes care of saving the state and the clock restores itself.
2017-03-05no-op - comment/whitespace fixes.nick_m
2017-02-26remove method no longer neededPaul Davis
Editor::track_selection_changed() is now invoked by EditorRoutes::sync_treeview_from_presentation_info(), AFTER the Selection has been updated
2017-02-24Add some convenient public editor methods (for lua-bindings)Robin Gareus
and s/get// in the old API for consistency.
2017-02-23Lua bindings to access editor selection + region selection bindingsRobin Gareus
2017-02-18Consolidate ActionChanged callbacks, add tooltipsRobin Gareus
2017-02-18Don't scroll-jump when selecting all tracksRobin Gareus
2017-02-17Allow Lua action scripts to provide a button iconRobin Gareus
2017-02-16check region action sensitivity from two more places that may alter itPaul Davis
2017-02-15simplify arguments to Editor::sensitize_the_right_region_actions()Paul Davis
2017-02-15use leave/enter from track canvas to be the primary driver of region action ↵Paul Davis
sensitivity This works for context menus also, because GTK sends us leave/enter notify events when they appear.
2017-02-15tentative steps in trying to fix region action sensitivityPaul Davis
2017-02-14Save/restore location clock modeRobin Gareus
- save mode separately for Editor-sidebar and Location Window - cache mode (multiple calls to set_session()) - fix restore: after creating the editor, instant_save() is called, potentially overwriting the previous value.
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-28make editor respond to track seleciton change againPaul Davis
2017-01-27remove editor/mixer selection change signals; make editor and mixer use ↵Paul Davis
PresentationInfo::Change more correctly; make Selection a bit smarter when setting track selection