13
0
Commit Graph

129 Commits

Author SHA1 Message Date
7e300c93f2 Editor zooming: right-click on summary -> context menu -> reset to session extents. 2017-08-26 23:32:02 -05:00
71d9ea7270 Editor zooming: Tweak the Summary to stop at right edge, use session_gui_extents(). 2017-08-26 22:44:58 -05:00
243d55f3c2 Remove an unused variable 2017-07-30 02:42:55 +02:00
611a150dfb Editor Summary: Don't require user to re-click to scroll + zoom.
* Use conventions similar to those used in CursorDrag.
2017-07-20 14:15:40 -05:00
3b47a42127 Editor Summary: thinko in initial value 2017-07-19 15:44:14 -05:00
6666ea593d Editor Summary: likely fix for crash-on-quit 2017-07-19 15:41:19 -05:00
394b30fe42 Editor Summary: Tweaks
* Only draw track bg lines if they will actually be recognizable.
* limit zoom-in capability of the summary box until it works correctly.
2017-07-19 15:37:59 -05:00
1decc225c9 Editor Summary: fix yet another thinko in zoom direction. 2017-07-19 14:13:18 -05:00
29002b9ac9 Editor Summary: The view rectangle should never exceed the bounds of the scroll area. 2017-07-19 13:58:56 -05:00
0cb44f9d56 Editor Summary: fix thinko in mouse cursors (trim cursor). 2017-07-19 08:20:25 -05:00
255d633edd Editor Summary: implement summary_zoom_step() to lessen redundant code. 2017-07-19 08:12:25 -05:00
1955ff3ad2 Editor Summary: fix direction of scroll zoom to match other conventions 2017-07-19 06:58:16 -05:00
ea05241771 Editor Summary: Changes to behavior
* Remove up/down buttons.
* Allow the summary to shrink smaller.
* Vertical drag results in zoom.
* Scroll-wheel results in zoom.
* Tweak mouse cursor to better indicate behaviors.
* ToDo:  refactor the zooming code.
2017-07-18 10:37:35 -05:00
7e4f261853 Turn Summary into a horizontal scrollbar (drop y-axis sensitivity) 2017-07-14 20:01:45 +02:00
Thomas Brand
63ea7b6516 NO-OP whitespace (updated GH PR #357) 2017-07-01 19:28:26 +02:00
d06de26a4f Towards a consistent render() API.
This fixes an -Woverloaded-virtual ambiguity introduced in b5e613d45

  void render (cairo_t*, cairo_rectagle*)
  void render (Cairo::RefPtr<Cairo::Context> const&, cairo_rectangle_t*)

ArdourCanvas prefers cairomm and CairoWidget itself uses Cairo::Context,
this improves overall API consistency.
2017-03-20 17:12:08 +01:00
3294b82e25 Use NSGLView for EditorSummary 2017-03-20 17:12:08 +01:00
nick_m
23da9acf7e Minimise duplicate calls to CairoWidget::set_dirty() in the editor summary.
- many regions may be changed by one operation.
2016-07-10 02:18:38 +10:00
3e12d4b4a6 use PresentationInfo color to set route colors. GUI appears to respond as expected 2016-06-05 17:16:20 -04:00
9d3aba30c4 Stripable signals moved to PresentationInfo 2016-06-05 16:33:01 -04:00
e0ff70cf86 first vaguely working version using PresentationInfo
remote control ID and "order keys" have been removed.
2016-05-31 15:30:42 -04:00
2a13891970 Change scrolling in the Editor track canvas summary area
Keep scroll distance consistent when scrolling up and down with horizontal
modifier as when scrolling left to right.

Scroll horizonally by half a page so that no sections of the canvas are skipped
when scrolling.

Scroll by half a page rather than a step like when scrolling in the track
canvas area as it is a summary area so larger steps seem acceptable and having
it use the same scroll distance as when scrolling in the track canvas seems
pointless as you would then just scroll in the track canvas area.
2016-01-21 11:25:56 +10:00
22b07e0233 NOOP, remove trailing tabs/whitespace. 2015-10-05 16:17:49 +02:00
4dc63966f0 globally remove all trailing whitespace from ardour code base.
Paul Davis was responsible for introducing almost all of this.
2015-10-04 14:51:05 -04:00
6b019a4953 Move UIConfiguration Singleton into UIConfiguration header
This removes the direct dependence on ardour_ui.h from 39 files
2015-09-16 16:55:17 -04:00
1ca9cd228e update track-height scaling:
“number of visible tracks”: count automation lanes
as tracks. Distribute equally.

“Summary View”: the visual lane represents both
track + automation. Set the total height.

Left to do: recursive “Shrink” and “Expand” tools
if there is no explicit selection.
2015-03-19 21:55:28 +01:00
26ba494083 prevent single-axis drags in the editor summary from affecting the other axis.
In theory, the EditorSummary::get_editor()/set_editor() calls
should be no-ops if the values are just passed between them,
but this turns out to be not precisely the case. Rather than
figure out exactly how ensure that this is true, mark the
new rect boundaries for the non-moving axis with -1 so that
we know to leave it alone
2015-03-15 12:13:03 -05:00
81c196e9ca Improve contrast of summary. 2015-01-07 01:42:49 -05:00
64fa63212f move all (G)UI related configuration parameters into UIConfiguration, not RCConfiguration 2014-12-22 13:39:46 -05:00
1d0612ceb6 redraw summary when theme preference changes & consolidate code. 2014-10-29 16:07:13 +01:00
300d765f17 fix summary display (offset on-canvas rulers) 2014-10-29 12:06:20 +01:00
ea26d70cad fix summary re-size
w/USE_CAIRO_IMAGE_SURFACE
2014-10-29 12:06:20 +01:00
e19e6dc73a amend 5d0303b - fix editor summary leak 2014-10-11 13:36:52 +02:00
5d0303b851 fix memory leak in editor summary. 2014-10-10 16:18:03 +02:00
6f6e78284d initialize uninitialzed var 2014-09-11 03:04:11 +02:00
nick_m
6b2c581c22 Summary changes :
* Use correct image format for background image
	* Construct thr ImageSurface as per cairo docs
	* Place start/end markers in background image
Tempo bars :
      * adjust beats display threshold to (hopefully) coincide with BBT ruler better.
2014-06-19 01:52:21 +10:00
nick_m
46c158d8c6 Render tracks and regions to a background image in the editor summary.
Connect to editor's SelectionChanged signal to display corresponding region colour change.
2014-06-17 21:44:36 +10:00
ab44e41dfd change the meters into CairoWidget, add expose_area to CairoWidget::render() 2014-03-20 23:50:40 +01:00
3031a99364 Merge branch 'master' into cairocanvas 2013-06-25 22:24:47 -04:00
daf4dd874a Add vertical zoom via scroll wheel modifier key to editor summary.
If the ScrollZoomVerticalModifier key is used with the scroll wheel over
the editor summary pane, zoom the editor vertically.
2013-06-21 21:28:13 +01:00
741f9de3f7 Make scroll-wheel modifier keys consistent in editor summary pane.
Separate out the handling of left/right scroll events from normal up/down
ones in the editor summary pane scroll wheel handling, and use the new
constants for scroll wheel keyboard modifiers in conjunction with up/down
scroll events. Modifiers for left/right scroll events should be unaffected
by this.
2013-06-21 20:44:40 +01:00
8877199ae0 leftmost_position => leftmost_sample, current_page_frames => current_page_samples 2013-04-12 11:21:12 -04:00
4258a34912 change all frame_to_pixel and pixel_to_frame to sample_to_pixel and pixel_to_sample 2013-04-12 11:15:45 -04:00
ecfd2a7455 remove all unit-based methods from (Public)Editor; rationalize Editor::event_frame() to clearly identify whether the passed-in GdkEvent has window units or canvas units (the latter will be true for all events that are handled by the canvas and then passed to Editor 2013-04-12 11:09:49 -04:00
ee1f0520a8 many changes to get the cairo-canvas version much, much more functional. still problems with a lot of subtle and not-so-subtle issues 2013-04-11 20:19:22 -04:00
19bd641915 commit immediately post linking 2013-04-04 18:45:27 -04:00
aaea166135 initial commit of hand merging, plus getting "ancient" waf script to work correctly 2013-04-04 00:32:52 -04:00
17439ac72c Position playhead correctly on 'P' in editor summary pane, taking account of start offset. Fixes #5213.
git-svn-id: svn://localhost/ardour2/branches/3.0@13653 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-12-12 22:10:03 +00:00
89d1a2fdf5 dramatically speed up the addition of large numbers of busses + tracks. consists of a backend part (ignore JACK graph/latency callbacks while we're adding tracks) and a GUI side (avoid O(N^N) behaviour while adding each new time axis view)
git-svn-id: svn://localhost/ardour2/branches/3.0@13595 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-12-04 14:32:28 +00:00
67e842bf4c remove debugging/analysis output
git-svn-id: svn://localhost/ardour2/branches/3.0@13589 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-12-02 02:12:39 +00:00