Paul Licameli
fecc6f53e4
Consolidate the code that starts and stops play/rec head scrolling
2016-06-01 13:25:01 -04:00
Paul Licameli
525146268f
Remove the code for pushbuttons and keyboard navigation...
...
... It was too much reinvention of wheels!
2016-06-01 13:08:25 -04:00
Paul Licameli
8d8c7b7f00
Calls to time ruler button creation/update, but it does nothing yet
2016-05-29 12:14:17 -04:00
Paul Licameli
7d265dc3d4
Oops, revert unready work
...
Revert "new button images for time ruler"
This reverts commit 26ec0100a29f5b90656f77a48d18dd7987bef395.
Revert "add button"
This reverts commit af5163025a19c334e2f8151f16c75acaa705e913.
Revert "ToolBar::MakeButton is public and static"
This reverts commit 668714942ba61a652e335973c416c4cba8f6234f.
2016-05-29 12:13:24 -04:00
Paul Licameli
af5163025a
add button
2016-05-28 23:00:47 -04:00
Paul Licameli
9e2916a80b
Better implementation of switch from scrub to quick play; ...
...
... also, don't ever draw the scrub handle while dragging the quick play
region.
2016-05-18 11:58:57 -04:00
Paul Licameli
465b743fd3
Bug1365: Do not confuse Linux key event handling...
...
... So click on QP during scrub had to be implemented without relying on
SafeYield() when stopping play.
2016-05-18 10:08:46 -04:00
Paul Licameli
c66262d790
Double click on Record button pins record head right, not center
2016-05-17 12:25:39 -04:00
Paul Licameli
0602343a2d
Make drag scrub less sluggish (do less redrawing)
2016-05-15 16:41:24 -04:00
Paul Licameli
31557defa7
Correct the focusing of buttons as mouse moves. Unify the context menu code.
2016-05-12 15:06:54 -04:00
Paul Licameli
9055681f11
Right click on the scrub handle pops up the menu, during scrubbing too
2016-05-11 18:58:37 -04:00
Paul Licameli
928e96c6cc
Fix assertion violations about double capture; while still making sure...
...
... that if you drag-scrub and ESC, you don't get a leftover white guide line.
2016-05-10 15:35:46 -04:00
Paul Licameli
80e19f2130
Ruler is in the ctrl+f6 cycle instead of reachable by arrows; experimental...
...
... flag for turning off navigability of the ruler.
2016-05-10 15:16:12 -04:00
Paul Licameli
4394ad1b70
Add a check item to Tracks menu for the scrolling beyond zero preference
2016-05-10 12:47:34 -04:00
Paul Licameli
9f8e34ad0f
Implement drag-scrub, compatibly with the existing move-scrub...
...
Also fix scroll-scrub and remove obsolete mouse preferences messages
2016-05-10 09:40:06 -04:00
Paul Licameli
19ef2f6681
Implement drag-scrub, compatibly with the existing move-scrub...
...
... Start scrub by click or double click on the scrub head; release button or
not; then move.
If you release before moving, you get scrubbing as before, controlled by
motion. Click or drag to switch in and out of seeking. Stop with ESC,
spacebar, etc. No change of selection.
But now if you drag, then scrubbing contines until you release the mouse or
otherwise stop with a key.
If by release of the mouse, then the selection changes as if by a click at
the last play position. If you hold shift, then, as if by shift-click.
If drag begins with a double-click, then the play head remains centered and
the track moves.
2016-05-10 09:37:10 -04:00
Paul Licameli
1135ca5a3a
Revert "Accessibility for time ruler"
...
This reverts commit 5b2b6df9361205e38ad8daf5ba9ad477709a8641.
2016-05-09 19:41:02 -04:00
Paul Licameli
e8a244343e
Merge branch 'master' into scrubbing2
2016-05-09 17:49:29 -04:00
Paul Licameli
9ad9ea2ec3
Fix the flashing problems on Mac involving the quick play line...
...
... The main rule seems to be, during the repainting of one window, don't draw
onto any other DC for that or any other window. Don't refresh any other window.
2016-05-09 17:19:56 -04:00
Paul Licameli
f9dd6b4066
Reimplement the play/record indicator in the ruler as an overlay...
...
... fixing the lag between the green line and the triangle for scrolling play
2016-05-09 15:58:51 -04:00
Paul Licameli
d8e42b0af4
Reimplement the cursor mark in the ruler as an overlay
2016-05-09 15:28:33 -04:00
Paul Licameli
3466e91ed1
Insert calls to DrawOverlays() on the ruler, though they do nothing yet
2016-05-09 11:37:32 -04:00
Paul Licameli
468026f9b4
AdornedRulerPanel inherits from OverlayPanel, doesn't need to manage the backing
2016-05-09 11:37:32 -04:00
Paul Licameli
7c2a531486
New base classes of TrackPanel just for the bitmap backing and overlay system...
...
... to make it reusable by other classes.
Also, don't create a second DC when repainting TrackPanel.
2016-05-09 11:37:32 -04:00
Paul Licameli
5b2b6df936
Accessibility for time ruler
2016-05-06 21:39:19 -04:00
Paul Licameli
2d925317b0
Show correct context menu for scrubbing phase 2x
2016-05-06 20:46:12 -04:00
Paul Licameli
5c3548528f
Make the Windows menu key work for the ruler
2016-05-06 18:21:15 -04:00
Paul Licameli
c616d433c2
Make key navigation to ruler work on Windows
2016-05-06 18:13:24 -04:00
Paul Licameli
52e7046b76
Keyboard navigability for ruler pushbuttons...
...
... Using left, right, (shift-)tab, ret, and also the numpad arrows and enter
2016-05-06 16:56:11 -04:00
Paul Licameli
519a2020ff
Navigation to and from the ruler using up and down arrow keys...
...
... This affects those keys (and NUMPAD arrows), also (shift-)ctrl-f6,
ctrl-home, ctrl-end (which are command-left and right on mac)
Those should be tested to ensure correct restoration of the yellow rectangle,
appropriately in the tracks or the ruler.
This should also be tested with and without the Tracks preference for cyclic
movement of the focus.
2016-05-06 16:50:24 -04:00
Paul Licameli
e96b161d07
Ruler pusbutton text font a bit bigger for MSW
2016-05-06 13:12:42 -04:00
Paul Licameli
cfdd05db69
Pushbuttons work in scrub; click in numbers, QP disabled, does not stop scrub
2016-05-06 13:07:31 -04:00
Paul Licameli
5863a475a0
Fix drawing of bevels and outlines for ruler pushbuttons
2016-05-06 12:57:51 -04:00
Paul Licameli
ef7f3939be
Draw the menu triangles in the ruler pushbuttons filled always.
2016-05-06 12:47:08 -04:00
Paul Licameli
aa4e19e9f9
Split ruler pushbuttons; right click on either part always makes menu
2016-05-05 14:41:08 -04:00
Paul Licameli
4b2cc463be
Fix the unwanted hand cursor near bottom edge when scrub bar is on
2016-05-05 14:41:08 -04:00
Paul Licameli
e1ee3185b5
Draw playhead at its old size; draw scrub head near bottom when no scrub bar
2016-05-03 23:58:48 -04:00
Paul Licameli
ad2b4c3446
Enable scrolling play by double-click on either play button or QP area of ruler
2016-05-03 22:46:10 -04:00
Paul Licameli
67d3bb89cb
Define a place to insert a double-click action for the time ruler...
...
... also split out a function just for starting play.
2016-05-03 20:36:28 -04:00
Paul Licameli
e67725f00f
Hide the quick play indicator and guideline when recording starts
2016-05-03 11:20:22 -04:00
Paul Licameli
143a5b84bc
Triangle always, above numbers, for play position, even if scrubbing; ...
...
scrub head in scrub bar when that shows, not above the numbers.
2016-05-03 11:05:53 -04:00
Paul Licameli
2cbd1a6a2b
Revert "Triangle always, above numbers, for play position, even if scrubbing; ..."
...
This reverts commit 3d70be6cd632aa22521ed2108e07bd5ca02cada7, reversing
changes made to ebd9820b50c07d0eef98567b9fda4f629e4a5be4.
2016-05-03 11:01:22 -04:00
Paul Licameli
5135619373
Triangle always, above numbers, for play position, even if scrubbing; ...
...
scrub head in scrub bar when that shows, not above the numbers.
2016-05-03 10:55:34 -04:00
Paul Licameli
9649e0bfe2
The ruler cursor (short vertical stroke at selection) should not change color...
...
... during play or record.
That bug was introduced at b19ed258e963c9342f0a573a3f054d9a8336f7fa
2016-05-03 09:58:31 -04:00
Paul Licameli
a332d3cba0
Left click in quick play area during scrubbing stops scrub, starts quick play.
2016-05-02 21:33:41 -04:00
Paul Licameli
939050018b
Remove "Right-Click for options"
2016-05-02 20:11:09 -04:00
Paul Licameli
da4fa1d965
Put the scrub bar below
2016-05-02 15:19:08 -04:00
Paul Licameli
4b6e48a26c
Scrubbing toolbar defaults off.
2016-05-02 13:00:27 -04:00
Paul Licameli
f346d40d79
Menu triangle appears in bushbutton when pointer is near bottom; ...
...
... and, again, use either mouse button on the push button.
2016-05-02 11:49:26 -04:00
Paul Licameli
cfe3142ffd
Highlight around pushbuttons for mouse-over
2016-05-02 11:41:45 -04:00