Commit graph

6631 commits

Author SHA1 Message Date
Colin Fletcher
00af9a967b Ripple mode: ripple all after start of deleted range
When deleting a range in ripple mode, ripple everything after the start
point of that range backwards by the length of the range, so that
newly-created regions immediately at the range end move back to the range
start.
2014-05-16 20:04:57 +01:00
Colin Fletcher
46fa5c9397 Don't clear the clipboard when deleting things
Deleting regions (or ranges, or anything) shouldn't affect the contents of
the clipboard - only CutCopyOp::Copy, CutCopyOp::Cut and CutCopyOp::Clear
should do that.
2014-05-16 01:03:37 +01:00
Colin Fletcher
99c0ef21d7 Ripple mode: ripple when deleting ranges.
Make delete, cut and clear of a range ripple the appropriate playlists.
2014-05-16 01:03:37 +01:00
Colin Fletcher
933da08c72 Ripple mode: tidy up
Remove a load of debug output and dead code.
Move implementation of RegionRippleDrag::y_movement_allowed() out of
header into .cc file.
2014-05-07 19:46:24 +01:00
Colin Fletcher
d75c7151d4 Ripple mode: basic implementation
Add a value for Ripple to EditMode enum.

Add Ripple edit mode to edit mode dropdown, by adding it to the
Editor::build_edit_mode_menu() helper function, and remove the old code that
added items to the (now unused) Editor::edit_mode_strings.

Add the regions that should be affected by the drag to RegionDrag::_views so
that the drag carries them along automatically.

Use a copy of the RegionList in Playlist::core_ripple(), since bad things
happen when iterating over regions and they get moved around in the list.

Handle rippling in removal of regions from playlist.

When dragging in ripple mode, exclude all regions that lie before the
original start position of the selected regions being dragged from
rippling: this is what Mixbus does.

Make editor dragging respect snap-to settings, by using the existing
compute_x_delta() function, which did almost the right thing. Move setting
of _last_frame_position out of that function so all ripple-dragged regions
can move.

Ripple when dragging from region list: even though Mixbus doesn't do this, it
seems like a good idea.

Prevent multi-track selection being dragged across tracks, by making
RegionMotionDrag::y_movement_allowed() virtual, and overriding it in
RegionRippleDrag to forbid dragging of selections containing regions on more
than one track to dofferent tracks in ripple mode.

Remember which TimeAxisView a ripple-mode drag that's allowed cross-track
drags started from, so that the effect of rippling regions after any region
that's dragged off that track can be undone.
2014-05-07 19:46:24 +01:00
Colin Fletcher
ce8e374cf8 Splice mode: fix comment typo 2014-05-07 19:46:24 +01:00
Colin Fletcher
349f66f413 Fix region content drag direction
Fix <Control>+drag in bottom of region to move the region contents in the
expected direction.
2014-05-07 19:38:22 +01:00
Colin Fletcher
9a35f73b9e Fix undo of layer-changing region drags
Move clear_changes() of the playlist on which a region has been dragged
before calling set_layer() on that playlist, so that undo of region drags
in layered mode undoes any layer changes too.

Should fix #5904
2014-05-07 19:38:07 +01:00
Paul Davis
56af57d682 shift-modifier during trim dragging causes region to jump to original position (anchored at start or end, depending on trim type) 2014-05-07 12:13:34 -04:00
Paul Davis
fbbf911229 fix mingw build - needs bundle_env_mingw.cc when building with mingw, and that is a build target, not a platform 2014-05-06 14:07:29 -04:00
Adrian Knoth
3fa8127d58 Add ComboOption configuration for default-fade-shape
Let the user choose the preferred default fade shape in the editor
section of the preference menu.
2014-05-01 20:02:19 +02:00
Paul Davis
079d6a2866 if using the audio/MIDI setup dialog because there are >1 backends, but the chosen backend is not under our control (i.e. JACK), remember to start it before returning from the dialog 2014-05-01 12:31:35 -04:00
Paul Davis
6544df039b change location marker ruler text for get_trx() == true case 2014-05-01 07:53:46 -04:00
Paul Davis
302fd7efeb correctly set up ruler preferences for get_trx() == true case 2014-05-01 07:53:28 -04:00
Robin Gareus
1ac8815296 script to run ardour under callgrind 2014-04-30 19:06:32 +02:00
Paul Davis
e6cb3e8bb2 remove two more unnecessary instances of os.path.join in install path definitions 2014-04-29 16:06:39 -04:00
Carl Hetherington
152935e736 Merge branch 'cairocanvas' of git.ardour.org:ardour/ardour into cairocanvas 2014-04-29 12:42:49 +01:00
Paul Davis
38125d60c9 "sequence regions" operation (remove space between selected regions) added, c/o Thomas Brand 2014-04-29 00:11:05 -04:00
Robin Gareus
9907d25ea5 skeleton dummy audio-engine 2014-04-28 21:29:35 +02:00
Carl Hetherington
e36f74e071 Fix some capitalisation in the preferences dialog. 2014-04-28 10:25:43 +01:00
Robin Gareus
c2a376a822 NOOP, no whitespace at EOF 2014-04-24 20:55:03 +02:00
Robin Gareus
523891f8f9 fix packing of LXVST UIs (minimum size, border) 2014-04-24 20:54:40 +02:00
Robin Gareus
9f266e9061 try get_win_special_folder() for harvid & xjadeo (if registry fails) 2014-04-24 13:22:17 +02:00
Robin Gareus
1929cbffb4 query windows registry for xjadeo & harvid path 2014-04-24 02:08:19 +02:00
Robin Gareus
8a8dc9ca04 fix xjadeo on windows (directly use xjadeo.exe) 2014-04-23 21:27:05 +02:00
Robin Gareus
cf61fb07b8 dynamically adjust open-video-dialog layout depending on configuration 2014-04-22 04:18:35 +02:00
Robin Gareus
c4bb32892f increase LXVST GUI idle call regularity, aim for 25Hz 2014-04-21 14:44:36 +02:00
Robin Gareus
67ddda0158 vtl: fix leftover typo in request URL (noop) 2014-04-21 13:45:53 +02:00
Robin Gareus
1ea6321ad5 update GUI while waiting for video server to respond 2014-04-20 02:51:27 +02:00
Robin Gareus
0524f1ec14 add missing "Path" to label, re-order VST preferences 2014-04-20 02:51:27 +02:00
John Emmas
c123829c0a Save any cached fonts into our dedicated cache folder (msvc)
(modifies the appropriate entry in 'fonts.conf')
2014-04-19 13:09:06 +01:00
Robin Gareus
4fd1a5edd5 videotimeline: path related fixes for windows 2014-04-19 02:03:43 +02:00
Paul Davis
8accb22923 put back bottom line of region views if name highlight is not shown.
Also remove redundant line that replicated the one we modified.
2014-04-18 05:08:17 -04:00
Robin Gareus
06b700abf2 fix VST GUI swallowing for windows 2014-04-18 01:54:59 +02:00
Robin Gareus
2e63b84a10 account for MS version of std::isalnum() - fixes assert on UTF8 2014-04-17 23:24:37 +02:00
Paul Davis
3131ab8bbd new transport option, "loop-is-mode" which optionally changes the role of the "play loop" button.
If enabled, then the button simply changes the behaviour of the "play" button rather than actually starting playback. If disabled
transport behaviour should be unchanged from before.
2014-04-17 09:47:06 -04:00
Paul Davis
59e6694405 fix lack of region trimming when not displaying name highlight bar 2014-04-16 09:03:16 -04:00
Paul Davis
78bab09e98 improve comment text 2014-04-16 07:35:20 -04:00
Paul Davis
0f7f9b068c add preferences item for show-name-highlight (does not take effect till next instance) 2014-04-16 07:31:01 -04:00
Paul Davis
e324249d8c fix logic for Config->show_name_highlight (reversed from inital experiments) 2014-04-16 07:30:09 -04:00
Paul Davis
981754781a use new config option to control name highlight and name placement 2014-04-16 06:35:24 -04:00
Paul Davis
5668eea2a3 add a transparent rect that is always located at the bottom of the track canvas
This gives us an event/drag-n-drop/click target for things "at the bottom"
2014-04-16 04:16:56 -04:00
Paul Davis
8b93576c18 not that anyone ever runs with the SAE profile and not that we want to support it, but don't crash if they do 2014-04-16 03:00:49 -04:00
Paul Davis
dbb8501429 make our intentions even clearer when call Editor::track_canvas_viewport_size_allocated() 2014-04-16 02:55:08 -04:00
Paul Davis
fea4f14242 make our intentions clear when call Editor::track_canvas_viewport_size_allocated() 2014-04-16 02:52:55 -04:00
Paul Davis
0d1d50a8b4 remove pointless assert (since condition is if-tested just before it was used) 2014-04-15 14:30:37 -04:00
John Emmas
2b10af45ab Ensure that 'fixup_bundle_environment()' returns a suitable localedir (msvc) 2014-04-15 18:53:24 +01:00
Paul Davis
dc4eae5c37 hopefully fix issue with Editor::set_canvas_cursor_for_region_view() which was incorrectly switching to trim cursors.
This started happening more frequently after this function started to be called more often (which was the right thing to do, but
had this side effect (now fixed).
2014-04-15 12:44:49 -04:00
Paul Davis
dbaf203bac fix ridiculous spelling error 2014-04-15 12:44:49 -04:00
John Emmas
70755c9950 Add some stuff that's needed for an MSVC built target:-
1) Make sure we create or open any files in binary mode
2) Make sure the user can see an error message of we fail to parse the command line
3) Make sure that the call to 'windows_vst_gui_init()' matches its declaration (i.e. only applicable when NOT on PLATFORM_WINDOWS)
2014-04-15 11:01:48 +01:00