summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_mouse.cc
AgeCommit message (Collapse)Author
2009-06-08Further refactoring of drag code. Changes so that drags from the region ↵Carl Hetherington
list display a region view during the drag. git-svn-id: svn://localhost/ardour2/branches/3.0@5127 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-06-02Clean up use of first_move, move thresholding etc.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@5116 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-05-30Pull dragging code out of the Editor class into its own hierarchy.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@5113 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-04-203 notable patches from lincoln (a) non-layered track mode (NOTE: this is ↵Paul Davis
broken for loop recording right now) (b) trim region to previous/next region (c) region push/pull trimming. work on these 3 features should be assumed to be still slightly ongoing (eg. default bindings and more). great stuff git-svn-id: svn://localhost/ardour2/branches/3.0@4994 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-03-21(from 2.x) make context menu-driven stuff on ruler bars happen in the right ↵Paul Davis
place (e.g. new markers) git-svn-id: svn://localhost/ardour2/branches/3.0@4878 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-03-02remove unneeded code in line_drag that was probably copy/pasted from ↵Paul Davis
control_point_drag (Ben Loftis, backported from 2.X) git-svn-id: svn://localhost/ardour2/branches/3.0@4716 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-02-28Fix #2559; crash when doing end_grab on an already-deleted canvas item.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@4709 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-02-25*** NEW CODING POLICY ***David Robillard
All #include statements that include a header that is a part of a library bundled with ardour MUST use quotes, not angle brackets. Do this: #include "ardour/types.h" NOT this: #include <ardour/types.h> Rationale: This is best practice in general, to ensure we include the local version and not the system version. That quotes mean "local" (in some sense) and angle brackets mean "system" (in some sense) is a ubiquitous convention and IIRC right in the C spec somewhere. More pragmatically, this is required by (my) waf (stuff) for dependencies to work correctly. That is: !!! FAILURE TO DO THIS CAN RESULT IN BROKEN BUILDS !!! Failure to comply is punishable by death by torture. :) P.S. It's not that dramatic in all cases, but this (in combination with some GCC flags specific to the include type) is the best way I have found to be absolutely 100% positive the local ones are being used (and we definitely want to be absolutely 100% positive on that one). git-svn-id: svn://localhost/ardour2/branches/3.0@4655 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-02-17Fix for visual glitch due to race between Editor::update_current_screen ↵Carl Hetherington
being called and a locate event being processed. git-svn-id: svn://localhost/ardour2/branches/3.0@4608 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-02-11Fix some problems with dragging more than 1 region to a new track.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@4530 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-01-07Fix some bugs in my last commit, 4389.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@4390 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-01-06Comment and (hopefully) simplify Editor::region_drag_motion_callback, fixing ↵Carl Hetherington
problems with dragging regions to and from tracks in "stacked" display mode. As a side-effect, enable dragging of regions between layers, though I'm not entirely sure where this is useful or desirable just yet; dragging regions between layers currently works in the GUI but has no effect on the model. git-svn-id: svn://localhost/ardour2/branches/3.0@4389 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-01-02Cleanups and a few comments.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@4374 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-12-23Fix stacked regions display mode.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@4337 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-12-18Implement #826: edit-click on automation points allows value edit.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@4329 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-12-12most of the 2.X->3.0 commit (up to rev 4299) except for ↵Paul Davis
gtk2_ardour/editor_canvas.cc; builds and runs and does a few specific things but expect it to be buggy for a while yet git-svn-id: svn://localhost/ardour2/branches/3.0@4313 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-12-08merge 3870-3890 from 2.0-ongoing into 3.X (compiles, runs, no other promisesPaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@4303 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-12-08revert the only real change in that last commit,which was based on a bogus mergePaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@4302 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-12-08merge 3170-3180 of 2.X into 3.0Paul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@4301 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-10-19Handle changed session duration & resizing canvas better wrt end marker, ↵Nick Mainsbridge
remove unused last_canvas_frame, don't redraw the entire mixer every time its presented, consistent space between rightmost horizontal scroller position and end marker when zooming, possible fix for gaps in tempo lines. git-svn-id: svn://localhost/ardour2/branches/3.0@3982 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-10-13Fix annoying mouse pointer offset when dragging regions to the left of the ↵Nick Mainsbridge
canvas. git-svn-id: svn://localhost/ardour2/branches/3.0@3945 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-10-11Fix warning (unused variable).David Robillard
git-svn-id: svn://localhost/ardour2/branches/3.0@3928 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/3.0@3917 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-10-05Move panic button to MIDI toolbar (reduce required horizontal space).David Robillard
git-svn-id: svn://localhost/ardour2/branches/3.0@3864 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-10-03Assortment of minor changes from 2.0-ongoing.David Robillard
git-svn-id: svn://localhost/ardour2/branches/3.0@3852 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-26Fix audio region copy-drag, partially fix MIDI region copy-drag (thanks ↵David Robillard
torbenh). git-svn-id: svn://localhost/ardour2/branches/3.0@3809 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-09-20Don't defer Editor::track_canvas_size_allocated () (defer the timebar ↵Nick Mainsbridge
redrawing instead) + some performance improvements to said function, fix puzzling ineffective thinko wrt region movement, show/hide playhead more sensibly. git-svn-id: svn://localhost/ardour2/branches/3.0@3771 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-09-19Merge all the (disconcertingly missing) track/region/etc height changes from ↵David Robillard
2.0. Fix track y positioning and initial region size/location. Fix automation click-to-add-points (i.e. points actually show up where you click). Fancy whiz-bang dynamic resize 2.0 professional edition support for MIDI/CC/Automation tracks/regions. git-svn-id: svn://localhost/ardour2/branches/3.0@3769 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-09-19chris goddard's region list patch; port 2.X marker drag/move changes to 3.0; ↵Paul Davis
compilation fixes-post-evoral git-svn-id: svn://localhost/ardour2/branches/3.0@3760 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-09-14More gracefully handle type mismatch errors when doing playlist things (just ↵David Robillard
ignore regions with the wrong type for this playlist). git-svn-id: svn://localhost/ardour2/branches/3.0@3726 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-09-14Fix stacking of MIDI stream views to match that of audio.David Robillard
Make copy and brush operations type generic (i.e. fix brushing for MIDI regions). git-svn-id: svn://localhost/ardour2/branches/3.0@3724 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-09-10merge 2.0-ongoing into 3.0 @ 3581 - 3710Paul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@3712 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-09-10merge from 2.0-ongoing @ 3581Paul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@3711 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-05-02Fixes for GCC 4.3.David Robillard
git-svn-id: svn://localhost/ardour2/branches/3.0@3303 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-04-11merge 3.0 from 2.0-ongoing@3243Paul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@3248 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-03-26hans' patches for MIDI note resizing++Paul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@3184 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-03-17merge with 2.0-ongoing @ rev 3147Paul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@3152 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-02-17Merge with 2.0-ongoing R3077.David Robillard
git-svn-id: svn://localhost/ardour2/branches/3.0@3078 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-02-16Merge with 2.0-ongoing R3071.David Robillard
git-svn-id: svn://localhost/ardour2/branches/3.0@3073 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-02-02Merge with 2.0-ongoing R2988David Robillard
git-svn-id: svn://localhost/ardour2/branches/3.0@2991 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-01-17MIDI region stretching.David Robillard
git-svn-id: svn://localhost/ardour2/trunk@2927 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-01-15Merge with trunk R2920.David Robillard
git-svn-id: svn://localhost/ardour2/trunk@2921 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-01-12Merge with 2.0-ongoing R2885.David Robillard
Fix loading of 2.0 sessions. git-svn-id: svn://localhost/ardour2/trunk@2904 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-01-10Merge libs/ardour and gtk2_ardour with 2.0-ongoing R2837.David Robillard
git-svn-id: svn://localhost/ardour2/trunk@2883 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-01-07Merge with 2.0-ongoing R2653.David Robillard
git-svn-id: svn://localhost/ardour2/trunk@2837 d708f5d6-7413-0410-9779-e7cbd77b26cf
2007-11-17Apply colinf's fix for bug #1913Carl Hetherington
git-svn-id: svn://localhost/ardour2/trunk@2689 d708f5d6-7413-0410-9779-e7cbd77b26cf
2007-11-12merged with trunk revs 2605-2627Paul Davis
git-svn-id: svn://localhost/ardour2/trunk@2628 d708f5d6-7413-0410-9779-e7cbd77b26cf
2007-11-08merged with 2.0-ongoing changes 2582-2605 (not thoroughly tested but it ↵Paul Davis
compiles, start up, and creates a new session) git-svn-id: svn://localhost/ardour2/trunk@2606 d708f5d6-7413-0410-9779-e7cbd77b26cf