Commit graph

13362 commits

Author SHA1 Message Date
Paul Davis
94b0d3bc25 remove unused label_color from TimeAxisViewItem 2014-06-05 12:04:42 -04:00
Paul Davis
39eec5ac1b hopefully fix up selection of color for region name text, under all conditions 2014-06-05 12:04:42 -04:00
Paul Davis
8c79f70eef remove debugging output 2014-06-05 12:04:42 -04:00
Paul Davis
1d354f746a basic, initial structure for canvas widget item 2014-06-05 12:04:42 -04:00
Paul Davis
55009368c5 allow public access to CairoWidget::render() 2014-06-05 12:04:41 -04:00
Robin Gareus
de6a1ab701 make alsa/ardour dbus-device request tool generally useful. 2014-06-05 18:02:43 +02:00
Robin Gareus
8d6183bff5 ALSA backend: require both in+output. 2014-06-05 03:27:19 +02:00
Robin Gareus
27f8fc90cf mark dbus reservation tool optional 2014-06-05 03:26:52 +02:00
Robin Gareus
3813c7afae increase system-exec timeouts for kill. 2014-06-05 02:22:13 +02:00
Robin Gareus
822c460d15 DBus ALSA device reservation 2014-06-05 02:22:13 +02:00
Robin Gareus
742282b7e9 proper dbus device reservation 2014-06-05 02:22:12 +02:00
John Emmas
fa45202811 Change the function signature for 'abs(int64_t)' (Windows) so that it doesn't conflict with more recent versions of MSVC 2014-06-04 18:20:33 +01:00
Robin Gareus
a907d3455e break out ALSA related functions into libardouralsautil 2014-06-04 19:16:37 +02:00
Robin Gareus
40cfe86569 ALSA: tentative hack to request audio-device. 2014-06-04 17:17:15 +02:00
Robin Gareus
6b781f72f2 ALSA backend: engine.halted_callback if the process thread dies 2014-06-04 17:17:15 +02:00
Robin Gareus
104adebea6 if the user chooses to stop the jack-backend, mark it as stopped. Don't display the "..was shutdown .. was not fast enough.." message. 2014-06-04 17:17:14 +02:00
Robin Gareus
ec49e351c3 fixes to change engines while Ardour is running.
When a new backend is selected, it is loaded to query
available devices etc. This effectively drops the current backend.
2014-06-04 17:17:14 +02:00
John Emmas
236926e7ca Add newly introduced sources to MSVC project
(scroll_group stuff)
2014-06-04 13:50:06 +01:00
Robin Gareus
3ca59162c9 Revert "add API to query a processor's frozen state."
Theoretically one could alter the plugins after a delivery even on a
frozen track. ..or even change settings, the ordering and add/remove
plugins after the frozen part of a track.

We won't go there. Frozen is frozen. this API is not needed after all.

This reverts commit a771dea203.
2014-06-04 02:40:19 +02:00
Robin Gareus
aec7ea4613 Revert "Revert "ALSA backend: separate flags for is-running and should-be-running""
sorry, c/p error
This reverts commit 9658b77327.
2014-06-04 02:39:39 +02:00
Robin Gareus
9658b77327 Revert "ALSA backend: separate flags for is-running and should-be-running"
Theoretically one could alter the plugins after a delivery even on a
frozen track. ..or even change settings, the ordering and add/remove
plugins after the frozen part of a track.

We won't go there. Frozen is frozen. this API is not needed after all.

This reverts commit 6d89488d64.
2014-06-04 02:34:58 +02:00
Robin Gareus
6d89488d64 ALSA backend: separate flags for is-running and should-be-running 2014-06-04 02:23:41 +02:00
Robin Gareus
a771dea203 add API to query a processor's frozen state. 2014-06-04 02:23:24 +02:00
Robin Gareus
0889336aac disable pluginbox in RouteUI window when a track is frozen 2014-06-04 02:19:46 +02:00
Robin Gareus
06b4cf92db re-work bounce/freeze. Freezer stops at first active delivery.
amend to 8f52bf7d9f
2014-06-04 02:19:46 +02:00
Robin Gareus
03cb44f814 ALSABackend: elaborate on start-up error cases 2014-06-04 02:19:46 +02:00
Paul Davis
daaa59b533 Revert "When writing '.jackdrc' make sure we enclose any device names in
quotation marks". This patch is incorrect. The string quoting must be done ONLY
when creating a string to be written to ~/.jackdrc or similar, not when
constructing an argument list.

This reverts commit 5626ea2b1f.
2014-06-03 20:08:26 -04:00
Paul Davis
8b745aa4b4 fix two mysterious problems with stdint types 2014-06-03 16:38:33 -04:00
Paul Davis
8fa81c1436 merge onecanvas and cairocanvas branches, and manually resolve conflicts, including rounding in item_to_window() methods 2014-06-03 16:37:53 -04:00
Paul Davis
e0533e9dd7 more profound changes to canvas scrolling, in particular find appropriate ScrollGroup for Canvas::{window,canvas}_to_{canvas,window}() 2014-06-03 16:13:12 -04:00
Paul Davis
d4989ed9ce fix missing leftover Canvas::pick_current_item() which was confusing button release event coordinates 2014-06-03 16:12:00 -04:00
Paul Davis
073df89c4d use window-based coordinates when picking current item so that we get per-item (per-scroll-group,really) computation of position and coverage. 2014-06-03 16:12:00 -04:00
Paul Davis
54a56cd3c6 various changes to get independent scrolling to work better in canvas. mostly tweaks relating to how scroll offsets are used during rendering.
Event handling offsets still require work.
2014-06-03 16:12:00 -04:00
Paul Davis
f17b84ad10 clean up ArdourCanvas::Arrow implementation to remove unshown polygon/head 2014-06-03 16:11:24 -04:00
Paul Davis
dc349514fa remove utterly useless unused code 2014-06-03 16:11:24 -04:00
Paul Davis
da7a860256 remove useless groups from timebar area, clarify scroll group naming in editor 2014-06-03 16:11:24 -04:00
Paul Davis
bf7b35388b rationalize and centralize computation of positional offset and scroll offset for canvas items 2014-06-03 16:11:24 -04:00
Paul Davis
ee8fb7758a remove timebar canvas item from markers 2014-06-03 16:10:27 -04:00
Paul Davis
22e7252729 inline ScrollGroup::canvas_position() for no particular reason 2014-06-03 16:10:27 -04:00
Paul Davis
5696199daf remove timebar canvas and just use a single canvas instead. This is just part one - lots of minor fixes to be done 2014-06-03 16:10:27 -04:00
Paul Davis
c9f890bd7c avoid recursing through the entire canvas when scrolling - only scroll explicitly identified ScrollGroups 2014-06-03 16:10:27 -04:00
Paul Davis
a551181842 remove incorrect calls to Editor::maybe_autoscroll() from specific Drag classes (autoscroll is handled by the Drag manager) 2014-06-03 16:10:27 -04:00
Paul Davis
da67cb92e9 whitespace deletion 2014-06-03 16:10:27 -04:00
Paul Davis
6019f06bdf different approach to independent scrolling, involving ArdourCanvas::ScrollGroup
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-03 16:10:27 -04:00
Paul Davis
fc9e6651dd remove unused variable 2014-06-03 16:09:06 -04:00
Paul Davis
97109672c7 initial redesign of canvas scrolling to facilitate independent x- and y-axis 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-06-03 16:09:06 -04:00
Paul Davis
ee6c483d18 non-copy region drag now creates a new track when a region is dragged to the drop zone 2014-06-03 16:07:05 -04:00
Paul Davis
7e36d4c9bb part one of allowing region drag to the bottom (drop-zone) rect of track canvas 2014-06-03 16:06:41 -04:00
John Emmas
5626ea2b1f When writing '.jackdrc' make sure we enclose any device names in quotation marks
(in Windows, device names almost always contain whitespace)
2014-06-03 14:04:10 +01:00
John Emmas
fd50cf14dd Keep this #include consistent with similar ones
(evoral/evoral doesn't get used anywhere else)
2014-06-03 14:02:05 +01:00