summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_canvas.cc
AgeCommit message (Collapse)Author
2015-06-01fix cursor in smart mode, when moving up and down the frame handlesBen Loftis
2015-01-24make MouseCursors invalid cursor API be static; use to initialize default ↵Paul Davis
cursor value in Drag API; use C API to set canvas cursor
2015-01-23allow use of null pointer as a valid cursor (implies using cursor of parent ↵Paul Davis
window)
2015-01-16Revert "Kludgey fix for invisible playhead when scrolled."David Robillard
This reverts commit 8f823388d9bd5aa8e297ab05be8c9fb323518945.
2015-01-16Kludgey fix for invisible playhead when scrolled.David Robillard
The problem this is avoiding makes absolutely no sense. Either I'm dumb, or something is more deeply wrong with scroll group bounding boxes, or both, but I don't care anymore. This works. Viva release mode.
2015-01-16Put playhead on top of everything.David Robillard
Achieve this by adding a new hscroll group just for cursors. That requires a slightly smarter window_to_canvas() to deal with overlapping sensitive scroll groups. New rule is that scroll groups can overlap, but the most sensitive one found from the top down will be chosen to translate coordinates. This basically means don't overlap scroll groups with different sensitivities. In the presence of scroll groups, having a canvas-wide window_to_canvas() and/or canvas_to_window() fundamentally makes no sense. At some point in the glorious future we should kill those and use only item-relative coordinate translation.
2015-01-12Put tempo lines below tracks.David Robillard
2015-01-12Remove unused vertical scroll group.David Robillard
2015-01-12Revert "hotfix z-stacking"David Robillard
This reverts commit 03f0229bcfc35916f81c6187948df3ea3b79a976. Mitigate the fallout from said overly aggressive revert: preserve the alpha values to not break the color configuration for when the lines are fixed.
2015-01-11hotfix z-stackingRobin Gareus
This reverts commit 780c1762 and e70c9a3 Both combined introduced various bugs: * rubberband-selection has a scroll-offset * region drag/drop has wrong y-offset * ranges (loop etc) are above the playhead * possible scroll performance hit (long unclipped lines in h_scroll_group) on the downside: time-grid is now no longer visible behind the rulers. Doing that will require a different approach…
2015-01-10Raise regions about tempo lines.David Robillard
2015-01-08Show tempo lines under marker bars.David Robillard
2015-01-07Update background color when theme is changed.David Robillard
2014-12-30Fix smart mode cursor on audio regions.David Robillard
2014-12-23Fix cursor update on nested entry.David Robillard
For example, if you're in a note and something about the mode changes, it's the underlying region context that needs to change. So, seems we need a stack of entry contexts to deal with this sort of thing. Switching in/out of smart mode still doesn't update immediately because we don't have the y-coordinate needed to update it.
2014-12-23Update canvas cursor on pop.David Robillard
2014-12-22move all (G)UI related configuration parameters into UIConfiguration, not ↵Paul Davis
RCConfiguration
2014-12-20Fix various cursor problems.David Robillard
Add a new scoped cursor system that makes it much harder to screw up and end up with stick cursors and so on.
2014-12-18Remove internal edit mode and add "content" tool.David Robillard
2014-12-16Fix marker bars "gradient" colors.David Robillard
2014-12-15make editor rubber band rect have appropriate transparencyPaul Davis
2014-12-15next modifierPaul Davis
2014-12-15next modifierPaul Davis
2014-12-15next modifier, and remove color 102 since nothing uses itPaul 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-12-07Unify gain and draw tools.David Robillard
There might be a few special cases lingering around from attempts at magic tool business, but this seems to work fine as far as I can tell.
2014-12-05working compilation for new color codePaul Davis
2014-11-18Avoid possible use of uninitialized values.David Robillard
This could only happen with a broken widget, but it shuts up clang and doesn't hurt.
2014-11-14Fix various sticky/broken cursor issues.David Robillard
This still isn't quite right, but it's a lot less broken than before, at least.
2014-11-10redraw entire canvas when ColorsChanged is emittedPaul Davis
2014-11-10set canvas background colorPaul Davis
2014-10-31Remove unused variable.David Robillard
2014-10-21remove "canvasvar_" from all functions related to obtaining values from ↵Paul Davis
ARDOUR_UI::config()
2014-10-21remove mouse zoom mode; bind z to zoom-to-rangePaul Davis
2014-10-21fix note 15897 on #5589 - only use fader cursor for region gain line when in ↵Paul Davis
mouse gain mode
2014-10-13fix note 0015900 on #5589 (cursor doesn't change when switching edit pointPaul Davis
2014-09-15fix compiler warningsPaul Davis
2014-08-31Remove unused variables (fix warnings).David Robillard
2014-07-15add Editor::trackviews_height() convenience function to determine height of ↵Paul Davis
trackview area of canvas; use to help fix set_visible_track_count(); don't consider hidden tracks in that function; add "Selected" to that selector menu
2014-07-14scroll up/down by tracks uses top edge as "focal point"; fix some other ↵Paul Davis
nasty code details
2014-07-07fix inconsistency in smart mode where it shows a trim cursor in the top half ↵Ben Loftis
of the region edge, but a click is actually going to start a range. It is arguable that we _should_ allow trimming in the top half, but that is complicated. This change is small and makes it consistent for now
2014-07-07add basics of Cut mouse mode, no functionality yet. Icon images are still ↵Paul Davis
required
2014-07-01give drop zone its own cursor-abilityPaul Davis
2014-06-30remove canvas cursor debug outputPaul Davis
2014-06-27replace old implementation of Editor::_ensure_time_axis_view_is_visible() ↵Paul Davis
with the guts of Editor::ensure_track_is_visible(), then remove the latter. Also change all users of ensure_track_is_visible() to use _ensure_time_axis_view_is_visible()
2014-06-27make verbose canvas cursor color be set in its constructor rather than ↵Paul Davis
explicitly
2014-06-25move utility functions into a dedicated namespaceRobin Gareus
2014-06-24add ability to save current action sensitivities and restore them, and to ↵Paul Davis
disable all action sensitivity. This is needed to be able to lock the application fully on OS X, where the global menu bar would still allow interaction even when a modal dialog is displayed.
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.