Commit graph

344 commits

Author SHA1 Message Date
Greg Zharun
31a9cefa57 [Summary] This part of code worker incorrectly on Windows:
atof() on Windows expects "," (comma) as float delimeter and ignores "." (dot). So on windows atof("0.1") would return 0.
Unlike MAC.

Proposed fix should work on all platforms.
2015-01-08 15:39:58 +02:00
GZharun
8db6861fa2 [Summary] Implemented waveform zoom. Added feature to save waveform zoom state with the session. 2014-12-27 00:56:21 +02:00
GZharun
75a26bead0 [Summary] Fixed issue when width request from Cavas text returned old width value
[Reviewed by] Paul Davis
2014-12-15 13:17:44 +02:00
VKamyshniy
798dd38be0 [SUMMARY] Corrected (C) info 2014-12-11 10:05:20 +02:00
Paul Davis
ee49c0a0c2 change placement of ruler divider so that the lower line is at the specified height, rather than the upper 2014-11-26 13:53:33 +02:00
Paul Davis
74707d900c do the right thing when TrackingText::offset is changed 2014-11-25 20:44:26 +02:00
Paul Davis
c3e0cad199 Fix method hiding in Canvas::Text 2014-11-25 20:44:01 +02:00
Paul Davis
3551e2a066 change ruler rendering to change tick heights and move text down 2014-11-25 15:31:41 +02:00
Paul Davis
5fe8a7321f add missing API 2014-11-24 19:29:22 +02:00
Paul Davis
ca506df094 add API to Ruler to optionally draw a divider (2 single pixel horizontal lines) at some position within the vertical extent of the ruler 2014-11-24 19:29:22 +02:00
Paul Davis
4911ce6db0 correct implementation for Rectangle::vertical_fraction() 2014-11-24 19:29:22 +02:00
Paul Davis
5ffa87b8ad add Rectangle::vertical_fraction() as a convenience method 2014-11-24 19:29:22 +02:00
VKamyshniy
c0defccf67 [Summary] No chance of using cairo image surface 2014-11-20 21:04:51 +02:00
VKamyshniy
96b8486ceb [Summary] To have USE_CAIRO_IMAGE_SURFACE working -- clean up and fixing cairo_widget. With occasion: eliminating _current_event_expose as Robin has introduced expose_area which plays similar role. Now WINDOW works under USE_CAIRO_IMAGE_SURFACE condition.
WARNING: we should assure that cairo's clip() serves well in Ardour as we stopped using clip_preserve().
2014-11-17 17:56:07 +02:00
Paul Davis
781c525643 add background color property to Canvas::Canvas ; rearrange expose handling and include background fill 2014-11-10 10:35:29 -05:00
Paul Davis
0ae0477945 add API to extract color from ArdourCanvas::Text and tidy up member declarations 2014-11-06 20:36:11 -05:00
Paul Davis
04a4e949e8 changing the clamp_width of an ArdourCanvas::Text needs to potentially provoke an entire redraw
This fixes missing range marker text in sessions where the initial zoom value causes an initial clamp_width of zero
2014-11-06 20:36:11 -05:00
VKamyshniy
655a765de3 [Summary] Fixing the bug with which canvas was drawn with unconditionally black environment 2014-11-06 22:42:13 +02:00
Paul Davis
4286f2f879 raising/lowering canvas items should trigger a redraw 2014-11-06 10:53:48 -05:00
Paul Davis
228e1c26e2 alter implementation of ArdourCanvas::contrasting_text_color() to use gamma-adjusted luminance values rather than simple contrast 2014-11-05 11:09:47 -05:00
Robin Gareus
6c34ab8b02 allow to use cairo-image/software surface for canvas & cairowidgets
Conflicts:
	libs/gtkmm2ext/cairo_widget.cc
2014-11-03 10:03:45 -05:00
Robin Gareus
a1b7c8c91e remove unused old API 2014-11-03 09:32:49 -05:00
VKamyshniy
43a80f8266 [Summary] Changing contents of Marker and RangeMarker objects in order to change request from Igor 2014-10-30 17:47:42 +02:00
Paul Davis
4f59429ad5 Revert "alter the way the border of Canvas::Rectangle is drawn to meet the intent that a single pixel border passes through the corner coordinates"
This reverts commit 55cd0a4a3393e6b5e6e5091c5bd5a276d71a8656.
2014-10-29 16:28:28 -04:00
Paul Davis
4800934e04 alter the way the border of Canvas::Rectangle is drawn to meet the intent that a single pixel border passes through the corner coordinates
Conflicts:
	libs/canvas/rectangle.cc
2014-10-29 16:28:28 -04:00
Paul Davis
03797765c6 Containers should not consider the size of invisible items when computing their own bounding boxes.
This fixes issues related to the rulers container believing it was taller than it actually is, and possibly other issues also
2014-10-16 10:37:34 -04:00
GZharun
c398f60565 [Summary] Added new files to Xcode project 2014-09-29 12:59:42 +03:00
GZharun
e10d06d032 [Summary] Should have been committed with previous: made background fade optional and not shown by default 2014-09-26 23:43:18 +03:00
Paul Davis
98d1200f2c add ArdourCanvas::Fill::set_pattern() to allow any filled canvas item to be filled using an arbitrary Cairo Pattern 2014-09-19 16:24:40 -04:00
Paul Davis
75a150ecc0 make computation of OS X pango text width correction less intrusive/more efficient.
Compute the correction only once after each font specification setting.
2014-09-19 16:24:40 -04:00
GZharun
c283320bcd [Summary] Added canvas project for Xcode 5 2014-09-18 12:22:30 +03:00
Robin Gareus
93dbae7c98 waveform drawing details:
* proper y-pixel alignment (+.5px offset)
* outline: draw dots (not 1px lines)
* shape: round towards peak (use signal, not top/bot)
* honor 2px red selection border
* work-around canvas rect +1 issue
* always draw clipping line towards center
* draw at most one clip-line at either side of 0.
* exact 1px wide zero line
* fix spread calculation for rectified view
2014-09-17 07:06:05 -04:00
Robin Gareus
80047e9877 waveform: really draw 1px lines. 2014-09-17 07:06:04 -04:00
Robin Gareus
72c630f445 update waveform drawing for zoomed-in, non-overlapping min/max peaks 2014-09-17 07:06:04 -04:00
Paul Davis
7198ac659e remove outline from now-small verbose cursor (TrackingText) text 2014-09-11 17:00:18 -04:00
Paul Davis
2c92680788 don't needlessly redraw ruler if new metric is the same as the old 2014-09-05 15:24:16 -04:00
Paul Davis
9b405de03d add Canvas::Ruler::set_metric() to allow ruler metrics to be changed dynamically 2014-09-05 14:45:27 -04:00
Paul Davis
8c17bb0ca0 change Metric element of a Canvas::Ruler item into a pointer internally 2014-09-05 14:42:06 -04:00
GZharun
9b010ed417 [Summary] Fixed name width issue on MAC applying a workaround. It's a response on Pango bug which will be fixed by Paul Davis 2014-09-05 15:29:41 +03:00
Paul Davis
637f3e9c2d use glib portable random function rather than POSIX.1 random() 2014-09-03 12:25:02 -04:00
Paul Davis
84f4ad912a more canvas debugging for current item tracing 2014-08-18 12:36:55 -04:00
David Robillard
b00b75de3d Update vcproj files for changed LILV config define.
Conflicts:
	libs/audiographer/MSVCaudiographer/audiographer.vcproj
	libs/clearlooks-newer/MSVCclearlooks/clearlooks.vcproj
	libs/evoral/MSVCevoral/evoral.vcproj
	libs/gtkmm2ext/MSVCgtkmm2ext/gtkmm2ext.vcproj
	libs/libltc/MSVCltc/ltc.vcproj
	libs/midi++2/MSVCmidi++/midi++.vcproj
	libs/panners/MSVCpanners/panner_1in2out.vcproj
	libs/panners/MSVCpanners/panner_2in2out.vcproj
	libs/panners/MSVCpanners/panner_vbap.vcproj
	libs/qm-dsp/MSVCqm-dsp/qm-dsp.vcproj
	libs/surfaces/control_protocol/MSVCardour_cp/ardour_cp.vcproj
	libs/surfaces/generic_midi/MSVCardour_genericmidi/ardour_genericmidi.vcproj
	libs/surfaces/mackie/MSVCardour_mackie/ardour_mackie.vcproj
2014-08-18 12:30:01 -04:00
nick_m
baf6a43ee7 Render waveview components onto alpha masks to simplify drawing.
Reduce user panic by removing ! from missing file dialog title.
Use justify left in missing file dialog.
2014-08-18 12:26:05 -04:00
Paul Davis
ef849bec91 fix potential crash if certain Canvas methods are used before its window is realized 2014-08-17 20:41:38 -04:00
Paul Davis
207e90adb1 Add Canvas::re_enter() which picks the current item again based on mouse pointer position and generates an enter event for it 2014-08-17 20:41:20 -04:00
Paul Davis
390869c0d9 actually do something in WaveView::region_resized() which is called whenever the region is resized; implement WaveView::set_region_start() which could be used by an xfade editor etc. 2014-08-17 20:34:41 -04:00
Paul Davis
3e85ec6ae8 more extensive canvas debug message for canvas-enter-leave tracing 2014-08-17 20:02:49 -04:00
Paul Davis
d994350760 add event-insensitivity to the list of conditions that causes a container to NOT add its children to the list of items-at-point 2014-08-17 20:02:43 -04:00
Paul Davis
a647755bdc verbose cursor text is always outlined 2014-08-17 19:59:51 -04:00
Paul Davis
3ceb01b331 allow Canvas::Text to have outline drawn in a contrasting color (based on actual color) 2014-08-17 19:59:43 -04:00