summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_canvas.cc
AgeCommit message (Collapse)Author
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.
2014-06-21use newly factored canvas in gtk2_ardourPaul Davis
2014-06-19correct conversion of drop y-position into trackview for drag-n-drop of ↵Paul Davis
external files
2014-06-19fix potential crash in Editor::set_canvas_cursor() if inadvertently passed a ↵Paul Davis
null cursor (semantics are different on OS X vs. X Window)
2014-06-18more work on cursor tracking statePaul Davis
2014-06-18a whole slew of changes related to centralizing and rationalizing cursor ↵Paul Davis
management. Debugging output left in place to help address the reports that will come in as people test this more
2014-06-17a set of inter-related subtle changes to get vertical autoscrolling to work, ↵Paul Davis
or at least work better.
2014-06-13fix erroneous start of autoscroll when mouse pointer is left or above the ↵Paul Davis
left/upper scrolling boundary but we're already scrolled to zero on the relevant axes
2014-06-13do most of the work related to adding new anchored trim cursors (but ↵Paul Davis
debugging/analysis continues)
2014-06-13fix scrolling behaviour in track headers (event was stolen by rulers because ↵Paul Davis
event coordinates made it look as if the event happened there)
2014-06-12make rulers color-sensitive (e.g. theme manager editable, etc)Paul Davis
2014-06-10Revert "do not allow canvas cursor changes while a drag is in progress". ThisPaul Davis
was a bad idea. There are lots of reasons to want to change cursors while dragging, even if we don't do that yet. This reverts commit 144033e55c004a68c9b6433ba26d92baf5cfa6d1.
2014-06-10do not allow canvas cursor changes while a drag is in progressPaul Davis
2014-06-09forward scroll events from track control headers to the canvas, to get ↵Paul Davis
consistent scroll behaviour (whatever that behaviour is)
2014-06-09change height of canvas drop so last 20 pixels of bottom track is still ↵Paul Davis
visible when fully scrolled down
2014-06-09rename Editor::_canvas_bottom_rect as Editor::_canvas_drop_zone; increase ↵Paul Davis
its size; remove debug message
2014-06-06fix position where rubberband rect is drawnPaul Davis
2014-06-05reinstate a canvas group where we reparent regions while dragging, so that ↵Paul Davis
they are always on top. I mistakenly removed this during the onecanvas changes.
2014-06-03more profound changes to canvas scrolling, in particular find appropriate ↵Paul Davis
ScrollGroup for Canvas::{window,canvas}_to_{canvas,window}()
2014-06-03remove useless groups from timebar area, clarify scroll group naming in editorPaul Davis
2014-06-03remove timebar canvas and just use a single canvas instead. This is just ↵Paul Davis
part one - lots of minor fixes to be done
2014-06-03avoid recursing through the entire canvas when scrolling - only scroll ↵Paul Davis
explicitly identified ScrollGroups
2014-06-03whitespace deletionPaul Davis
2014-06-03different approach to independent scrolling, involving ArdourCanvas::ScrollGroupPaul Davis
The idea now is that a scroll group item can be added to the canvas which will causes its children to scroll in either or both directions (horizontal or vertical). There are few complications: the position() of the ScrollGroup is ambiguous depending on whether you want it with scroll taken into account or not, so Item::canvas_position() was added, which defaults to the same value as Item::position() but is overridden by ScrollGroup to return the position independent of scrolling. This method is used when translating between item/canvas/window coordinate systems. Note that the basic idea is that we MOVE the scroll group when a scroll happens. This mirrors what happens in the GnomeCanvas, where Nick Mainsbridge came up with a great idea that allowed unification of the time bar and track canvases.
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-05-19remove unnecessary and wierd constant for bottom rect (drop zone) of track ↵Paul Davis
canvas
2014-04-16add a transparent rect that is always located at the bottom of the track canvasPaul Davis
This gives us an event/drag-n-drop/click target for things "at the bottom"
2014-04-16not that anyone ever runs with the SAE profile and not that we want to ↵Paul Davis
support it, but don't crash if they do
2014-04-16make our intentions even clearer when call ↵Paul Davis
Editor::track_canvas_viewport_size_allocated()
2014-04-16make our intentions clear when call ↵Paul Davis
Editor::track_canvas_viewport_size_allocated()
2014-04-10remove reference to JACK constantPaul Davis
2014-04-10remove final reference to jack headersPaul Davis
2014-04-01comment editPaul Davis