Commit graph

226 commits

Author SHA1 Message Date
Paul Davis
ba4d1cd1c1 remove "canvasvar_" from all functions related to obtaining values from ARDOUR_UI::config() 2014-10-21 22:58:58 -04:00
Robin Gareus
d80e55e828 don't clamp wave-fill alpha value when using region color 2014-09-13 01:48:11 +02:00
Robin Gareus
70358639de Revert "cont'd work on automation-track headers (amend ba53af1c5)"
This reverts commit beb5e3e777.
2014-09-04 16:14:01 +02:00
Robin Gareus
beb5e3e777 cont'd work on automation-track headers (amend ba53af1c5)
now that the separator line is at the top,
offset region-contents y0 by 1px.
2014-09-03 20:48:20 +02:00
Ben Loftis
1873bcfa9d More fixes for range-based automation editing.
-Remove redundant start_grab calls.
-Show gain curves in Range mode, so you can see the curves you are selecting
2014-08-06 14:43:40 -05:00
Ben Loftis
eaa17c3951 xfade rects should only pop-up in Object mode, when they are focusable 2014-07-07 15:34:20 -05:00
Robin Gareus
a3c378cf62 move utility functions into a dedicated namespace 2014-06-25 21:47:54 +02:00
Paul Davis
6a5d805b38 more canvas refactoring.
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-22 11:41:05 -04:00
Paul Davis
0796ccfb65 use newly factored canvas in gtk2_ardour 2014-06-21 11:44:22 -04:00
Paul Davis
237741d187 ensure that all waveviews have ALL their colors set accurately before first render
Avoids occasional bright red zero line drawn because the color(s) had not been reset correctly
2014-06-19 15:06:48 -04:00
Paul Davis
becf857f48 a whole slew of changes related to centralizing and rationalizing cursor management.
Debugging output left in place to help address the reports that will come in as people test this more
2014-06-18 10:24:59 -04:00
Paul Davis
96fbdd4bee remove instances of RGBA_TO_UINT() macro from audio_region_view.cc 2014-06-09 23:39:07 -04:00
Paul Davis
ce08ec0de0 substantial changes in color management, involving a reduction in the use of Gdk::Color and more consistent logic for region coloring.
Group tabs now also get the text drawn in an appropriately contrast-y color
2014-06-09 23:29:00 -04:00
nick_m
e495577f98 Use global clip level from prefs. Restore clip colour, \ 2014-06-09 02:50:14 +10:00
Paul Davis
ac33bb4256 streamline logic for setting waveform colors 2014-06-05 14:12:58 -04:00
Paul Davis
05f476875b tweak logic for region coloring, particularly when muted 2014-06-05 14:12:58 -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
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
fc9e6651dd remove unused variable 2014-06-03 16:09:06 -04:00
Robin Gareus
6894b1c7de initialize variables 2014-05-31 15:18:43 +02:00
Robin Gareus
12d4989067 show fade+trim handles only if the operation is possible 2014-05-31 15:15:46 +02:00
Robin Gareus
ef3c27bc1d session fade-region-visible is for fades - not controls 2014-05-31 14:16:15 +02:00
Robin Gareus
f0536816ab reduce outline of fade-in/active rectangle to line 2014-05-31 14:00:28 +02:00
Robin Gareus
1c32e45771 show x-fade-rectangle only when hovering 2014-05-31 14:00:04 +02:00
Robin Gareus
9decd39de9 reset [trim] fade handle position if track-height changes 2014-05-31 04:17:47 +02:00
Robin Gareus
4843c5d5cf towards region-trims preserving fade duration 2014-05-31 03:53:59 +02:00
Robin Gareus
7e44308471 replace use of Curve with XFadeCurve. 2014-05-29 03:10:22 +02:00
Robin Gareus
034f3dafd7 Revert "cairo sub-surface prototype & example
This reverts commit c57fcde78c.
and also     commit f1f8f89fcb.
2014-05-28 19:13:25 +02:00
Robin Gareus
f1f8f89fcb exercise subsurface rendering for x-fade curves 2014-05-28 17:38:42 +02:00
Robin Gareus
4cf93fffc2 x-fade drawing rework, part one 2014-05-27 16:37:01 +02:00
Robin Gareus
cadf07e362 global one-time setup of waveform preferences.
see note in previous commit.
2014-05-27 16:37:01 +02:00
Robin Gareus
a8f11b6004 persistent waveform shape setting.
NOTE: the call to set_global_shape() only needs to happen once,
presumably in a hook in the editor that catches Config::Changed

The same is true for waveform-scale and clipping. But for now it's
at least consistent.
2014-05-27 16:37:01 +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
344f326919 use Canvas::Curve for drawing xfades
Pixel-by-pixel we shall rule the earth.
2014-02-26 18:52:14 -05:00
Paul Davis
0bcf3001f5 fiddle with single pixel adjustments to time axis view item heights; fix region gain envelope visibility 2014-02-25 12:02:50 -05:00
Paul Davis
156a5a0e5f add the with-guard-point distinction to region gain lines 2014-02-20 14:01:40 -05:00
Paul Davis
d93050661c reinstate zero line in waveforms (can be hidden by changing the color to something with alpha=0 2014-02-14 14:03:07 -05:00
Paul Davis
7e34ce96c6 fix up placement of fade out handle 2014-02-14 10:21:51 -05:00
Paul Davis
e9e08f59ce fix up details of time axis view item drawing.
* remove top and bottom edges - rely on track edges for that.
* move right edge of time axis view items 1 pixel right to get a much
   nicer effect when splitting regions. the end line and start line
   of two adjacent regions are now on the same pixel.
* adjust audio region view components to be properly placed.

still need to do ghost regions and MIDI regions
2014-02-13 18:18:19 -05:00
Paul Davis
2c79f74e49 correctly (?) indicate muted status of audio regions 2014-01-26 16:03:04 -05:00
Paul Davis
3020b224fa Merge windows+cc branch into cairocanvas branch. Not finished, need to now merge windows branch to get changes from there 2014-01-10 16:07:57 -05:00
Paul Davis
395c3d35d1 tweak up pixel-level positioning 2014-01-10 11:54:32 -05:00
Paul Davis
33cf341381 avoid 1 pixel overlap of end xfade 2014-01-07 22:51:41 -05:00
Paul Davis
c22459d1b5 fix a whole set of errors in the placement of xfade visual elements (not 100% finished) 2014-01-07 20:55:04 -05:00
Paul Davis
68af0fdc07 fix up visibility control for automation lines 2013-12-31 13:28:20 -05:00
Paul Davis
e7059e5a16 remove use of canvas property_foo() since it did nothing (and has now been removed) 2013-12-31 11:54:38 -05:00
Paul Davis
28759617c4 Revert "switch fade in/out lines to ArdourCanvas::Curve rather than ArdourCanvas::PolyLine, though for no apparent benefit"
This reverts commit e169f5c17f.
2013-12-27 11:24:56 -05:00
Paul Davis
9fb3247350 rationalize color handling for fade in/out handles 2013-12-09 22:04:13 -05:00
Paul Davis
e169f5c17f switch fade in/out lines to ArdourCanvas::Curve rather than ArdourCanvas::PolyLine, though for no apparent benefit 2013-12-09 21:02:42 -05:00
Paul Davis
ba26316857 make region fade in/out curve shapes into PolyLines not Polygons so that they don't close the stroke path at the top/bottom 2013-10-31 15:39:29 -04:00