summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_rulers.cc
AgeCommit message (Collapse)Author
2019-08-03Update GPL boilerplate and (C)Robin Gareus
Copyright-holder and year information is extracted from git log. git history begins in 2005. So (C) from 1998..2005 is lost. Also some (C) assignment of commits where the committer didn't use --author.
2018-07-30Ruler visibility is not really a session-prop.Robin Gareus
This fixes an issue with the session being marked as dirty without any actual change. Also this method indirectly called during session-load when the UI state is restored, a potential race with "Session::Loading" being unset.
2018-07-27new_grid: fix some thinkos in ruler math, to better match sensible grid lines.Ben Loftis
Tweak enums to better match the Grid values they represent.
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-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-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.
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-07-01NO-OP whitespace (updated GH PR #357)Thomas Brand
2017-05-23Remove dead assignment in Editor::metric_get_bbtTim Mayberry
2017-04-19Use XMLNode::get/set_property API in EditorRulers classTim Mayberry
2017-03-10Fix likely thinko in bbt ruler.Ben Loftis
This fixes a bug for me: Measure lines appear & disappear during playback, at certain zoom scales. I think this is because the unecessary offset was causing beat_density to vary unnecessarily while rolling.
2016-12-08Clarify "frames" (video, timecode) vs "samples" (audio)Robin Gareus
2016-11-02prevent infinite loop when calculating tick marks on low zoom levelsRobin Gareus
2016-10-19Improve bbt ruler drawing performance for large time ranges.nick_m
- when the timeline displays many bars, zoom/autoscroll speed is improved by calculating the bbt ruler scale first then requesting a suitably scaled grid.
2016-08-14Allow negative return in TempoMap::beat_at_frame() and its exact_ variant.nick_m
- audio-locked midi regions can be start-trimmed properly when close to 1|1|0 - a midi region placed before the first meter will continue the tempo curve and first meter. Only a couple of callers require change, as bbt_at_beat() already deals with this.
2016-07-14enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.hPaul Davis
2016-05-27Tempo ramps - rename bbt_time() -> bbt_at_frame(), frame_time() -> ↵nick_m
frame_at_bbt()
2016-05-27Tempo ramps - rulers don't request negative bbt.nick_m
- i'm reluctant to fix this at the map level.
2016-05-27Tempo rambo - more bbt scale fiddling.nick_m
2016-05-27Tempo ramps - bbt ruler scale tweaks.nick_m
2016-05-27Tempo ramps - small tweak to ruler scale.nick_m
2016-05-27Tempo ramps- bbt ruler scale accounts for non-beat ranges for consistent ↵nick_m
results.
2016-05-27Tempo ramps - respect tempo note type and meter note divisor correctly.nick_m
- tempo and meter position is now pulse-based, although meter still has a beat for convenience.
2016-05-27Tempo ramps - audio-locked meters have a bbt of 1|1|0nick_m
- possibly lots going wrong with this due to multiple occurences of 1|1|0.
2016-05-27Initial stab at tempo ramps.nick_m
Replaces the list of points in TempoMap with TempoSection functions, which compute tempo-at or tick-at time relative to tempo section start. TempoMap consults them additively to determine things like bbt_time(), frame_time() get_grid() etc. This has a marked effect on scrolling speed along with the code simplification in the places it has been attempted. Several things are broken here. Currently every ramp except the last one is an exponential ramp. this may be simple to fix :). Mouse-over midi grid doesn't match mouse click grid. should also be simple. Many things seem to work, but their accuracy should be in question until each area has been addressed.
2016-05-04OMNIBUS COMMIT: prefer const XMLNode::property method (and provide a real one)Paul Davis
2016-02-22change GTKOSX macro constant to use __APPLE__ insteadPaul Davis
2016-02-22remove all trace of SAE from source code.Paul Davis
This had become incoherent over time, and posed a development hazard and burden going forward
2015-12-09Remove two useless separator elements from editor ruler popups.André Nusser
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-16Move UIConfiguration Singleton into UIConfiguration headerTim Mayberry
This removes the direct dependence on ardour_ui.h from 39 files
2015-04-21Update editor_rulers.ccahellquist
Change ruler context actions from "Make Loop range" to "New Loop range" change ruler context actions from "Make Punch range" to "New Loop range" This to make it consistent with other ruler context actions eg. "New....."
2015-04-21merge fix for tempo branchBen Loftis
2015-03-13Right-clicking on the Loop/Punch ruler should "Do Something".Ben Loftis
2015-03-11add video-monitor to timeline context-menuRobin Gareus
2015-02-12Separate out creation of xrun markers from Editor::mouse_add_new_marker()Colin Fletcher
Remove the is_xrun parameter from Editor::mouse_add_new_marker(), and just create the marker directly in ARDOUR_UI::create_xrun_marker(), so that xrun markers don't become automatically selected when they appear.
2014-12-21restore ardour-style ruler labels for timecode ruler.Paul Davis
Also reduce font size used to a cross-platform single definition.
2014-12-11tweaks to minsec and timecode ruler display, especially at very high zoom.Paul Davis
Imported from work on Tracks done in Tel Aviv, November 2014
2014-11-23assign minsec_ruler_scale and minsec_mark_modulo when zoomed very far outPaul Davis
Avoids crash when computing % minsec_mark_modulo.
2014-10-21remove "canvasvar_" from all functions related to obtaining values from ↵Paul Davis
ARDOUR_UI::config()
2014-07-15try to get font size for rulers right or at least better on OS XPaul Davis
2014-06-25move utility functions into a dedicated namespaceRobin Gareus
2014-06-25do not include ruler visibility items in context click menu on timebarsPaul Davis
2014-06-25use new ruler dialog class for context clicks on ruler labels areaPaul Davis
2014-06-22more canvas refactoring.Paul Davis
Remove Canvas::Layout, use Canvas::Container for the same purpose, move child-rendering into Item::render_children() so that it could theoretically be used by any derived type.
2014-06-21use newly factored canvas in gtk2_ardourPaul Davis
2014-06-13add all the fonts, and use the right name for the rulers as a resultPaul Davis
2014-06-13use canvas ruler font specification rather than get_font_for_style()Paul Davis