summaryrefslogtreecommitdiff
path: root/gtk2_ardour/tempo_lines.cc
AgeCommit message (Collapse)Author
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-01-10Raise threshold for showing ticks for a bit.David Robillard
This fixes two zoom levels (the closest that shows bars, and the next closest) that had the same tick resolution despite enough space.
2015-01-08More contrast between different division lines.David Robillard
2015-01-08Stop showing bar lines sooner.David Robillard
Not sure if this is a DPI dependent thing, but when zooming out some of the steps had way too dense bar lines for me.
2015-01-08Slightly more distinct beat/subdivision lines.David Robillard
2015-01-07Draw beat sudivisions according to snap setting.David Robillard
2015-01-07High resolution tempo lines.David Robillard
2014-12-15next modifierPaul Davis
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
2014-10-21remove "canvasvar_" from all functions related to obtaining values from ↵Paul Davis
ARDOUR_UI::config()
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-19Summary changes :nick_m
* Use correct image format for background image * Construct thr ImageSurface as per cairo docs * Place start/end markers in background image Tempo bars : * adjust beats display threshold to (hopefully) coincide with BBT ruler better.
2014-06-09use Canvas::LineSet for tempolines rather than N different Canvas::Line ↵Paul Davis
items plus a cache
2014-06-03initial redesign of canvas scrolling to facilitate independent x- and y-axis ↵Paul Davis
scrolling of specific groups within the canvas. This commit should cause no change in behaviour, but contains all the code and changes necessary for the next step
2014-02-12make measure line positioning use Editor::sample_to_pixel() and avoid extra ↵Paul Davis
0.5 pixel shift
2013-06-24fix up size and drawing of measure lines, even when vertically scrolledPaul Davis
2013-06-24an awful lot of tweaks to drawing detailsPaul Davis
2013-04-24many pervasive changes primarily related to waveform drawing, particular ↵Paul Davis
content-dragging, colors, and more
2013-04-21remove probably premature-or-no-longer-necessary optimization of measure ↵Paul Davis
line drawing
2013-04-21Revert "add Group::clear(), do not clear _canvas member of Item when ↵Paul Davis
unparented (only the parent is changed)" This reverts commit a4df65a56f83823aba27432685977f420458a213.
2013-04-21add Group::clear(), do not clear _canvas member of Item when unparented ↵Paul Davis
(only the parent is changed)
2013-04-17fix clamping of line and rect coordinates to avoid issues with cairo when ↵Paul Davis
drawing way outside a surface's dimensions; move various coordinate methods down to Canvas, because they don't require GTK information; make visible_area() a Canvas virtual method so that we don't have to cast to call it
2013-04-16change UIConfig to use accessor/setter methods like RCConfig so that ↵Paul Davis
ParameterChanged methods can actually be emitted; add variable (over a small range) background shading for all TimeAxisViewItems
2013-04-16fix bug with tempo lines not extending far enough in the y-axis - since this ↵Paul Davis
is the cairo canvas now, just extend them to COORD_MAX .. yay!
2013-04-15a few changes to fix region dragging, all related to coordinate system ↵Paul Davis
handling, which is now much simpler with the new canvas; more debugging output when asked for
2013-04-12change frames_per_pixel to samples_per_pixelPaul Davis
2013-04-06merge with master, including manual merge conflict resolutionPaul Davis
2013-04-04commit immediately post linkingPaul Davis
2013-04-04initial commit of hand merging, plus getting "ancient" waf script to work ↵Paul Davis
correctly
2013-03-30Fix some compilation warningsJulien de Kozak
2013-01-27fix crash when zoom level leads to multiple tempo lines on the same pixel ↵Paul Davis
(may affect several mantis reports) git-svn-id: svn://localhost/ardour2/branches/3.0@14015 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-04-11Slightly expanded version of patch from epitech_user toCarl Hetherington
fix use of invalidated iterator (#4823). git-svn-id: svn://localhost/ardour2/branches/3.0@11889 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-04-07Remove use of invalidated iterator (#4826).Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@11807 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-01-04use BBTPoint::is_bar() rather than ::beat == 1 ; implement ↵Paul Davis
TempoMap::framepos_plus_{beats,bbt}() with new map structure (not totally finished or accurate yet); prevent crash when dragging a marker to replace the initial tempo/meter markers git-svn-id: svn://localhost/ardour2/branches/3.0@11154 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-01-03save 4 bytes per Bar|Beat point in the tempo mapPaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@11147 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-01-03return two iterators into the Bars|Beats list of the tempo map rather than ↵Paul Davis
making a copy; use iterators in the GUI git-svn-id: svn://localhost/ardour2/branches/3.0@11146 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-01-02new approach to tempo/meter: compute and store the entire map (every ↵Paul Davis
bar|beat point), thus enabling us to use the same computation to set the BBT points AND the metric markers (tempo + meter) on the audio timeline. It is known that snapping to the BBT grid doesn't work correctly right now, but this probably caused by the separate code in TempoMap::round_to_type() and i'll dig into that tomorrow. Note that the Bar|beat point list is evaluated "lazily" - we'll never store more than anyone actually needs to display or know, other than 1 minute's worth starting from frame zero git-svn-id: svn://localhost/ardour2/branches/3.0@11129 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-28fix type error when resetting all tempo linesPaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@8351 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-09-17megaopus patch #2 for today: remove nframes64_t and sframes_t from sourcePaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@7792 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-10-21Fix unnecessarily type specific code, tidy, fix whitespace.David Robillard
git-svn-id: svn://localhost/ardour2/branches/3.0@5844 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-10-14Strip trailing whitespace and fix other whitespace errors (e.g. space/tab ↵David Robillard
mixing). Whitespace changes only. Vimmers, try let c_space_errors = 1 in your .vimrc to highlight this kind of stuff in red. I don't know the emacs equivalent... git-svn-id: svn://localhost/ardour2/branches/3.0@5773 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-10-20Fix warnings because I have much more important things to do.David Robillard
git-svn-id: svn://localhost/ardour2/branches/3.0@3986 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-10-14Make tempo lines physical_screen_height high, add xml null check, Use ↵Nick Mainsbridge
clicked_regionview directly to calculate region movement. Using drag_info.data may result in the wrong regionbiew being used, don't use canvas coords for region_drag_finished_callback x calculation (eliminates speed adjustment), prevent incorrect updates on dropped regions by updating canvas before placing region copies. git-svn-id: svn://localhost/ardour2/branches/3.0@3965 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-09-29Relayer punch/loop range rects, fix display of punch-in with no punch-out, ↵Nick Mainsbridge
ensure range selection rect is hidden after single click. git-svn-id: svn://localhost/ardour2/branches/3.0@3836 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-09-28Invalidate line cache when zoomed out to invisible line levels.David Robillard
Reduce line cache size to 128. git-svn-id: svn://localhost/ardour2/branches/3.0@3819 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-09-24Better line cache. Without a tempo change occurring, lines are never moved ↵David Robillard
(except to 'steal' from outside the visible range). Scrolling left now gets perfect cache hits as well as scrolling right, and steals minimally from the right. git-svn-id: svn://localhost/ardour2/branches/3.0@3800 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-09-23An actual tempo line cache (not quite perfect when scrolling left, but miles ↵David Robillard
ahead of the previous one didn't really help at all). Tempo line updating done immediately/directly rather than in an idle handler. Looking for feedback how this works for other people, performance wise... Feel-wise, the obvious lag between scrolling and tempo lines being drawn is now gone. git-svn-id: svn://localhost/ardour2/branches/3.0@3799 d708f5d6-7413-0410-9779-e7cbd77b26cf