summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_mouse.cc
AgeCommit message (Collapse)Author
2012-03-09fix odd behaviour of gdk_window_get_pointer(), used to determine if the ↵Paul Davis
mouse pointer is inside the track canvas git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@11626 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-02-01remove verbose debugging messagesPaul Davis
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@8670 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-05-04back-port carl's workaround for a gnomecanvas bug that causes a crash during ↵Paul Davis
certain resize operations and others git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@7051 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-04-16rationalize track selection and range selectionBen Loftis
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@6919 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-04-15fix some strange behavior when dragging region(s) towards time zeroBen Loftis
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@6913 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-03-26remove silly buffer stats output; apply MIDI control patch (#2655) from ↵Paul Davis
dhess; switch ctrl/alt for drag-selection-as-region (work ongoing); various scons cleanups; remove some dead code from editor git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@6798 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-11-12JAG's new region layer editor, tweaked by me to (a) hide editor if we click ↵Paul Davis
in a location with just 1 region under the mouse (b) automatically update to reflect playlist modification outside of the layering editor (c) add a clock and a track name to give a bit more context to the editor git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@6067 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-11-08what chris asks for, chris gets. don't ask me why : if in range mode and ↵Paul Davis
range is cleared, stop transport but only if doing range play (almost) git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@6033 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-11-08if auto-play is on, start playing a range selection immediately that it is ↵Paul Davis
defined git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@6032 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-11-07clean up that godawful programming style in the last transport commit, and ↵Paul Davis
fix dynamic range playback git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@6031 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-11-07better design for range plays that leaves the range play button able to play ↵Paul Davis
the current range selection git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@6029 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-11-06deep, somewhat subtle changes for transport control. Everything should use ↵Paul Davis
Session::request_stop(), which nows takes an additional argument indicating whether or not to clear play range/loop state. UI threads will generally do so, other things, like slave sync objects, generally will not. also fixed stupid delay on exit, caused by unconditional usleep (2.5 seconds) ... git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@6027 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-10-26no more edit point clock (except SAE version, but who knows why or even if)Paul Davis
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@5928 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-10-21Fixes to pointer constraints when copying in lock edit mode; make them ↵Ben Loftis
behave the same as when just dragging regions. Fixes some or all of mantis 2573. thanks carlh git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@5841 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-07-28use DIST_LIBDIR to allow override of LIBDIR ; gcc4.4 patches from debian ↵Paul Davis
(once again, those guys don't send upstream, they think their own bug DB is where this stuff belongs, sigh ... thanks adi for the notice) git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@5429 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-03-21carl's patch for split/region-drag crashPaul Davis
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4880 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-03-21make context menu-driven stuff on ruler bars happen in the right place (e.g. ↵Paul Davis
new markers) git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4877 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-03-03dragging without modifiers should still move the playheadBen Loftis
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4726 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-03-02standardize some menu actions across CD and loop/punch rulers. also allow ↵Ben Loftis
right-click drag to create regions, which may be more discoverable than ctrl-click drag because the other rulers already use right-click for creating markers git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4725 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-02-17remove unneeded code in line_drag that was probably copy/pasted from ↵Ben Loftis
control_point_drag git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4618 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-11-25carl's fix to select objects when clicking in mouseGain mode, so that right ↵Paul Davis
click operations don't act on unexpected objects git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4252 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-11-17make step-mouse-mode work for SAE toosae-1Paul Davis
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4189 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-11-09Clicking canvas rulers mpves playhead, imicing behaviour of clicking gtk ↵Nick Mainsbridge
rulers. Create new markers/ranges with Primary modifier + left click/drag. Select/move markers with unmodified left click. git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4114 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-11-03meta-fy handling of button2, to deal with apple's messed up design ↵Paul Davis
decisions; on gtk/osx, button2 is (currently) Ctrl-Option-Button1 git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4087 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-11-01Ignore triple clicks for mute/solo/rec-enable (fixes long-standing ↵Nick Mainsbridge
insensitive to clicks bug), momentary solo/mute works for track headers, redraw some widgets when resizing editor-mixer (osx only), don't autoconnect physical inputs to busses (sae only), new sends active by default (sae only), some minor sae gui customizations using ardour2_ui_sae.conf. git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4078 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-10-20Fix incorrect mouse cursor when moving pointer from canvas rulers to tracks.Nick Mainsbridge
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3985 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-10-20fix up region gain line dragging; prevent press-drag-release from creating ↵Paul Davis
new region gain points, only click should do that git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3984 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-10-14don't use canvas coords for region_drag_finished_callback x calculation ↵Nick Mainsbridge
(eliminates speed adjustment), prevent incorrect updates on dropped regions by updating canvas before placing region copies. git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3970 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-10-14Use clicked_regionview directly to calculate region movement. Using ↵Nick Mainsbridge
drag_info.data may result in the wrong regionbiew being used. git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3964 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-10-11remove debug outputPaul Davis
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3918 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-10-11fix dragging of region gain line, affected by coordinate system change ↵Paul Davis
caused by canvas merge (don't convert delta motion-computed coordinates back into item space) git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3916 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, move the track canvas up one pixel now that headers are all one size. git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3835 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-09-29Backport drobilla's tempo bar cache from 3.0, fix track display regression, ↵Nick Mainsbridge
rework canvas layers and region_motion_group, remove duplicate code, make track heights consistent (track zero is no longer different). git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3831 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-09-22Set add route dialog non-resizeable so WMs size it more sensibly (looked ↵David Robillard
ridiculous in ion3). Tab cleanups. git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3787 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-09-19Fix a bunch of stupid warnings.David Robillard
Q: What's a lot harder than initializing a variable? A: Fixing future non-deterministic bugs that would have been deterministic if you initialized the damn variable :) git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3767 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-09-19fix range dragging post-multi-marker changesPaul Davis
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3759 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-09-19shift-click to extend marker selection; marker drag moves all selected markersPaul Davis
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3758 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-09-16Add a session file type icon for OSX, remove unused editor_mixer_button, use ↵Nick Mainsbridge
a constant offset for verbose time cursor, make tempo lines a bit smoother on OSX (idle? when?) git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3734 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-09-07Fix disappearing regionviews during rapid mouse movement plus grab/copy ↵Nick Mainsbridge
grab, update canvas less on OSX, RegionView::get_canvas_group() returns a group, not an Item, clean up reparenting of moving regions a bit. git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3709 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-09-03fix region copy thinko in last commit.Nick Mainsbridge
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3708 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-09-03Unify the canvases by moving groups around rather than using ↵Nick Mainsbridge
set_scrolling_region () (eliminates the double-draw during zoom on linux), fix verbose_time_cursor clamping, make fonts smaller on location dialog buttons, hopefully improve performance when dragging multiple regions on the same track, reduce some redrawing of clocks (still not done for samples clock), allow NLS=1 on OSX, other canvas performance improvements on OSX, build SAE-us.bindings (even though they are incomplete for now). git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3707 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-07-07move to scons Clone everywhere rather than Copy; add Session::micro_locate() ↵Paul Davis
for ongoing work on video sync; debugging output for export precision problem; minor clean up to IO::find_possible_connection(); fix up a few signed/unsigned issues; make "feature lines" always be the right height as tracks resize; change version to 2.5 git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3517 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-06-10(5) debugging with nowhiskey - remove stupid lack of scaling caused by ↵Paul Davis
redisplaying all regions for every source file removed; fix for illegal audio device selection in audio setup dialog; stuff related to drawing/dragging regionheights (disabled at present) git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3458 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-05-16add GotoWallClock command; switch Editor class to use nframes64_t ↵Paul Davis
throughout; fix up some glitches in playhead/screen handling when locating ; never save keybindings to user's ~/.ardour2 dir unless the user changed them (well, nearly) git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3361 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-05-15mike taht's patch to remove all use of gettimeofday() in favor of ↵Paul Davis
ARDOUR::get_microseconds() which now uses JACK's usec clock git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3355 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-05-11Fix compilation with GCC 4.3 (at least with SYSLIBS=1).David Robillard
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3334 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-05-02many changes related to region zooming; proto-visual state undo/redo stack; ↵Paul Davis
fill-tracks command steals "f" (follow-playhead now on shift-f git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3306 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-04-21prevent drags on rulers/bars from initiating vertical scrollingPaul Davis
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3277 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-04-02fix problems with undo/redo and region dragging; fix dragging in lock edit modePaul Davis
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3208 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-03-31minor mootcher fixes; change "Analyze .." to "Spectral Analysis" where ↵Paul Davis
applicable; make separate actions be appropriately sensitive to the edit point git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3198 d708f5d6-7413-0410-9779-e7cbd77b26cf